Package io.jmix.dashboardsui.component
Interface CanvasLayout
- All Superinterfaces:
Component,ComponentContainer,HasComponents,HasWeight,LayoutClickNotifier
- All Known Implementing Classes:
AbstractCanvasLayout,CanvasCssLayout,CanvasGridLayout,CanvasHorizontalLayout,CanvasResponsiveLayout,CanvasRootLayout,CanvasVerticalLayout,CanvasWidgetLayout
UI representation of
DashboardLayout model on the Dashboard component.-
Nested Class Summary
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.WrapperNested classes/interfaces inherited from interface io.jmix.ui.component.LayoutClickNotifier
LayoutClickNotifier.LayoutClickEvent -
Field Summary
Fields inherited from interface io.jmix.ui.component.Component
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE -
Method Summary
Modifier and TypeMethodDescriptionvoidaddComponent(Component component) Add specified component to the layout.Creates an empty panel for dashboard layout actions.getModel()getUuid()voidsetButtonsPanel(HBoxLayout buttonsPanel) Sets a buttons panel.voidSets a canvas layout id.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.ComponentContainer
add, add, remove, remove, removeAllMethods inherited from interface io.jmix.ui.component.HasComponents
focusFirstComponent, getComponent, getComponentNN, getComponents, getOwnComponent, getOwnComponents, getOwnComponentsStreamMethods inherited from interface io.jmix.ui.component.LayoutClickNotifier
addLayoutClickListener
-
Method Details
-
getDelegate
Component getDelegate()- Returns:
- UI component that contains child components. It can be
ComponentContainerorResponsiveGridLayout.
-
addComponent
Add specified component to the layout.- Parameters:
component- component
-
getLayoutComponents
Collection<Component> getLayoutComponents()- Returns:
- layout components
-
createButtonsPanel
HBoxLayout createButtonsPanel()Creates an empty panel for dashboard layout actions.- Returns:
- empty buttons panel
- See Also:
-
getButtonsPanel
HBoxLayout getButtonsPanel()- Returns:
- buttons panel
-
setButtonsPanel
Sets a buttons panel.- Parameters:
buttonsPanel- new buttons panel
-
getUuid
UUID getUuid()- Returns:
- canvas layout id
-
setUuid
Sets a canvas layout id.- Parameters:
uuid- id
-
getModel
DashboardLayout getModel()- Returns:
- dashboard layout model
-