Screen APIs instead.@Deprecated public class AbstractWindow extends io.jmix.ui.screen.Screen implements Window, Window.Wrapper, LegacyFrame, io.jmix.ui.component.Component.HasXmlDescriptor, io.jmix.ui.component.SecuredActionsHolder, io.jmix.ui.screen.ChangeTracker, CubaLegacySettings
io.jmix.ui.screen.Screen.AfterCloseEvent, io.jmix.ui.screen.Screen.AfterDetachEvent, io.jmix.ui.screen.Screen.AfterInitEvent, io.jmix.ui.screen.Screen.AfterShowEvent, io.jmix.ui.screen.Screen.BeforeCloseEvent, io.jmix.ui.screen.Screen.BeforeShowEvent, io.jmix.ui.screen.Screen.InitEventWindow.BeforeCloseWithCloseButtonEvent, Window.BeforeCloseWithShortcutEvent, Window.CloseListener, Window.CloseWithCommitListener, Window.Editor<T>, Window.HasFoldersPane, Window.Lookup<T>, Window.TopLevelWindow, Window.Wrapperio.jmix.ui.component.Window.BeforeCloseEvent, io.jmix.ui.component.Window.CloseOrigin, io.jmix.ui.component.Window.Committable, io.jmix.ui.component.Window.ContentSwitchMode, io.jmix.ui.component.Window.HasUserIndicator, io.jmix.ui.component.Window.HasWorkAreaFrame.MessageMode, Frame.MessageType, Frame.NotificationType| Modifier and Type | Field and Description |
|---|---|
protected io.jmix.ui.component.Frame |
frame
Deprecated.
|
protected Messages |
messages
Deprecated.
|
protected io.jmix.core.MessageTools |
messageTools
Deprecated.
|
static java.lang.String |
UNKNOWN_CLOSE_ACTION_ID
Deprecated.
|
| Constructor and Description |
|---|
AbstractWindow()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(io.jmix.ui.component.Component component)
Deprecated.
|
void |
add(io.jmix.ui.component.Component childComponent,
int index)
Deprecated.
|
void |
addAction(io.jmix.ui.action.Action action)
Deprecated.
|
void |
addAction(io.jmix.ui.action.Action action,
int index)
Deprecated.
|
io.jmix.core.common.event.Subscription |
addBeforeWindowCloseListener(java.util.function.Consumer<io.jmix.ui.component.Window.BeforeCloseEvent> listener)
Deprecated.
|
void |
addFacet(io.jmix.ui.component.Facet facet)
Deprecated.
|
void |
addStyleName(java.lang.String styleName)
Deprecated.
|
protected void |
afterShow(io.jmix.ui.screen.Screen.AfterShowEvent event)
Deprecated.
|
void |
applyDataLoadingSettings(Settings settings)
Deprecated.
Applies screen settings to data components.
|
void |
applySettings(Settings settings)
Deprecated.
This method is called when the screen is opened to restore settings saved in the database for the current user.
|
protected void |
beforeClose(io.jmix.ui.screen.Screen.BeforeCloseEvent event)
Deprecated.
|
io.jmix.ui.util.OperationResult |
closeWithDiscard()
Deprecated.
Ignores the unsaved changes and closes the screen with
FrameOwner.WINDOW_DISCARD_AND_CLOSE_ACTION action. |
void |
deleteSettings()
Deprecated.
This method is called by the framework on reset to defaults action
|
void |
expand(io.jmix.ui.component.Component component)
Deprecated.
|
void |
expand(io.jmix.ui.component.Component component,
java.lang.String height,
java.lang.String width)
Deprecated.
|
protected java.lang.String |
formatMessage(java.lang.String key,
java.lang.Object... params)
Deprecated.
Get localized message from the message pack associated with this frame or window, and use it as a format
string for parameters provided.
|
io.jmix.ui.action.Action |
getAction(java.lang.String id)
Deprecated.
|
java.util.Collection<io.jmix.ui.action.Action> |
getActions()
Deprecated.
|
io.jmix.ui.component.ActionsPermissions |
getActionsPermissions()
Deprecated.
|
io.jmix.ui.component.Component.Alignment |
getAlignment()
Deprecated.
|
java.lang.String |
getCaption()
Deprecated.
|
<T> T |
getCompanion()
Deprecated.
|
java.lang.Object |
getComponent()
Deprecated.
|
io.jmix.ui.component.Component |
getComponent(int index)
Deprecated.
|
io.jmix.ui.component.Component |
getComponent(java.lang.String id)
Deprecated.
|
java.util.Collection<io.jmix.ui.component.Component> |
getComponents()
Deprecated.
|
java.lang.Object |
getComposition()
Deprecated.
|
io.jmix.ui.component.Window.ContentSwitchMode |
getContentSwitchMode()
Deprecated.
|
WindowContext |
getContext()
Deprecated.
|
java.lang.String |
getDescription()
Deprecated.
Screen description is used by the framework to show some specified information, e.g.
|
DialogOptions |
getDialogOptions()
Deprecated.
|
DsContext |
getDsContext()
Deprecated.
|
io.jmix.ui.component.ExpandingLayout.ExpandDirection |
getExpandDirection()
Deprecated.
|
float |
getExpandRatio(io.jmix.ui.component.Component component)
Deprecated.
|
io.jmix.ui.component.Facet |
getFacet(java.lang.String id)
Deprecated.
|
java.util.stream.Stream<io.jmix.ui.component.Facet> |
getFacets()
Deprecated.
|
java.lang.String |
getFocusComponent()
Deprecated.
|
io.jmix.ui.component.Frame |
getFrame()
Deprecated.
|
io.jmix.ui.screen.Screen |
getFrameOwner()
Deprecated.
|
float |
getHeight()
Deprecated.
|
io.jmix.ui.component.SizeUnit |
getHeightSizeUnit()
Deprecated.
|
java.lang.String |
getIcon()
Deprecated.
|
io.jmix.ui.component.MarginInfo |
getMargin()
Deprecated.
|
java.lang.String |
getMaxHeight()
Deprecated.
|
java.lang.String |
getMaxWidth()
Deprecated.
|
protected java.lang.String |
getMessage(java.lang.String key)
Deprecated.
Get localized message from the message pack associated with this frame or window.
|
java.lang.String |
getMessagesPack()
Deprecated.
|
java.lang.String |
getMinHeight()
Deprecated.
|
java.lang.String |
getMinWidth()
Deprecated.
|
io.jmix.ui.component.Component |
getOwnComponent(java.lang.String id)
Deprecated.
|
java.util.Collection<io.jmix.ui.component.Component> |
getOwnComponents()
Deprecated.
|
java.util.stream.Stream<io.jmix.ui.component.Component> |
getOwnComponentsStream()
Deprecated.
|
io.jmix.ui.component.Component |
getParent()
Deprecated.
|
protected int |
getScreenHashCode(io.jmix.ui.screen.Screen screen)
Deprecated.
|
Settings |
getSettings()
Deprecated.
|
boolean |
getSpacing()
Deprecated.
|
java.lang.String |
getStyleName()
Deprecated.
|
float |
getWidth()
Deprecated.
|
io.jmix.ui.component.SizeUnit |
getWidthSizeUnit()
Deprecated.
|
WindowManager |
getWindowManager()
Deprecated.
It is recommended to use
Screens instead, it can be obtained from ScreenContext
of FrameOwner. |
io.jmix.ui.component.Frame |
getWrappedFrame()
Deprecated.
|
io.jmix.ui.component.Window |
getWrappedWindow()
Deprecated.
INTERNAL.
|
org.dom4j.Element |
getXmlDescriptor()
Deprecated.
|
protected boolean |
handleValidationErrors(io.jmix.ui.component.ValidationErrors errors)
Deprecated.
|
boolean |
hasUnsavedChanges()
Deprecated.
|
int |
indexOf(io.jmix.ui.component.Component component)
Deprecated.
|
void |
init(java.util.Map<java.lang.String,java.lang.Object> params)
Deprecated.
Called by the framework after creation of all components and before showing the screen.
|
protected void |
init(io.jmix.ui.screen.Screen.InitEvent initEvent)
Deprecated.
|
protected void |
initEnableEditingActionStub()
Deprecated.
|
boolean |
isAttributeAccessControlEnabled()
Deprecated.
Whether automatic applying of attribute access rules enabled.
|
boolean |
isCloseable()
Deprecated.
|
boolean |
isEnabled()
Deprecated.
|
boolean |
isEnabledRecursive()
Deprecated.
|
boolean |
isExpanded(io.jmix.ui.component.Component component)
Deprecated.
|
boolean |
isResponsive()
Deprecated.
|
protected boolean |
isSameScreen(io.jmix.ui.screen.Screen openedScreen)
Deprecated.
|
boolean |
isValid()
Deprecated.
|
boolean |
isVisible()
Deprecated.
|
boolean |
isVisibleRecursive()
Deprecated.
|
void |
onAfterDetach(io.jmix.ui.screen.Screen.AfterDetachEvent event)
Deprecated.
|
protected void |
postValidate(io.jmix.ui.component.ValidationErrors errors)
Deprecated.
Hook to be implemented in subclasses.
|
protected boolean |
preClose(java.lang.String actionId)
Deprecated.
Hook to be implemented in subclasses.
|
void |
ready()
Deprecated.
Hook to be implemented in subclasses.
|
void |
remove(io.jmix.ui.component.Component component)
Deprecated.
|
void |
removeAction(io.jmix.ui.action.Action action)
Deprecated.
|
void |
removeAction(java.lang.String id)
Deprecated.
|
void |
removeAll()
Deprecated.
|
void |
removeAllActions()
Deprecated.
|
void |
removeBeforeWindowCloseListener(java.util.function.Consumer<io.jmix.ui.component.Window.BeforeCloseEvent> listener)
Deprecated.
Removes a previously added listener.
|
void |
removeFacet(io.jmix.ui.component.Facet facet)
Deprecated.
|
void |
removeStyleName(java.lang.String styleName)
Deprecated.
|
void |
resetExpanded()
Deprecated.
|
void |
saveSettings()
Deprecated.
This method is called when the screen is closed to save the screen settings to the database.
|
void |
setAlignment(io.jmix.ui.component.Component.Alignment alignment)
Deprecated.
|
void |
setCaption(java.lang.String caption)
Deprecated.
Set the screen caption.
|
void |
setCloseable(boolean closeable)
Deprecated.
|
void |
setCompanion(java.lang.Object companion)
Deprecated.
INTERNAL.
|
void |
setContentSwitchMode(io.jmix.ui.component.Window.ContentSwitchMode mode)
Deprecated.
|
void |
setDescription(java.lang.String description)
Deprecated.
Screen description is used by the framework to show some specified information, e.g.
|
void |
setDsContext(DsContext dsContext)
Deprecated.
INTERNAL.
|
void |
setEnabled(boolean enabled)
Deprecated.
|
void |
setExpandRatio(io.jmix.ui.component.Component component,
float ratio)
Deprecated.
|
void |
setFocusComponent(java.lang.String componentId)
Deprecated.
|
void |
setFrame(io.jmix.ui.component.Frame frame)
Deprecated.
|
void |
setHeight(java.lang.String height)
Deprecated.
|
void |
setIcon(java.lang.String icon)
Deprecated.
|
void |
setIconFromSet(io.jmix.ui.icon.Icons.Icon icon)
Deprecated.
|
void |
setId(java.lang.String id)
Deprecated.
|
void |
setMargin(io.jmix.ui.component.MarginInfo marginInfo)
Deprecated.
|
void |
setMaxHeight(java.lang.String maxHeight)
Deprecated.
|
void |
setMaxWidth(java.lang.String maxWidth)
Deprecated.
|
void |
setMessagesPack(java.lang.String name)
Deprecated.
|
void |
setMinHeight(java.lang.String minHeight)
Deprecated.
|
void |
setMinWidth(java.lang.String minWidth)
Deprecated.
|
void |
setParent(io.jmix.ui.component.Component parent)
Deprecated.
|
void |
setResponsive(boolean responsive)
Deprecated.
|
void |
setSpacing(boolean enabled)
Deprecated.
|
void |
setStyleName(java.lang.String styleName)
Deprecated.
|
void |
setVisible(boolean visible)
Deprecated.
|
void |
setWidth(java.lang.String width)
Deprecated.
|
protected void |
setWindow(io.jmix.ui.component.Window window)
Deprecated.
|
void |
setXmlDescriptor(org.dom4j.Element element)
Deprecated.
|
protected void |
showValidationErrors(io.jmix.ui.component.ValidationErrors errors)
Deprecated.
|
<X> X |
unwrap(java.lang.Class<X> internalComponentClass)
Deprecated.
|
<X> X |
unwrapComposition(java.lang.Class<X> internalCompositionClass)
Deprecated.
|
<X> X |
unwrapCompositionOrNull(java.lang.Class<X> internalCompositionClass)
Deprecated.
|
<X> X |
unwrapOrNull(java.lang.Class<X> internalComponentClass)
Deprecated.
|
void |
validate()
Deprecated.
|
boolean |
validate(java.util.List<io.jmix.ui.component.Validatable> fields)
Deprecated.
|
protected void |
validateAdditionalRules(io.jmix.ui.component.ValidationErrors errors)
Deprecated.
|
boolean |
validateAll()
Deprecated.
Check validity by invoking validators on all components which support them
and show validation result notification.
|
<X> void |
withUnwrapped(java.lang.Class<X> internalComponentClass,
java.util.function.Consumer<X> action)
Deprecated.
|
<X> void |
withUnwrappedComposition(java.lang.Class<X> internalCompositionClass,
java.util.function.Consumer<X> action)
Deprecated.
|
addAfterCloseListener, addAfterDetachListener, addAfterInitListener, addAfterShowListener, addBeforeCloseListener, addBeforeShowListener, addInitListener, addUrlParamsChangeListener, close, close, closeWithDefaultAction, fireEvent, getApplicationContext, getEventHub, getExtensions, getId, getScreenData, getUiEventListeners, getWindow, isMultipleOpen, setApplicationContext, setExtensions, setScreenData, setUiEventListeners, showclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddBeforeCloseWithCloseButtonListener, addBeforeCloseWithShortcutListener, addCloseListener, addListener, close, close, removeBeforeCloseWithCloseButtonListener, removeBeforeCloseWithShortcutListener, removeCloseListener, removeListenerfocusFirstComponent, getComponentNNopenEditor, openEditor, openEditor, openEditor, openEditor, openEditor, openEditor, openFrame, openFrame, openLookup, openLookup, openLookup, openLookup, openWindow, openWindow, showMessageDialog, showNotification, showNotification, showNotification, showOptionDialog, showOptionDialog, showWebPagepublic static final java.lang.String UNKNOWN_CLOSE_ACTION_ID
protected io.jmix.ui.component.Frame frame
@Autowired protected Messages messages
@Autowired protected io.jmix.core.MessageTools messageTools
protected void setWindow(io.jmix.ui.component.Window window)
setWindow in class io.jmix.ui.screen.Screenpublic WindowManager getWindowManager()
HasWindowManagerScreens instead, it can be obtained from ScreenContext
of FrameOwner.getWindowManager in interface HasWindowManagerpublic DialogOptions getDialogOptions()
OpenMode.DIALOGpublic io.jmix.ui.component.Frame getWrappedFrame()
getWrappedFrame in interface Frame.Wrapper@Order(value=110) @Subscribe protected void init(io.jmix.ui.screen.Screen.InitEvent initEvent)
protected void initEnableEditingActionStub()
@Order(value=110) @Subscribe protected void afterShow(io.jmix.ui.screen.Screen.AfterShowEvent event)
@Order(value=110) @Subscribe protected void beforeClose(io.jmix.ui.screen.Screen.BeforeCloseEvent event)
@Subscribe public void onAfterDetach(io.jmix.ui.screen.Screen.AfterDetachEvent event)
public io.jmix.ui.util.OperationResult closeWithDiscard()
FrameOwner.WINDOW_DISCARD_AND_CLOSE_ACTION action.public boolean hasUnsavedChanges()
hasUnsavedChanges in interface io.jmix.ui.screen.ChangeTrackerpublic void init(java.util.Map<java.lang.String,java.lang.Object> params)
params - parameters passed from caller's code, usually from
HasWindowManager.openWindow(String, WindowManager.OpenType) and similar methods, or set in
screens.xml for this registered screenpublic void setId(java.lang.String id)
setId in interface io.jmix.ui.component.ComponentsetId in class io.jmix.ui.screen.Screenpublic io.jmix.ui.component.Component getParent()
getParent in interface io.jmix.ui.component.Componentpublic void setParent(io.jmix.ui.component.Component parent)
setParent in interface io.jmix.ui.component.Componentpublic boolean isEnabled()
isEnabled in interface io.jmix.ui.component.Componentpublic boolean isEnabledRecursive()
isEnabledRecursive in interface io.jmix.ui.component.Componentpublic void setEnabled(boolean enabled)
setEnabled in interface io.jmix.ui.component.Componentpublic boolean isVisible()
isVisible in interface io.jmix.ui.component.Componentpublic void setVisible(boolean visible)
setVisible in interface io.jmix.ui.component.Componentpublic boolean isVisibleRecursive()
isVisibleRecursive in interface io.jmix.ui.component.Componentpublic float getHeight()
getHeight in interface io.jmix.ui.component.Componentpublic io.jmix.ui.component.SizeUnit getHeightSizeUnit()
getHeightSizeUnit in interface io.jmix.ui.component.Componentpublic void setHeight(java.lang.String height)
setHeight in interface io.jmix.ui.component.Componentpublic float getWidth()
getWidth in interface io.jmix.ui.component.Componentpublic io.jmix.ui.component.SizeUnit getWidthSizeUnit()
getWidthSizeUnit in interface io.jmix.ui.component.Componentpublic void setWidth(java.lang.String width)
setWidth in interface io.jmix.ui.component.Componentpublic io.jmix.ui.component.Component.Alignment getAlignment()
getAlignment in interface io.jmix.ui.component.Componentpublic void setAlignment(io.jmix.ui.component.Component.Alignment alignment)
setAlignment in interface io.jmix.ui.component.Componentpublic boolean isResponsive()
isResponsive in interface io.jmix.ui.component.Componentpublic void setResponsive(boolean responsive)
setResponsive in interface io.jmix.ui.component.Componentpublic java.lang.String getIcon()
getIcon in interface io.jmix.ui.component.Component.HasIconpublic void setIcon(java.lang.String icon)
setIcon in interface io.jmix.ui.component.Component.HasIconpublic void setIconFromSet(io.jmix.ui.icon.Icons.Icon icon)
setIconFromSet in interface io.jmix.ui.component.Component.HasIconpublic void add(io.jmix.ui.component.Component component)
add in interface io.jmix.ui.component.ComponentContainerpublic void remove(io.jmix.ui.component.Component component)
remove in interface io.jmix.ui.component.ComponentContainerpublic void removeAll()
removeAll in interface io.jmix.ui.component.ComponentContainerpublic io.jmix.ui.component.Component getOwnComponent(java.lang.String id)
getOwnComponent in interface io.jmix.ui.component.HasComponents@Nullable public io.jmix.ui.component.Component getComponent(java.lang.String id)
getComponent in interface io.jmix.ui.component.HasComponentspublic java.util.Collection<io.jmix.ui.component.Component> getOwnComponents()
getOwnComponents in interface io.jmix.ui.component.HasComponentspublic java.util.stream.Stream<io.jmix.ui.component.Component> getOwnComponentsStream()
getOwnComponentsStream in interface io.jmix.ui.component.HasComponentspublic java.util.Collection<io.jmix.ui.component.Component> getComponents()
getComponents in interface io.jmix.ui.component.HasComponentspublic java.lang.Object getComponent()
getComponent in interface io.jmix.ui.component.Component.Wrapperpublic java.lang.Object getComposition()
getComposition in interface io.jmix.ui.component.Component.Wrapperpublic void expand(io.jmix.ui.component.Component component,
java.lang.String height,
java.lang.String width)
public void expand(io.jmix.ui.component.Component component)
expand in interface io.jmix.ui.component.ExpandingLayoutpublic void resetExpanded()
resetExpanded in interface io.jmix.ui.component.ExpandingLayoutpublic boolean isExpanded(io.jmix.ui.component.Component component)
isExpanded in interface io.jmix.ui.component.ExpandingLayoutpublic io.jmix.ui.component.ExpandingLayout.ExpandDirection getExpandDirection()
getExpandDirection in interface io.jmix.ui.component.ExpandingLayoutpublic java.lang.String getMessagesPack()
getMessagesPack in interface LegacyFramepublic void setMessagesPack(java.lang.String name)
setMessagesPack in interface LegacyFrameprotected java.lang.String getMessage(java.lang.String key)
key - message keyMessages.getMessage(String, String)protected java.lang.String formatMessage(java.lang.String key,
java.lang.Object... params)
key - message keyparams - parameter valuesMessages.formatMessage(String, String, Object...)public boolean isValid()
isValid in interface LegacyFrameisValid in interface io.jmix.ui.component.Framepublic void validate()
throws io.jmix.ui.component.ValidationException
validate in interface LegacyFramevalidate in interface io.jmix.ui.component.Frameio.jmix.ui.component.ValidationExceptionpublic void add(io.jmix.ui.component.Component childComponent,
int index)
add in interface io.jmix.ui.component.OrderedContainerpublic int indexOf(io.jmix.ui.component.Component component)
indexOf in interface io.jmix.ui.component.OrderedContainer@Nullable public io.jmix.ui.component.Component getComponent(int index)
getComponent in interface io.jmix.ui.component.OrderedContainer@Nullable public <T> T getCompanion()
getCompanion in interface LegacyFramepublic void setCompanion(java.lang.Object companion)
public io.jmix.ui.component.Frame getFrame()
getFrame in interface io.jmix.ui.component.Component.BelongToFramepublic void setFrame(io.jmix.ui.component.Frame frame)
setFrame in interface io.jmix.ui.component.Component.BelongToFramepublic java.lang.String getStyleName()
getStyleName in interface io.jmix.ui.component.Componentpublic void setStyleName(java.lang.String styleName)
setStyleName in interface io.jmix.ui.component.Componentpublic void addStyleName(java.lang.String styleName)
addStyleName in interface io.jmix.ui.component.Componentpublic void removeStyleName(java.lang.String styleName)
removeStyleName in interface io.jmix.ui.component.Componentpublic <X> X unwrap(java.lang.Class<X> internalComponentClass)
unwrap in interface io.jmix.ui.component.Component@Nullable public <X> X unwrapOrNull(java.lang.Class<X> internalComponentClass)
unwrapOrNull in interface io.jmix.ui.component.Componentpublic <X> void withUnwrapped(java.lang.Class<X> internalComponentClass,
java.util.function.Consumer<X> action)
withUnwrapped in interface io.jmix.ui.component.Componentpublic <X> X unwrapComposition(java.lang.Class<X> internalCompositionClass)
unwrapComposition in interface io.jmix.ui.component.Component@Nullable public <X> X unwrapCompositionOrNull(java.lang.Class<X> internalCompositionClass)
unwrapCompositionOrNull in interface io.jmix.ui.component.Componentpublic <X> void withUnwrappedComposition(java.lang.Class<X> internalCompositionClass,
java.util.function.Consumer<X> action)
withUnwrappedComposition in interface io.jmix.ui.component.Componentpublic void setSpacing(boolean enabled)
setSpacing in interface io.jmix.ui.component.HasSpacingpublic boolean getSpacing()
getSpacing in interface io.jmix.ui.component.HasSpacingpublic void setMargin(io.jmix.ui.component.MarginInfo marginInfo)
setMargin in interface io.jmix.ui.component.HasMarginpublic io.jmix.ui.component.MarginInfo getMargin()
getMargin in interface io.jmix.ui.component.HasMarginpublic void addAction(io.jmix.ui.action.Action action)
addAction in interface io.jmix.ui.component.ActionsHolderpublic void addAction(io.jmix.ui.action.Action action,
int index)
addAction in interface io.jmix.ui.component.ActionsHolderpublic void removeAction(@Nullable
io.jmix.ui.action.Action action)
removeAction in interface io.jmix.ui.component.ActionsHolderpublic void removeAction(@Nullable
java.lang.String id)
removeAction in interface io.jmix.ui.component.ActionsHolderpublic void removeAllActions()
removeAllActions in interface io.jmix.ui.component.ActionsHolderpublic java.util.Collection<io.jmix.ui.action.Action> getActions()
getActions in interface io.jmix.ui.component.ActionsHolder@Nullable public io.jmix.ui.action.Action getAction(java.lang.String id)
getAction in interface io.jmix.ui.component.ActionsHolderpublic org.dom4j.Element getXmlDescriptor()
getXmlDescriptor in interface LegacyFramegetXmlDescriptor in interface io.jmix.ui.component.Component.HasXmlDescriptorpublic void setXmlDescriptor(org.dom4j.Element element)
setXmlDescriptor in interface LegacyFramesetXmlDescriptor in interface io.jmix.ui.component.Component.HasXmlDescriptorpublic void setCloseable(boolean closeable)
setCloseable in interface io.jmix.ui.component.Windowpublic boolean isCloseable()
isCloseable in interface io.jmix.ui.component.Windowpublic void setMinWidth(java.lang.String minWidth)
setMinWidth in interface io.jmix.ui.component.Windowpublic java.lang.String getMinWidth()
getMinWidth in interface io.jmix.ui.component.Windowpublic void setMaxWidth(java.lang.String maxWidth)
setMaxWidth in interface io.jmix.ui.component.Windowpublic java.lang.String getMaxWidth()
getMaxWidth in interface io.jmix.ui.component.Windowpublic void setMinHeight(java.lang.String minHeight)
setMinHeight in interface io.jmix.ui.component.Windowpublic java.lang.String getMinHeight()
getMinHeight in interface io.jmix.ui.component.Windowpublic void setMaxHeight(java.lang.String maxHeight)
setMaxHeight in interface io.jmix.ui.component.Windowpublic java.lang.String getMaxHeight()
getMaxHeight in interface io.jmix.ui.component.Windowpublic io.jmix.ui.screen.Screen getFrameOwner()
getFrameOwner in interface io.jmix.ui.component.FramegetFrameOwner in interface io.jmix.ui.component.Windowpublic WindowContext getContext()
getContext in interface LegacyFramegetContext in interface io.jmix.ui.component.FramegetContext in interface io.jmix.ui.component.Windowpublic DsContext getDsContext()
getDsContext in interface LegacyFrameDsContext of the current frame or windowpublic void setDsContext(DsContext dsContext)
LegacyFramesetDsContext in interface LegacyFramepublic java.lang.String getCaption()
getCaption in interface io.jmix.ui.component.Component.HasCaptionsetCaption(String)public void setCaption(java.lang.String caption)
init(Map), overrides the value from XML.setCaption in interface io.jmix.ui.component.Component.HasCaptioncaption - captionpublic java.lang.String getDescription()
getDescription in interface io.jmix.ui.component.Component.HasDescriptionpublic void setDescription(java.lang.String description)
setDescription in interface io.jmix.ui.component.Component.HasDescriptionpublic io.jmix.ui.component.Window getWrappedWindow()
getWrappedWindow in interface Window.Wrapperpublic void applySettings(Settings settings)
You can override it to restore custom settings.
For example:
public void applySettings(Settings settings) {
super.applySettings(settings);
String visible = settings.get(hintBox.getId()).attributeValue("visible");
if (visible != null)
hintBox.setVisible(Boolean.valueOf(visible));
}
applySettings in interface CubaLegacySettingssettings - settings object loaded from the database for the current userpublic void applyDataLoadingSettings(Settings settings)
CubaLegacySettingsapplyDataLoadingSettings in interface CubaLegacySettingssettings - screen settingspublic void saveSettings()
saveSettings in interface CubaLegacySettingspublic void deleteSettings()
CubaLegacySettingsdeleteSettings in interface CubaLegacySettingspublic Settings getSettings()
getSettings in interface CubaLegacySettingspublic void setFocusComponent(java.lang.String componentId)
setFocusComponent in interface io.jmix.ui.component.Windowpublic java.lang.String getFocusComponent()
getFocusComponent in interface io.jmix.ui.component.Windowpublic boolean validate(java.util.List<io.jmix.ui.component.Validatable> fields)
validate in interface LegacyFramevalidate in interface io.jmix.ui.component.Framevalidate in interface io.jmix.ui.component.Windowpublic boolean isAttributeAccessControlEnabled()
public void ready()
protected void postValidate(io.jmix.ui.component.ValidationErrors errors)
validateAll() at the end of standard validation.errors - the list of validation errors. Caller fills it by errors found during the default validation.
Overridden method should add into it errors found by custom validation.protected boolean preClose(java.lang.String actionId)
actionId - a string that is passed to one of Screen.close(io.jmix.ui.screen.CloseAction) methods by calling code to identify itself.
Can be an Action ID, or a constant like Window.COMMIT_ACTION_ID or
Window.CLOSE_ACTION_ID.protected void validateAdditionalRules(io.jmix.ui.component.ValidationErrors errors)
protected void showValidationErrors(io.jmix.ui.component.ValidationErrors errors)
protected boolean isSameScreen(io.jmix.ui.screen.Screen openedScreen)
isSameScreen in class io.jmix.ui.screen.Screenprotected int getScreenHashCode(io.jmix.ui.screen.Screen screen)
public boolean validateAll()
postValidate(ValidationErrors) hook to
support additional validation.
You should override this method in subclasses ONLY if you want to completely replace the validation process,
otherwise use postValidate(ValidationErrors).
validateAll in interface LegacyFramevalidateAll in interface io.jmix.ui.component.FramevalidateAll in interface io.jmix.ui.component.Windowprotected boolean handleValidationErrors(io.jmix.ui.component.ValidationErrors errors)
public io.jmix.ui.component.ActionsPermissions getActionsPermissions()
getActionsPermissions in interface io.jmix.ui.component.SecuredActionsHolderpublic io.jmix.ui.component.Window.ContentSwitchMode getContentSwitchMode()
public void setContentSwitchMode(io.jmix.ui.component.Window.ContentSwitchMode mode)
public io.jmix.core.common.event.Subscription addBeforeWindowCloseListener(java.util.function.Consumer<io.jmix.ui.component.Window.BeforeCloseEvent> listener)
addBeforeWindowCloseListener in interface io.jmix.ui.component.Windowpublic void removeBeforeWindowCloseListener(java.util.function.Consumer<io.jmix.ui.component.Window.BeforeCloseEvent> listener)
Windowlistener - the listener to removepublic void setExpandRatio(io.jmix.ui.component.Component component,
float ratio)
setExpandRatio in interface io.jmix.ui.component.SupportsExpandRatiopublic float getExpandRatio(io.jmix.ui.component.Component component)
getExpandRatio in interface io.jmix.ui.component.SupportsExpandRatiopublic void addFacet(io.jmix.ui.component.Facet facet)
addFacet in interface io.jmix.ui.component.Frame@Nullable public io.jmix.ui.component.Facet getFacet(java.lang.String id)
getFacet in interface io.jmix.ui.component.Framepublic void removeFacet(io.jmix.ui.component.Facet facet)
removeFacet in interface io.jmix.ui.component.Framepublic java.util.stream.Stream<io.jmix.ui.component.Facet> getFacets()
getFacets in interface io.jmix.ui.component.Frame