Package io.jmix.dashboards.utils
Class DashboardLayoutManager
java.lang.Object
io.jmix.dashboards.utils.DashboardLayoutManager
Helper class to create/get info about 
DashboardLayout objects.- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncreateCssLayout(Boolean responsive, String styleName) Creates aCssLayoutwith specified parameters.createGridArea(int col, int row, GridLayout parent) Creates aGridAreafor a cell located in the specified column and row of specifiedGridLayout.protected GridCellLayoutcreateGridCellLayout(int col, int row, GridLayout parent) createGridLayout(int cols, int rows) Creates aGridLayoutwith specified number of rows and columns.createResponsiveArea(DashboardLayout component) Creates aResponsiveAreawith specified componentcreateResponsiveLayout(int xs, int sm, int md, int lg) Creates aResponsiveLayoutwith specified parameterscreateWidgetLayout(Widget widget, boolean fromTemplate) Creates aWidgetLayoutwith specified widget.getCaption(DashboardLayout layout) 
- 
Field Details- 
metadata
- 
metadataTools
- 
messages
 
- 
- 
Constructor Details- 
DashboardLayoutManagerpublic DashboardLayoutManager()
 
- 
- 
Method Details- 
createGridLayoutCreates aGridLayoutwith specified number of rows and columns. ChildrenGridAreaare created as well.- Parameters:
- cols- number of columns
- rows- number of rows
- Returns:
- created grid layout
 
- 
createGridAreaCreates aGridAreafor a cell located in the specified column and row of specifiedGridLayout. Nested componentGridCellLayoutis created as well.- Parameters:
- col- column
- row- row
- parent- parent
- Returns:
- created grid area
 
- 
createGridCellLayout
- 
createCssLayoutCreates aCssLayoutwith specified parameters.- Parameters:
- responsive- specified whether layout should be responsive or not
- styleName- style name
- Returns:
- created CSS layout
 
- 
createWidgetLayoutCreates aWidgetLayoutwith specified widget.- Parameters:
- widget- widget
- fromTemplate- specifies whether new layout is created from- WidgetTemplateLayoutor not
- Returns:
- created widget layout
 
- 
createResponsiveLayoutCreates aResponsiveLayoutwith specified parameters- Parameters:
- xs- number of columns for extra small devices
- sm- number of columns for small devices
- md- number of columns for medium devices
- lg- number of columns for large devices
- Returns:
- created responsive layout
 
- 
createResponsiveAreaCreates aResponsiveAreawith specified component- Parameters:
- component- layout located in new responsive area
- Returns:
- created responsive area
 
- 
getCaption- Parameters:
- layout- dashboard layout
- Returns:
- localized caption for specified layout
 
 
-