Class CanvasUiComponentsFactory
java.lang.Object
io.jmix.dashboardsui.dashboard.tools.factory.impl.CanvasUiComponentsFactory
- All Implemented Interfaces:
CanvasComponentsFactory
- Direct Known Subclasses:
CanvasDropComponentsFactory
@Component("dshbrd_CanvasUiComponentsFactory")
public class CanvasUiComponentsFactory
extends Object
implements CanvasComponentsFactory
Creates a non-editable
CanvasLayout to be added to the Dashboard component.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected UiComponentsstatic final Stringstatic final Stringprotected Messagesstatic final Stringprotected WidgetRepository -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateCanvasGridLayout(GridLayout gridLayout) Creates aCanvasGridLayoutcomponent with specifiedGridLayoutmodel.createCanvasHorizontalLayout(HorizontalLayout horizontalLayout) Creates aCanvasHorizontalLayoutcomponent with specifiedHorizontalLayoutmodel.createCanvasResponsiveLayout(ResponsiveLayout responsiveLayout) Creates aCanvasResponsiveLayoutwith specifiedResponsiveLayoutmodel.createCanvasRootLayout(RootLayout rootLayout) Creates aCanvasRootLayoutwith specifiedRootLayoutmodel.createCanvasVerticalLayout(VerticalLayout verticalLayout) Creates aCanvasVerticalLayoutcomponent with specifiedVerticalLayoutmodel.createCanvasWidgetLayout(CanvasFragment canvasFragment, WidgetLayout widgetLayout) Creates aCanvasWidgetLayoutwith specifiedWidgetLayoutmodel.createCssLayout(CssLayout cssLayoutModel) Creates aCanvasCssLayoutcomponent with specifiedCssLayoutmodel.
-
Field Details
-
WIDGET
- See Also:
-
DASHBOARD_MODEL
- See Also:
-
DASHBOARD
- See Also:
-
widgetRepository
-
components
-
messages
-
-
Constructor Details
-
CanvasUiComponentsFactory
public CanvasUiComponentsFactory()
-
-
Method Details
-
createCanvasVerticalLayout
Description copied from interface:CanvasComponentsFactoryCreates aCanvasVerticalLayoutcomponent with specifiedVerticalLayoutmodel.- Specified by:
createCanvasVerticalLayoutin interfaceCanvasComponentsFactory- Parameters:
verticalLayout- vertical layout model- Returns:
- created layout
-
createCanvasHorizontalLayout
Description copied from interface:CanvasComponentsFactoryCreates aCanvasHorizontalLayoutcomponent with specifiedHorizontalLayoutmodel.- Specified by:
createCanvasHorizontalLayoutin interfaceCanvasComponentsFactory- Parameters:
horizontalLayout- horizontal layout model- Returns:
- created layout
-
createCssLayout
Description copied from interface:CanvasComponentsFactoryCreates aCanvasCssLayoutcomponent with specifiedCssLayoutmodel.- Specified by:
createCssLayoutin interfaceCanvasComponentsFactory- Parameters:
cssLayoutModel- CSS layout model- Returns:
- created layout
-
createCanvasGridLayout
Description copied from interface:CanvasComponentsFactoryCreates aCanvasGridLayoutcomponent with specifiedGridLayoutmodel.- Specified by:
createCanvasGridLayoutin interfaceCanvasComponentsFactory- Parameters:
gridLayout- grid layout model- Returns:
- created layout
-
createCanvasWidgetLayout
public CanvasWidgetLayout createCanvasWidgetLayout(CanvasFragment canvasFragment, WidgetLayout widgetLayout) Description copied from interface:CanvasComponentsFactoryCreates aCanvasWidgetLayoutwith specifiedWidgetLayoutmodel.- Specified by:
createCanvasWidgetLayoutin interfaceCanvasComponentsFactory- Parameters:
canvasFragment- canvas to add a widget fragmentwidgetLayout- widget layout model- Returns:
- created layout
-
createCanvasRootLayout
Description copied from interface:CanvasComponentsFactoryCreates aCanvasRootLayoutwith specifiedRootLayoutmodel.- Specified by:
createCanvasRootLayoutin interfaceCanvasComponentsFactory- Parameters:
rootLayout- root layout model- Returns:
- created layout
-
createCanvasResponsiveLayout
Description copied from interface:CanvasComponentsFactoryCreates aCanvasResponsiveLayoutwith specifiedResponsiveLayoutmodel.- Specified by:
createCanvasResponsiveLayoutin interfaceCanvasComponentsFactory- Parameters:
responsiveLayout- responsive layout model- Returns:
- created layout
-