public abstract class AbstractMutablePanel extends AbstractZkBindablePanel implements MutablePanel
hasBindProperty| Modifier and Type | Field and Description |
|---|---|
protected Query |
activeQuery |
protected static String |
ATTRIB_PATH_META |
protected org.zkoss.zkplus.databind.DataBinder |
dataBinder |
protected static String |
DEFAULT_BEAN_ID |
static L10nString |
L10N_COLUMN_ATTRIBUTE |
static L10nString |
L10N_COLUMN_VALUE |
static L10nString |
L10N_MSG_REFRESH_FAILED |
L10N_MSG_DELETE_CONFIRMATION, L10N_MSG_DELETION_FAILED, L10N_MSG_ENTITY_MODIFIED_BY_OTHERS, L10N_MSG_UNIQUE_KEY_VIOLATIONCOMMANDS_SORTER, L10N_UNAUTHORIZED_ACCESS, L10N_UNEXPECTED_ERROR, prevState, statebase, BEANS_NAMESPACESECURITY_PATH_DELIM| Modifier | Constructor and Description |
|---|---|
protected |
AbstractMutablePanel(MutableMode mutableMode) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDirtyListener(DirtyListener dirtyListener) |
protected void |
arrangeForMasterEntity() |
protected void |
arrangeForNullTargetType() |
protected void |
arrangeForRenderScheme(org.zkoss.zul.Grid grid,
RenderScheme renderScheme) |
protected void |
arrangeForRenderScheme(org.zkoss.zul.Grid grid,
RenderScheme renderScheme,
String BEAN_ID) |
protected void |
arrangeForState(PanelState newState) |
protected void |
arrangeForTargetEntity(Entity targetEntity) |
protected void |
arrangeForTargetType() |
void |
beforePersist() |
protected static org.zkoss.zul.Grid |
buildGrid() |
protected static org.zkoss.zk.ui.Component |
buildViewer(String clazzName) |
protected void |
ensureVisible(org.zkoss.zk.ui.Component comp) |
protected org.zkoss.zk.ui.Component |
getBoundComponent(PathMetadata matchPath) |
MutableMode |
getMutableMode() |
protected Class<? extends MutablePanel> |
getMutableType() |
Set<CommandEnum> |
getSupportedCommands() |
Entity |
getTargetEntity() |
protected Entity |
getTargetEntityDirect() |
boolean |
hasTargetEntity() |
boolean |
isDirty() |
protected void |
loadBinderProxySafe() |
protected void |
monitorComponents(boolean monitor) |
void |
persist() |
protected void |
persistLocal() |
protected boolean |
processEntityDeletion(Entity entity) |
protected boolean |
processEntityDeselection(Entity entity) |
protected boolean |
processEntityInsertion(Entity entity) |
protected boolean |
processEntityUpdate(Entity entity) |
void |
processMessage(Message message) |
protected void |
processValidCommand(Command command) |
protected void |
registerSettings() |
void |
render() |
protected void |
setDataBinderBeans() |
void |
setDirty(boolean dirty) |
void |
setL10nMode(boolean l10nMode) |
Set<javax.validation.ConstraintViolation<Entity>> |
validate() |
attach, bind, bindEcho, clearBusy, detach, displayMessage, getAttribute, getSclass, hasAttribute, hightlightPanel, initBaseComponent, isAttached, removeAttribute, setAttribute, setSclass, showBusyapplyCurrentCritriaValues, arrangeForNullMasterType, canBind, getDropdownItems, getMasterEntity, getPersistedQuery, hasMasterEntity, isBoundOn, onItemClicked, prepareMutableInstance, setMasterEntity, setTargetEntity, toStringgetBindProperty, hasBindProperty, isMasterDetail, setBindPropertyafterPropertiesSet, arrangeForMasterType, getMasterType, hasMasterType, onSettingValueChanged, setMasterTypegetTargetType, hasTargetType, setTargetTypeactivateCommand, activateCommand, activateCommands, canProcess, getCommand, getCommandRenderer, getCommands, getL10nMode, getPanelState, hasCommand, initCommandRenderer, isCommandsSupressed, isHighlighted, isInDesignMode, process, registerCommand, registerCommands, setInDesignMode, 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, waitattach, clearBusy, detach, equals, getAttribute, getAttribute, getBeanName, getImage, getIndex, getParent, getSclass, hasAttribute, hashCode, hightlightPanel, isAttached, isHighlighted, isPersisted, removeAttribute, setAttribute, setIndex, setParent, setSclass, showBusy, toSpringXml, toStringafterPropertiesSetgetSidgetCommand, getCommands, getPanelState, hasCommand, isCommandsSupressed, supressCommands, unregisterCommandprocessgetSettings, getSettingValue, hasSetting, hasUnsavedSettings, hideSetting, setSettings, setSettingValue, setUnsavedSettingsbind, canBind, getMasterEntity, hasMasterEntity, isBoundOn, setMasterEntity, setTargetEntitygetTargetType, hasTargetTypegetL10nModesetTargetTypesetMasterTypegetMasterType, hasMasterTypeisInDesignMode, setInDesignModeprotected Query activeQuery
protected static final String ATTRIB_PATH_META
protected org.zkoss.zkplus.databind.DataBinder dataBinder
protected static final String DEFAULT_BEAN_ID
public static final L10nString L10N_COLUMN_ATTRIBUTE
public static final L10nString L10N_COLUMN_VALUE
public static final L10nString L10N_MSG_REFRESH_FAILED
protected AbstractMutablePanel(MutableMode mutableMode)
public void addDirtyListener(DirtyListener dirtyListener)
addDirtyListener in interface MutablePanelprotected void arrangeForMasterEntity()
arrangeForMasterEntity in class AbstractBindablePanelprotected void arrangeForNullTargetType()
arrangeForNullTargetType in class AbstractTargetTypeAwarePanelprotected void arrangeForRenderScheme(org.zkoss.zul.Grid grid,
RenderScheme renderScheme)
protected void arrangeForRenderScheme(org.zkoss.zul.Grid grid,
RenderScheme renderScheme,
String BEAN_ID)
protected void arrangeForState(PanelState newState)
arrangeForState in class AbstractCommandAwarePanelprotected void arrangeForTargetEntity(Entity targetEntity)
arrangeForTargetEntity in class AbstractBindablePanelprotected void arrangeForTargetType()
arrangeForTargetType in class AbstractTargetTypeAwarePanelpublic void beforePersist()
beforePersist in interface MutablePanelprotected static org.zkoss.zul.Grid buildGrid()
protected static org.zkoss.zk.ui.Component buildViewer(String clazzName)
protected void ensureVisible(org.zkoss.zk.ui.Component comp)
protected org.zkoss.zk.ui.Component getBoundComponent(PathMetadata matchPath)
public MutableMode getMutableMode()
getMutableMode in interface MutablePanelprotected Class<? extends MutablePanel> getMutableType()
public Set<CommandEnum> getSupportedCommands()
getSupportedCommands in interface CommandAwaregetSupportedCommands in class AbstractCommandAwarePanelpublic Entity getTargetEntity()
getTargetEntity in interface BindCapableprotected Entity getTargetEntityDirect()
public boolean hasTargetEntity()
hasTargetEntity in interface BindCapablepublic boolean isDirty()
isDirty in interface MutablePanelprotected void loadBinderProxySafe()
protected void monitorComponents(boolean monitor)
public void persist()
throws Exception
persist in interface MutablePanelExceptionprotected boolean processEntityDeletion(Entity entity)
processEntityDeletion in class AbstractBindablePanelprotected boolean processEntityDeselection(Entity entity)
processEntityDeselection in class AbstractBindablePanelprotected boolean processEntityInsertion(Entity entity)
processEntityInsertion in class AbstractBindablePanelprotected boolean processEntityUpdate(Entity entity)
processEntityUpdate in class AbstractBindablePanelpublic void processMessage(Message message)
processMessage in interface MessageListenerprocessMessage in class AbstractBindablePanelprotected void processValidCommand(Command command)
processValidCommand in class AbstractZkBindablePanelprotected void registerSettings()
registerSettings in class AbstractCommandAwarePanelpublic void render()
render in interface Panelrender in class AbstractCommandAwarePanelprotected void setDataBinderBeans()
public void setDirty(boolean dirty)
setDirty in interface MutablePanelpublic void setL10nMode(boolean l10nMode)
setL10nMode in interface I18nAwaresetL10nMode in class AbstractCommandAwarePanelpublic Set<javax.validation.ConstraintViolation<Entity>> validate()
validate in interface MutablePanelCopyright 2012-2013 Veniamin Isaias. All rights reserved.