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
Modifier and TypeFieldDescriptionprotected UiComponents
static final String
static final String
protected Messages
static final String
protected WidgetRepository
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateCanvasGridLayout
(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.createCssLayout
(CssLayout cssLayoutModel) Creates aCanvasCssLayout
component with specifiedCssLayout
model.
-
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:CanvasComponentsFactory
Creates aCanvasVerticalLayout
component with specifiedVerticalLayout
model.- Specified by:
createCanvasVerticalLayout
in interfaceCanvasComponentsFactory
- Parameters:
verticalLayout
- vertical layout model- Returns:
- created layout
-
createCanvasHorizontalLayout
Description copied from interface:CanvasComponentsFactory
Creates aCanvasHorizontalLayout
component with specifiedHorizontalLayout
model.- Specified by:
createCanvasHorizontalLayout
in interfaceCanvasComponentsFactory
- 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
- 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
- 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
- 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
- Parameters:
rootLayout
- root layout model- Returns:
- created layout
-
createCanvasResponsiveLayout
Description copied from interface:CanvasComponentsFactory
Creates aCanvasResponsiveLayout
with specifiedResponsiveLayout
model.- Specified by:
createCanvasResponsiveLayout
in interfaceCanvasComponentsFactory
- Parameters:
responsiveLayout
- responsive layout model- Returns:
- created layout
-