Package io.jmix.ui.component
Interface AppWorkArea
- All Superinterfaces:
Component,Component.BelongToFrame
- All Known Implementing Classes:
AppWorkAreaImpl
@StudioComponent(caption="WorkArea",
category="Main window",
xmlElement="workArea",
icon="io/jmix/ui/icon/mainwindow/workArea.svg",
canvasBehaviour=CONTAINER,
containerType=VERTICAL,
unsupportedProperties={"box.expandRatio","css","expand","responsive"})
public interface AppWorkArea
extends Component.BelongToFrame
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumWork area modestatic enumWork area statestatic classEvent that is fired when work area changed its state.Nested classes/interfaces inherited from interface io.jmix.ui.component.Component
Component.Alignment, Component.BelongToFrame, Component.Disposable, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.Wrapper -
Field Summary
FieldsFields inherited from interface io.jmix.ui.component.Component
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE -
Method Summary
Modifier and TypeMethodDescriptionAdds a listener that will be notified when a work area state is changed.Returns all active screens that are inside the work area.Returns all screens that are inside the current breadcrumbs.getMode()Returns all opened screens that are inside the work area.getState()voidsetInitialLayout(VBoxLayout initialLayout) Sets the initial layout.voidsetMode(AppWorkArea.Mode mode) Sets a mode.voidswitchTo(AppWorkArea.State state) INTERNAL.Methods inherited from interface io.jmix.ui.component.Component
addStyleName, getAlignment, getHeight, getHeightSizeUnit, getId, getParent, getStyleName, getWidth, getWidthSizeUnit, isEnabled, isEnabledRecursive, isResponsive, isVisible, isVisibleRecursive, removeStyleName, setAlignment, setEnabled, setHeight, setHeightAuto, setHeightFull, setId, setParent, setResponsive, setSizeAuto, setSizeFull, setStyleName, setVisible, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, withUnwrapped, withUnwrappedCompositionMethods inherited from interface io.jmix.ui.component.Component.BelongToFrame
getFrame, setFrame
-
Field Details
-
NAME
- See Also:
-
-
Method Details
-
getMode
AppWorkArea.Mode getMode()- Returns:
- a mode
-
setMode
Sets a mode. The default value isAppWorkArea.Mode.TABBED.Unable to change a mode in
AppWorkArea.State.WINDOW_CONTAINERstate.- Parameters:
mode- a mode
-
getState
AppWorkArea.State getState()- Returns:
- a state
-
switchTo
INTERNAL. Managed by the screen control mechanismScreens.Sets a new state. The default value is
AppWorkArea.State.INITIAL_LAYOUT.- Parameters:
state- new state
-
getInitialLayout
- Returns:
- an initial layout
-
setInitialLayout
Sets the initial layout.Unable to change initial layout in
AppWorkArea.State.WINDOW_CONTAINERstate.- Parameters:
initialLayout- an initial layout- See Also:
-
addStateChangeListener
Adds a listener that will be notified when a work area state is changed.- Parameters:
listener- a listener to add- Returns:
- a registration object for removing an event listener
-
getOpenedWorkAreaScreensStream
Returns all opened screens that are inside the work area.- Returns:
- opened screens stream
-
getActiveWorkAreaScreensStream
Returns all active screens that are inside the work area.- Returns:
- active screens stream
-
getCurrentBreadcrumbs
Collection<Screen> getCurrentBreadcrumbs()Returns all screens that are inside the current breadcrumbs.- Returns:
- screens that are inside the current breadcrumbs
-