@Component @Scope(value="prototype") public class DefaultEntityHierarchyPanel extends AbstractZkTargetTypeAwarePanel implements EntityHierarchyPanel, org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
| Modifier and Type | Field and Description |
|---|---|
static L10nString |
L10N_MSG_CANNOT_DELETE_PARENT |
COMMANDS_SORTER, L10N_UNAUTHORIZED_ACCESS, L10N_UNEXPECTED_ERROR, prevState, statebase, BEANS_NAMESPACESECURITY_PATH_DELIM| Constructor and Description |
|---|
DefaultEntityHierarchyPanel() |
DefaultEntityHierarchyPanel(boolean readOnly,
boolean showChildren) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
arrangeForNullTargetType() |
protected void |
arrangeForState(PanelState newState) |
protected void |
arrangeForTargetType() |
protected boolean |
canBind(Entity entity) |
int |
getItemCount() |
protected List<org.zkoss.zul.Treeitem> |
getMatchingItems(EntityHierarchyItem ehi) |
protected List<org.zkoss.zul.Treeitem> |
getMatchingItemsRecursive(org.zkoss.zul.Treeitem parentItem,
EntityHierarchyItem ehi,
List<org.zkoss.zul.Treeitem> matched) |
EntityHierarchyItem |
getSelectedItem() |
Set<CommandEnum> |
getSupportedCommands() |
boolean |
isReadOnly() |
void |
onEvent(org.zkoss.zk.ui.event.Event event) |
void |
processMessage(Message message) |
protected void |
processValidCommand(Command command) |
attach, clearBusy, detach, displayMessage, getAttribute, getSclass, hasAttribute, hightlightPanel, initBaseComponent, isAttached, removeAttribute, setAttribute, setSclass, showBusyafterPropertiesSet, getTargetType, hasTargetType, onSettingValueChanged, setTargetType, toStringactivateCommand, activateCommand, activateCommands, canProcess, getCommand, getCommandRenderer, getCommands, getL10nMode, getPanelState, hasCommand, initCommandRenderer, isCommandsSupressed, isHighlighted, isInDesignMode, process, registerCommand, registerCommands, registerSettings, render, setInDesignMode, setL10nMode, setUnsavedSettings, supressCommands, unregisterCommandafterSettingsSet, dispatchTitleChange, getIndex, getSetting, getSettings, getSettingValue, hasSetting, hasUnsavedSettings, hideSetting, isPersisted, registerSetting, setIndex, setSettings, setSettingValue, toSpringXml, unregisterSettingaddMessageListener, bindingSuspended, dispatchMessage, getListeners, isBindingSuspended, removeMessageListener, setParentbeforePersistencePhase, equals, getAttribute, getBeanName, getImage, getParent, getSid, hashCode, isInitialized, reset, setBeanName, updateBeanNameclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddMessageListener, dispatchMessage, getListeners, removeMessageListenerattach, clearBusy, detach, equals, getAttribute, getAttribute, getBeanName, getImage, getIndex, getParent, getSclass, hasAttribute, hashCode, hightlightPanel, isAttached, isHighlighted, isPersisted, removeAttribute, render, setAttribute, setIndex, setParent, setSclass, showBusy, toSpringXml, toStringafterPropertiesSetgetSidisInDesignMode, setInDesignModegetL10nMode, setL10nModegetCommand, getCommands, getPanelState, hasCommand, isCommandsSupressed, supressCommands, unregisterCommandprocesssetTargetTypegetTargetType, hasTargetTypepublic static final L10nString L10N_MSG_CANNOT_DELETE_PARENT
public DefaultEntityHierarchyPanel()
public DefaultEntityHierarchyPanel(boolean readOnly,
boolean showChildren)
protected void arrangeForNullTargetType()
arrangeForNullTargetType in class AbstractTargetTypeAwarePanelprotected void arrangeForState(PanelState newState)
arrangeForState in class AbstractCommandAwarePanelprotected void arrangeForTargetType()
arrangeForTargetType in class AbstractTargetTypeAwarePanelprotected boolean canBind(Entity entity)
public int getItemCount()
getItemCount in interface EntityHierarchyPanelprotected List<org.zkoss.zul.Treeitem> getMatchingItems(EntityHierarchyItem ehi)
protected List<org.zkoss.zul.Treeitem> getMatchingItemsRecursive(org.zkoss.zul.Treeitem parentItem, EntityHierarchyItem ehi, List<org.zkoss.zul.Treeitem> matched)
public EntityHierarchyItem getSelectedItem()
getSelectedItem in interface EntityHierarchyPanelpublic Set<CommandEnum> getSupportedCommands()
getSupportedCommands in interface CommandAwaregetSupportedCommands in class AbstractCommandAwarePanelpublic boolean isReadOnly()
isReadOnly in interface EntityHierarchyPanelpublic 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 AbstractMessageAwarePanelprotected void processValidCommand(Command command)
processValidCommand in class AbstractZkTargetTypeAwarePanelCopyright 2012-2013 Veniamin Isaias. All rights reserved.