public abstract class AbstractLookupCommandDecorator<E extends Entity> extends AbstractCommandDecorator implements LookupCommandDecorator<E>, org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
| Modifier and Type | Class and Description |
|---|---|
protected class |
AbstractLookupCommandDecorator.SubcommandsOwner |
| Modifier and Type | Field and Description |
|---|---|
static L10nString |
L10N_COMBOBUTTON_LOOKUP |
commandATTRIB_DECORATOR, ATTRIB_DIRTY_NOTIFIED, ATTRIB_MODIFIED| Modifier | Constructor and Description |
|---|---|
protected |
AbstractLookupCommandDecorator(Command command) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addNew() |
protected void |
arrangeForState(PanelState newState) |
void |
attach(Object container) |
void |
dettach() |
void |
dispatchMessage(Message message) |
E |
getLookupSelection() |
String |
getName() |
protected abstract Query |
getRefreshQuery() |
boolean |
isAttached() |
boolean |
isDisabled() |
boolean |
isModified() |
protected abstract E |
newInstance() |
void |
onEvent(org.zkoss.zk.ui.event.Event event) |
void |
processMessage(Message message) |
protected void |
refresh() |
void |
render() |
void |
setDisabled(boolean disabled) |
boolean |
setLookupSelection(E entity) |
void |
setModified(boolean modified) |
void |
setName(String name) |
protected void |
update() |
addMessageListener, getCommand, getListeners, removeMessageListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCommandaddMessageListener, getListeners, removeMessageListenerpublic static final L10nString L10N_COMBOBUTTON_LOOKUP
protected AbstractLookupCommandDecorator(Command command)
protected void addNew()
protected void arrangeForState(PanelState newState)
public void attach(Object container)
attach in interface CommandDecoratorpublic void dettach()
dettach in interface CommandDecoratorpublic void dispatchMessage(Message message)
dispatchMessage in interface MessageAwaredispatchMessage in class AbstractCommandDecoratorpublic E getLookupSelection()
getLookupSelection in interface LookupCommandDecorator<E extends Entity>public String getName()
getName in interface CommandDecoratorprotected abstract Query getRefreshQuery()
public boolean isAttached()
isAttached in interface CommandDecoratorpublic boolean isDisabled()
isDisabled in interface CommandDecoratorpublic boolean isModified()
isModified in interface LookupCommandDecorator<E extends Entity>protected abstract E newInstance()
public void onEvent(org.zkoss.zk.ui.event.Event event)
throws Exception
onEvent in interface org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>Exceptionpublic void processMessage(Message message)
processMessage in interface MessageListenerprocessMessage in class AbstractCommandDecoratorprotected void refresh()
public void render()
render in interface CommandDecoratorpublic void setDisabled(boolean disabled)
setDisabled in interface CommandDecoratorpublic boolean setLookupSelection(E entity)
setLookupSelection in interface LookupCommandDecorator<E extends Entity>public void setModified(boolean modified)
setModified in interface LookupCommandDecorator<E extends Entity>public void setName(String name)
setName in interface CommandDecoratorprotected void update()
Copyright 2012-2013 Veniamin Isaias. All rights reserved.