@Deprecated public static interface Window.Editor<T extends Entity> extends Window, EditorScreen<T>, Window.Committable, LegacyFrame
Window.BeforeCloseEvent, Window.BeforeCloseWithCloseButtonEvent, Window.BeforeCloseWithShortcutEvent, Window.CloseListener, Window.CloseOrigin, Window.CloseWithCommitListener, Window.Committable, Window.ContentSwitchMode, Window.Editor<T extends Entity>, Window.HasFoldersPane, Window.HasUserIndicator, Window.HasWorkArea, Window.Lookup<T extends Entity>, Window.TopLevelWindow, Window.WrapperFrame.MessageMode, Frame.MessageType, Frame.NotificationTypeExpandingLayout.ExpandDirectionComponent.Alignment, Component.BelongToFrame, Component.Disposable, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.OptionsStyleProvider| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NAME
Deprecated.
|
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, FULL_SIZE, UNITS_PERCENTAGE, UNITS_PIXELSENABLE_EDITING, WINDOW_CLOSE, WINDOW_COMMIT, WINDOW_COMMIT_AND_CLOSENO_OPTIONS, WINDOW_CLOSE_ACTION, WINDOW_COMMIT_AND_CLOSE_ACTION, WINDOW_DISCARD_AND_CLOSE_ACTION| Modifier and Type | Method and Description |
|---|---|
boolean |
commit()
Deprecated.
Called by the framework to validate the screen components and commit changes.
|
boolean |
commit(boolean validate)
Deprecated.
Called by the framework to commit changes with optional validation.
|
T |
getItem()
Deprecated.
|
Datasource |
getParentDs()
Deprecated.
|
boolean |
isCrossFieldValidate()
Deprecated.
|
void |
setCrossFieldValidate(boolean crossFieldValidate)
Deprecated.
Enable/disable cross field validation on
Window.validateAll() call. |
void |
setItem(Entity item)
Deprecated.
Called by the framework to set an edited entity after creation of all components and datasources, and
after
init(). |
void |
setParentDs(Datasource parentDs)
Deprecated.
This method is called by the framework to set parent datasource to commit into this datasource instead
of directly to the database.
|
addBeforeCloseWithCloseButtonListener, addBeforeCloseWithShortcutListener, addBeforeWindowCloseListener, addCloseListener, addCloseWithCommitListener, addListener, addTimer, applySettings, close, close, closeAndRun, deleteSettings, getContext, getDialogOptions, getFocusComponent, getFrameOwner, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getSettings, getTimer, getWindowManager, isCloseable, removeBeforeCloseWithCloseButtonListener, removeBeforeCloseWithShortcutListener, removeBeforeWindowCloseListener, removeCloseListener, removeCloseWithCommitListener, removeListener, saveSettings, setCloseable, setFocusComponent, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, validate, validateAlladdFacet, getFacet, getFacetNN, getFacets, isValid, removeFacet, validateexpand, expand, getExpandDirection, isExpanded, resetExpandedadd, getComponent, getComponentNN, indexOfadd, add, focusFirstComponent, getComponent, getComponentNN, getComponents, getOwnComponent, getOwnComponents, getOwnComponentsStream, remove, remove, removeAlladdStyleName, getAlignment, getHeight, getHeightSizeUnit, getHeightUnits, getId, getParent, getStyleName, getWidth, getWidthSizeUnit, getWidthUnits, isEnabled, isEnabledItself, isEnabledRecursive, isResponsive, isVisible, isVisibleItself, isVisibleRecursive, removeStyleName, requestFocus, setAlignment, setEnabled, setHeight, setHeightAuto, setHeightFull, setId, setParent, setResponsive, setSizeAuto, setSizeFull, setStyleName, setVisible, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, withUnwrapped, withUnwrappedCompositiongetFrame, setFramegetSpacing, setSpacinggetMargin, setMargin, setMargin, setMarginaddAction, addAction, getAction, getActionNN, getActions, getSubPart, removeAction, removeAction, removeAllActionsgetIcon, setIcon, setIconFromSetgetCaption, setCaptiongetDescription, setDescriptionopenEditor, openEditor, openEditor, openEditor, openEditor, openEditor, openEditor, openFrame, openFrame, openLookup, openLookup, openLookup, openLookup, openWindow, openWindow, showMessageDialog, showNotification, showNotification, showNotification, showOptionDialog, showOptionDialog, showWebPagegetExpandRatio, setExpandRatiogetEditedEntity, isLocked, setEntityToEdithasUnsavedChangescommitAndClose, isModifiedgetCompanion, getContext, getDsContext, getMessagesPack, getXmlDescriptor, isValid, setDsContext, setMessagesPack, setXmlDescriptor, validate, validate, validateAllgetComponent, getCompositiongetWrappedFrame@Deprecated static final java.lang.String NAME
ComponentsFactoryT getItem()
void setItem(Entity item)
init().item - entity instanceboolean commit()
boolean commit(boolean validate)
validate - false to avoid validation@Nullable Datasource getParentDs()
void setParentDs(Datasource parentDs)
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