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
Modifier and TypeFieldDescriptionprotected ActionsProvider
protected UiComponents
protected Metadata
protected UiEventPublisher
Fields inherited from class io.jmix.dashboardsui.dashboard.tools.factory.impl.CanvasUiComponentsFactory
components, DASHBOARD, DASHBOARD_MODEL, messages, WIDGET, widgetRepository
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addLayoutClickListener
(CanvasLayout layout) protected Button
createButton
(Action action) createCanvasGridLayout
(GridLayout gridLayout) Creates aCanvasGridLayout
component with specifiedGridLayout
model.createCanvasHorizontalLayout
(HorizontalLayout horizontalLayout) Creates aCanvasHorizontalLayout
component with specifiedHorizontalLayout
model.createCanvasResponsiveLayout
(ResponsiveLayout responsiveLayout) Creates aCanvasResponsiveLayout
with specifiedResponsiveLayout
model.createCanvasRootLayout
(RootLayout rootLayout) Creates aCanvasRootLayout
with specifiedRootLayout
model.createCanvasVerticalLayout
(VerticalLayout verticalLayout) Creates aCanvasVerticalLayout
component with specifiedVerticalLayout
model.createCanvasWidgetLayout
(CanvasFragment canvasFragment, WidgetLayout widgetLayout) Creates aCanvasWidgetLayout
with specifiedWidgetLayout
model.protected Button
createCaptionButton
(DashboardLayout layout) createCssLayout
(CssLayout cssLayoutModel) Creates aCanvasCssLayout
component with specifiedCssLayout
model.protected CanvasLayout
findCanvasLayout
(Component component)
-
Field Details
-
factory
-
uiEventPublisher
-
metadata
-
actionsProvider
-
-
Constructor Details
-
CanvasDropComponentsFactory
public CanvasDropComponentsFactory()
-
-
Method Details
-
createCanvasVerticalLayout
Description copied from interface:CanvasComponentsFactory
Creates aCanvasVerticalLayout
component with specifiedVerticalLayout
model.- Specified by:
createCanvasVerticalLayout
in interfaceCanvasComponentsFactory
- Overrides:
createCanvasVerticalLayout
in classCanvasUiComponentsFactory
- Parameters:
verticalLayout
- vertical layout model- Returns:
- created layout
-
createButton
-
createCanvasHorizontalLayout
Description copied from interface:CanvasComponentsFactory
Creates aCanvasHorizontalLayout
component with specifiedHorizontalLayout
model.- Specified by:
createCanvasHorizontalLayout
in interfaceCanvasComponentsFactory
- Overrides:
createCanvasHorizontalLayout
in classCanvasUiComponentsFactory
- Parameters:
horizontalLayout
- horizontal layout model- Returns:
- created layout
-
createCssLayout
Description copied from interface:CanvasComponentsFactory
Creates aCanvasCssLayout
component with specifiedCssLayout
model.- Specified by:
createCssLayout
in interfaceCanvasComponentsFactory
- Overrides:
createCssLayout
in classCanvasUiComponentsFactory
- Parameters:
cssLayoutModel
- CSS layout model- Returns:
- created layout
-
createCanvasGridLayout
Description copied from interface:CanvasComponentsFactory
Creates aCanvasGridLayout
component with specifiedGridLayout
model.- Specified by:
createCanvasGridLayout
in interfaceCanvasComponentsFactory
- Overrides:
createCanvasGridLayout
in classCanvasUiComponentsFactory
- Parameters:
gridLayout
- grid layout model- Returns:
- created layout
-
createCanvasWidgetLayout
public CanvasWidgetLayout createCanvasWidgetLayout(CanvasFragment canvasFragment, WidgetLayout widgetLayout) Description copied from interface:CanvasComponentsFactory
Creates aCanvasWidgetLayout
with specifiedWidgetLayout
model.- Specified by:
createCanvasWidgetLayout
in interfaceCanvasComponentsFactory
- Overrides:
createCanvasWidgetLayout
in classCanvasUiComponentsFactory
- Parameters:
canvasFragment
- canvas to add a widget fragmentwidgetLayout
- widget layout model- Returns:
- created layout
-
createCanvasRootLayout
Description copied from interface:CanvasComponentsFactory
Creates aCanvasRootLayout
with specifiedRootLayout
model.- Specified by:
createCanvasRootLayout
in interfaceCanvasComponentsFactory
- Overrides:
createCanvasRootLayout
in classCanvasUiComponentsFactory
- Parameters:
rootLayout
- root layout model- Returns:
- created layout
-
createCaptionButton
-
addLayoutClickListener
-
findCanvasLayout
-
createCanvasResponsiveLayout
Description copied from interface:CanvasComponentsFactory
Creates aCanvasResponsiveLayout
with specifiedResponsiveLayout
model.- Specified by:
createCanvasResponsiveLayout
in interfaceCanvasComponentsFactory
- Overrides:
createCanvasResponsiveLayout
in classCanvasUiComponentsFactory
- Parameters:
responsiveLayout
- responsive layout model- Returns:
- created layout
-