Package io.jmix.ui.component.mainwindow
Interface Drawer
- All Superinterfaces:
- Component,- Component.BelongToFrame,- ComponentContainer,- HasComponents,- OrderedContainer
- All Known Implementing Classes:
- DrawerImpl
@StudioComponent(caption="Drawer",
                 category="Main window",
                 xmlElement="drawer",
                 canvasBehaviour=CONTAINER,
                 containerType=VERTICAL,
                 documentationURL="https://docs.jmix.io/jmix/%VERSION%/ui/vcl/containers/drawer.html",
                 unsupportedProperties={"align","enable","expand","responsive","width","height","visible"},
                 icon="io/jmix/ui/icon/mainwindow/drawer.svg")
public interface Drawer
extends OrderedContainer, Component.BelongToFrame
A panel that can be collapsed to the left hand side.
 
Typically used as a side menu container.
- 
Nested Class SummaryNested classes/interfaces inherited from interface io.jmix.ui.component.ComponentComponent.Alignment, Component.BelongToFrame, Component.Disposable, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.Wrapper
- 
Field SummaryFieldsFields inherited from interface io.jmix.ui.component.ComponentAUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE
- 
Method SummaryModifier and TypeMethodDescriptionvoidcollapse()Collapses the drawer.voidexpand()Expands the drawer.booleanbooleanvoidsetExpandOnHover(boolean expandOnHover) Sets a mode when drawer is expanded on hover.voidtoggle()Toggles the drawer.Methods inherited from interface io.jmix.ui.component.ComponentaddStyleName, 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.BelongToFramegetFrame, setFrameMethods inherited from interface io.jmix.ui.component.ComponentContaineradd, add, remove, remove, removeAllMethods inherited from interface io.jmix.ui.component.HasComponentsfocusFirstComponent, getComponent, getComponentNN, getComponents, getOwnComponent, getOwnComponents, getOwnComponentsStreamMethods inherited from interface io.jmix.ui.component.OrderedContaineradd, getComponent, getComponentNN, indexOf
- 
Field Details- 
NAME- See Also:
 
 
- 
- 
Method Details- 
collapsevoid collapse()Collapses the drawer.
- 
expandvoid expand()Expands the drawer.
- 
togglevoid toggle()Toggles the drawer.
- 
setExpandOnHoverSets a mode when drawer is expanded on hover. Note that collapse state is not changed.falseby default.- Parameters:
- expandOnHover- a boolean value specifying if drawer should be expanded on hover.
 
- 
isExpandOnHoverboolean isExpandOnHover()- Returns:
- whether the drawer should be expanded on hover.
 
- 
isCollapsedboolean isCollapsed()- Returns:
- whether the drawer is collapsed.
 
 
-