public static interface Window.Editor extends Window.Committable
Window.BeforeCloseEvent, Window.BeforeCloseWithCloseButtonEvent, Window.BeforeCloseWithCloseButtonListener, Window.BeforeCloseWithShortcutEvent, Window.BeforeCloseWithShortcutListener, Window.CloseListener, Window.CloseWithCommitListener, Window.Committable, Window.ContentSwitchMode, Window.Editor, Window.HasFoldersPane, Window.HasUserIndicator, Window.HasWorkArea, Window.Lookup, Window.MainWindow, Window.TopLevelWindow, Window.WrapperFrame.MessageMode, Frame.MessageType, Frame.NotificationTypeExpandingLayout.ExpandDirectionComponent.ActionOwner, Component.ActionsHolder, Component.Alignment, Component.BelongToFrame, Component.Buffered, Component.ChildEditableController, Component.Collapsable, Component.Container, Component.ContextHelpIconClickEvent, Component.Disposable, Component.Editable, Component.EditableChangeEvent, Component.EditableChangeListener, Component.EditableChangeNotifier, Component.ExpandedStateChangeEvent, Component.ExpandedStateChangeListener, Component.Focusable, Component.HasBorder, Component.HasButtonsPanel, Component.HasCaption, Component.HasContextHelp, Component.HasFormatter, Component.HasIcon, Component.HasInputPrompt, Component.HasNamedComponents, Component.HasOptionsStyleProvider, Component.HasPresentations, Component.HasRowsCount, Component.HasSettings, Component.HasValue, Component.HasXmlDescriptor, Component.LayoutClickEvent, Component.LayoutClickListener, Component.LayoutClickNotifier, Component.Margin, Component.MouseEventDetails, Component.OptionsStyleProvider, Component.OrderedContainer, Component.OuterMargin, Component.SecuredActionsHolder, Component.ShortcutAction, Component.ShortcutNotifier, Component.ShortcutTriggeredEvent, Component.Spacing, Component.UiPermissionAware, Component.Validatable, Component.ValueChangeEvent, Component.ValueChangeListener| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NAME
Name that is used to register a client type specific screen implementation in
ComponentsFactory |
static java.lang.String |
WINDOW_CLOSE
Name of action that closes the screen.
|
static java.lang.String |
WINDOW_COMMIT
Name of action that commits changes.
|
static java.lang.String |
WINDOW_COMMIT_AND_CLOSE
Name of action that commits changes and closes the screen.
|
BROWSE_WINDOW_SUFFIX, CLOSE_ACTION_ID, COMMIT_ACTION_ID, CREATE_WINDOW_SUFFIX, EDITOR_WINDOW_SUFFIX, LOOKUP_WINDOW_SUFFIX, SELECT_ACTION_IDAUTO_SIZE, AUTO_SIZE_PX, UNITS_PERCENTAGE, UNITS_PIXELS| Modifier and Type | Method and Description |
|---|---|
boolean |
commit()
Called by the framework to validate the screen components and commit changes.
|
boolean |
commit(boolean validate)
Called by the framework to commit changes with optional validation.
|
void |
commitAndClose()
Called by the framework to validate, commit and close the screen if commit was successful.
|
Entity |
getItem() |
Datasource |
getParentDs() |
boolean |
isCrossFieldValidate() |
boolean |
isLocked() |
void |
setCrossFieldValidate(boolean crossFieldValidate)
Enable/disable cross field validation on
Window.validateAll() call. |
void |
setItem(Entity item)
Called by the framework to set an edited entity after creation of all components and datasources, and
after
init(). |
void |
setParentDs(Datasource parentDs)
This method is called by the framework to set parent datasource to commit into this datasource instead
of directly to the database.
|
isModifiedaddBeforeCloseWithCloseButtonListener, addBeforeCloseWithShortcutListener, addCloseListener, addCloseWithCommitListener, addListener, addTimer, applySettings, close, close, closeAndRun, deleteSettings, getContentSwitchMode, getContext, getDialogOptions, getFocusComponent, getSettings, getTimer, getWindowManager, removeBeforeCloseWithCloseButtonListener, removeBeforeCloseWithShortcutListener, removeCloseListener, removeCloseWithCommitListener, removeListener, saveSettings, setContentSwitchMode, setFocusComponent, setWindowManager, validate, validateAllgetDialogParams, getDsContext, getMessagesPack, getRegisteredComponent, isValid, openEditor, openEditor, openEditor, openEditor, openEditor, openEditor, openEditor, openFrame, openFrame, openLookup, openLookup, openLookup, openLookup, openWindow, openWindow, registerComponent, setContext, setDsContext, setMessagesPack, showMessageDialog, showNotification, showNotification, showNotification, showOptionDialog, showOptionDialog, showWebPage, unregisterComponent, validateexpand, expand, getExpandDirection, isExpanded, resetExpandedadd, getComponent, getComponentNN, indexOfadd, getComponent, getComponentNN, getComponents, getOwnComponent, getOwnComponents, remove, removeAlladdStyleName, getAlignment, getDebugId, getHeight, getHeightUnits, getId, getParent, getStyleName, getWidth, getWidthUnits, isEnabled, isEnabledItself, isResponsive, isVisible, isVisibleItself, removeStyleName, requestFocus, setAlignment, setDebugId, setEnabled, setHeight, setHeightAuto, setHeightFull, setId, setParent, setResponsive, setSizeAuto, setSizeFull, setStyleName, setVisible, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapCompositiongetFrame, setFramegetSpacing, setSpacinggetMargin, setMargin, setMargin, setMarginaddAction, addAction, getAction, getActionNN, getActions, removeAction, removeAction, removeAllActionsgetIcon, setIcon, setIconFromSetgetCaption, getDescription, setCaption, setDescriptionstatic final java.lang.String NAME
ComponentsFactorystatic final java.lang.String WINDOW_COMMIT
WINDOW_COMMIT_AND_CLOSE ID, this action also
closes the screen after commit.static final java.lang.String WINDOW_COMMIT_AND_CLOSE
static final java.lang.String WINDOW_CLOSE
Entity getItem()
@Nullable Datasource getParentDs()
void setParentDs(Datasource parentDs)
void setItem(Entity item)
init().item - entity instanceboolean commit()
boolean commit(boolean validate)
validate - false to avoid validationvoid commitAndClose()
Window.COMMIT_ACTION_ID to associated Window.CloseListeners.commitAndClose in interface Window.Committableboolean isLocked()
boolean isCrossFieldValidate()
Window.validateAll()
call using BeanValidation.BeanValidationvoid setCrossFieldValidate(boolean crossFieldValidate)
Window.validateAll() call. UiCrossFieldChecks group only
(without Default group) when there are no other validation errors in UI components.
Cross field validation is triggered before AbstractWindow.postValidate(com.haulmont.cuba.gui.components.ValidationErrors) hook.
crossFieldValidate - cross field validate flagBeanValidation