Class CanvasDropComponentsFactory
java.lang.Object
io.jmix.dashboardsui.dashboard.tools.factory.impl.CanvasUiComponentsFactory
io.jmix.dashboardsui.dashboard.tools.factory.impl.CanvasDropComponentsFactory
- All Implemented Interfaces:
CanvasComponentsFactory
@Component("dshbrd_CanvasDropComponentsFactory")
public class CanvasDropComponentsFactory
extends CanvasUiComponentsFactory
Creates a layout to use in the dashboard editor.
Additional fields are set for the layout:
Additional fields are set for the layout:
- Description;
- Actions;
- Click listener (only for
CanvasRootLayout.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ActionsProviderprotected UiComponentsprotected Metadataprotected UiEventPublisherFields inherited from class io.jmix.dashboardsui.dashboard.tools.factory.impl.CanvasUiComponentsFactory
components, DASHBOARD, DASHBOARD_MODEL, messages, WIDGET, widgetRepository -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddLayoutClickListener(CanvasLayout layout) protected ButtoncreateButton(Action action) createCanvasGridLayout(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.protected ButtoncreateCaptionButton(DashboardLayout layout) createCssLayout(CssLayout cssLayoutModel) Creates aCanvasCssLayoutcomponent with specifiedCssLayoutmodel.protected CanvasLayoutfindCanvasLayout(Component component)
-
Field Details
-
factory
-
uiEventPublisher
-
metadata
-
actionsProvider
-
-
Constructor Details
-
CanvasDropComponentsFactory
public CanvasDropComponentsFactory()
-
-
Method Details
-
createCanvasVerticalLayout
Description copied from interface:CanvasComponentsFactoryCreates aCanvasVerticalLayoutcomponent with specifiedVerticalLayoutmodel.- Specified by:
createCanvasVerticalLayoutin interfaceCanvasComponentsFactory- Overrides:
createCanvasVerticalLayoutin classCanvasUiComponentsFactory- Parameters:
verticalLayout- vertical layout model- Returns:
- created layout
-
createButton
-
createCanvasHorizontalLayout
Description copied from interface:CanvasComponentsFactoryCreates aCanvasHorizontalLayoutcomponent with specifiedHorizontalLayoutmodel.- Specified by:
createCanvasHorizontalLayoutin interfaceCanvasComponentsFactory- Overrides:
createCanvasHorizontalLayoutin classCanvasUiComponentsFactory- Parameters:
horizontalLayout- horizontal layout model- Returns:
- created layout
-
createCssLayout
Description copied from interface:CanvasComponentsFactoryCreates aCanvasCssLayoutcomponent with specifiedCssLayoutmodel.- Specified by:
createCssLayoutin interfaceCanvasComponentsFactory- Overrides:
createCssLayoutin classCanvasUiComponentsFactory- Parameters:
cssLayoutModel- CSS layout model- Returns:
- created layout
-
createCanvasGridLayout
Description copied from interface:CanvasComponentsFactoryCreates aCanvasGridLayoutcomponent with specifiedGridLayoutmodel.- Specified by:
createCanvasGridLayoutin interfaceCanvasComponentsFactory- Overrides:
createCanvasGridLayoutin classCanvasUiComponentsFactory- 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- Overrides:
createCanvasWidgetLayoutin classCanvasUiComponentsFactory- 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- Overrides:
createCanvasRootLayoutin classCanvasUiComponentsFactory- Parameters:
rootLayout- root layout model- Returns:
- created layout
-
createCaptionButton
-
addLayoutClickListener
-
findCanvasLayout
-
createCanvasResponsiveLayout
Description copied from interface:CanvasComponentsFactoryCreates aCanvasResponsiveLayoutwith specifiedResponsiveLayoutmodel.- Specified by:
createCanvasResponsiveLayoutin interfaceCanvasComponentsFactory- Overrides:
createCanvasResponsiveLayoutin classCanvasUiComponentsFactory- Parameters:
responsiveLayout- responsive layout model- Returns:
- created layout
-