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.Wrapper
Frame.MessageMode, Frame.MessageType, Frame.NotificationType
ExpandingLayout.ExpandDirection
Component.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_ID
AUTO_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.
|
isModified
addBeforeCloseWithCloseButtonListener, 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, validateAll
getDialogParams, 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, validate
expand, expand, getExpandDirection, isExpanded, resetExpanded
add, getComponent, getComponentNN, indexOf
add, getComponent, getComponentNN, getComponents, getOwnComponent, getOwnComponents, remove, removeAll
addStyleName, 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, unwrapComposition
getFrame, setFrame
getSpacing, setSpacing
getMargin, setMargin, setMargin, setMargin
addAction, addAction, getAction, getActionNN, getActions, removeAction, removeAction, removeAllActions
getIcon, setIcon, setIconFromSet
getCaption, getDescription, setCaption, setDescription
static final java.lang.String NAME
ComponentsFactory
static 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.CloseListener
s.commitAndClose
in interface Window.Committable
boolean isLocked()
boolean isCrossFieldValidate()
Window.validateAll()
call using BeanValidation
.BeanValidation
void 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