@Component @Scope(value="prototype") public class DefaultEntityPersisterDialog extends AbstractDialog implements EntityPersisterDialog, DirtyListener
| Modifier and Type | Field and Description |
|---|---|
static L10nString |
L10N_MESSAGE_DATA_NTEGRITY_ERRORS |
static L10nString |
L10N_MESSAGE_IGNORE_CHANGES |
static L10nString |
L10N_MESSAGE_UNEXPECTED_ERRORS |
btnCancel, btnOK, dialogButtongs, dialogContent, L10N_BUTTON_CANCEL, L10N_BUTTON_CLOSE, L10N_BUTTON_OK, listener, windowATTRIB_DIALOG| Modifier | Constructor and Description |
|---|---|
protected |
DefaultEntityPersisterDialog(Entity entity,
Set<Setting<?>> settings,
MutableMode mutableMode) |
protected |
DefaultEntityPersisterDialog(Entity entity,
Set<Setting<?>> settings,
MutableMode mutableMode,
boolean inMemoryEditing) |
protected |
DefaultEntityPersisterDialog(Entity entity,
Set<Setting<?>> settings,
MutableMode mutableMode,
boolean inMemoryEditing,
boolean skipValidation) |
protected |
DefaultEntityPersisterDialog(Entity entity,
Set<Setting<?>> settings,
MutableMode mutableMode,
boolean inMemoryEditing,
boolean skipValidation,
boolean allowMultipleNew) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doCancel() |
protected Set<Setting<?>> |
getFilteredSettings() |
MutableMode |
getMutableMode() |
protected Message |
getOKMessage() |
Set<CommandEnum> |
getSupportedCommands() |
boolean |
isDirty() |
protected boolean |
isOKReady() |
void |
onDirty(boolean dirty) |
void |
onEvent(org.zkoss.zk.ui.event.Event event) |
protected void |
prepareButtons() |
protected void |
prepareContent() |
protected void |
prepareForOK() |
protected void |
prepareWindow() |
void |
process(Command command) |
void |
setDirty(boolean dirty) |
void |
setMutableType(Class<? extends MutablePanel> mutableType) |
doClose, doOK, getCommand, getCommands, getL10nMode, getPanelState, hasCommand, isCommandsSupressed, isInDesignMode, onBeforeShow, prepareBottomToolbar, prepareContentLayout, prepareTitle, registerCommand, setInDesignMode, setL10nMode, show, showNotOKMessage, supressCommands, toString, unregisterCommandclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCommand, getCommands, getPanelState, hasCommand, isCommandsSupressed, supressCommands, unregisterCommandgetL10nMode, setL10nModeisInDesignMode, setInDesignModepublic static final L10nString L10N_MESSAGE_DATA_NTEGRITY_ERRORS
public static final L10nString L10N_MESSAGE_IGNORE_CHANGES
public static final L10nString L10N_MESSAGE_UNEXPECTED_ERRORS
protected DefaultEntityPersisterDialog(Entity entity, Set<Setting<?>> settings, MutableMode mutableMode)
protected DefaultEntityPersisterDialog(Entity entity, Set<Setting<?>> settings, MutableMode mutableMode, boolean inMemoryEditing)
protected DefaultEntityPersisterDialog(Entity entity, Set<Setting<?>> settings, MutableMode mutableMode, boolean inMemoryEditing, boolean skipValidation)
protected DefaultEntityPersisterDialog(Entity entity, Set<Setting<?>> settings, MutableMode mutableMode, boolean inMemoryEditing, boolean skipValidation, boolean allowMultipleNew)
protected void doCancel()
doCancel in class AbstractDialogpublic MutableMode getMutableMode()
getMutableMode in interface EntityPersisterDialogprotected Message getOKMessage()
getOKMessage in class AbstractDialogpublic Set<CommandEnum> getSupportedCommands()
getSupportedCommands in interface CommandAwaregetSupportedCommands in class AbstractDialogpublic boolean isDirty()
isDirty in interface EntityPersisterDialogprotected boolean isOKReady()
isOKReady in class AbstractDialogpublic void onDirty(boolean dirty)
onDirty in interface DirtyListenerpublic 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>onEvent in class AbstractDialogExceptionprotected void prepareButtons()
prepareButtons in class AbstractDialogprotected void prepareContent()
prepareContent in class AbstractDialogprotected void prepareForOK()
prepareForOK in class AbstractDialogprotected void prepareWindow()
prepareWindow in class AbstractDialogpublic void process(Command command) throws CommandProcessingException
process in interface CommandListenerprocess in class AbstractDialogCommandProcessingExceptionpublic void setDirty(boolean dirty)
setDirty in interface EntityPersisterDialogpublic void setMutableType(Class<? extends MutablePanel> mutableType)
setMutableType in interface EntityPersisterDialogCopyright 2012-2013 Veniamin Isaias. All rights reserved.