Class DashboardImpl
java.lang.Object
io.jmix.ui.component.CompositeComponent<VBoxLayout>
io.jmix.dashboardsui.component.impl.DashboardImpl
- All Implemented Interfaces:
Dashboard
,AttachNotifier
,Component
,Component.BelongToFrame
,Component.HasCaption
,Component.HasDescription
,Component.HasIcon
,CompositeWithCaption
,CompositeWithDescription
,CompositeWithIcon
,HasDebugId
,HasHtmlSanitizer
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.ui.component.CompositeComponent
CompositeComponent.CreateEvent
Nested classes/interfaces inherited from interface io.jmix.ui.component.Component
Component.Alignment, Component.BelongToFrame, Component.Disposable, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.Wrapper
-
Field Summary
Modifier and TypeFieldDescriptionprotected AccessConstraintsHelper
protected String
protected VBoxLayout
protected CanvasFragment
protected String
protected UiComponents
protected DashboardModel
protected DashboardViewAssistant
protected DataManager
protected Facets
protected Fragments
protected JsonConverter
protected String
protected Messages
protected Metadata
protected Notifications
protected ParameterTransformer
protected org.springframework.core.io.ResourceLoader
protected Integer
protected UiEventPublisher
Fields inherited from class io.jmix.ui.component.CompositeComponent
applicationContext, frame, id, prefixId, root
Fields inherited from interface io.jmix.ui.component.Component
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addXmlParameters
(DashboardModel dashboardModel) void
dashboardEventListener
(DashboardEvent dashboardEvent) protected Window
findWindow
(Component frame) Returns assistant bean namegetDuplicatesParams
(DashboardModel dashboardModel) int
Returns delay for timerReturns widget by passed id.void
Initialize dashboard with passed parameters, timer and assistant.protected DashboardModel
loadDashboardByCode
(String code) protected DashboardModel
loadDashboardByJson
(String jsonPath) void
refresh()
Refreshes dashboard.void
Refreshes widget with passed parameters.protected void
refreshWidgets
(DashboardEvent dashboardEvent) protected ScreenFragment
searchWidgetFragment
(Component layout, String widgetId) void
setAssistantBeanName
(String assistantBeanName) Set assistant bean namevoid
Dashboard can be configured by setting code of existing dashboard To apply new changes theDashboard.init(Map)
method required to be invokedvoid
setJsonPath
(String jsonPath) Dashboard can be configured from json filevoid
setTimerDelay
(int delay) Set delay for dashboard timervoid
setXmlParameters
(List<Parameter> parameters) Sets passed parameters to dashboard componentprotected void
updateCanvasFragment
(DashboardModel dashboardModel) protected void
updateDashboard
(DashboardModel dashboardModel) Methods inherited from class io.jmix.ui.component.CompositeComponent
addAttachListener, addCreateListener, addDetachListener, addStyleName, assignDebugId, attached, detached, disableEventListeners, enableEventListeners, getAlignment, getComposition, getCompositionOrNull, getDebugId, getEventHub, getFrame, getFullId, getHeight, getHeightSizeUnit, getId, getInnerComponent, getInnerComponentOptional, getParent, getPrefixId, getStyleName, getUiEventListeners, getWidth, getWidthSizeUnit, hasSubscriptions, isAttached, isEnabled, isEnabledRecursive, isHtmlSanitizerEnabled, isResponsive, isVisible, isVisibleRecursive, publish, removeStyleName, setAlignment, setApplicationContext, setComposition, setDebugId, setEnabled, setFrame, setHeight, setHtmlSanitizerEnabled, setId, setParent, setResponsive, setStyleName, setUiEventListeners, setVisible, setWidth, unsubscribe, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, updateComponentIds, updateIdIfNeeded, withUnwrapped, withUnwrappedComposition
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.jmix.ui.component.Component
addStyleName, getAlignment, getHeight, getHeightSizeUnit, getId, getParent, getStyleName, getWidth, getWidthSizeUnit, isEnabled, isEnabledRecursive, isResponsive, isVisible, isVisibleRecursive, removeStyleName, setAlignment, setEnabled, setHeight, setHeightAuto, setHeightFull, setId, setParent, setResponsive, setSizeAuto, setSizeFull, setStyleName, setVisible, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, withUnwrapped, withUnwrappedComposition
Methods inherited from interface io.jmix.ui.component.Component.BelongToFrame
getFrame, setFrame
Methods inherited from interface io.jmix.ui.component.CompositeWithCaption
getCaption, setCaption
Methods inherited from interface io.jmix.ui.component.CompositeWithDescription
getDescription, setDescription
Methods inherited from interface io.jmix.ui.component.CompositeWithIcon
getIcon, setIcon, setIconFromSet
-
Field Details
-
canvasBox
-
dataManager
-
jsonConverter
-
resourceLoader
@Autowired protected org.springframework.core.io.ResourceLoader resourceLoader -
metadata
-
accessHelper
-
componentsFactory
-
facets
-
notifications
-
fragments
-
parameterTransformer
-
dashboardViewAssistant
-
uiEventPublisher
-
canvasFragment
-
messages
-
code
-
jsonPath
-
timerDelay
-
xmlParameters
-
assistantBeanName
-
dashboardModel
-
-
Constructor Details
-
DashboardImpl
public DashboardImpl()
-
-
Method Details
-
init
Description copied from interface:Dashboard
Initialize dashboard with passed parameters, timer and assistant. -
refresh
public void refresh()Description copied from interface:Dashboard
Refreshes dashboard. Dashboard will be refreshed . If existed parameter has the same name as one of the param from passed map, it will be overwritten by param from map. -
refresh
Refreshes widget with passed parameters. Dashboard will be refreshed with merged existed and new parameters. If existed parameter has the same name as one of the param from passed map, it will be overwritten by param from map. -
dashboardEventListener
@EventListener public void dashboardEventListener(DashboardEvent dashboardEvent) throws InvocationTargetException, IllegalAccessException -
updateDashboard
-
loadDashboardByJson
-
loadDashboardByCode
-
addXmlParameters
-
getDuplicatesParams
-
updateCanvasFragment
-
refreshWidgets
-
findWindow
-
getWidget
Description copied from interface:Dashboard
Returns widget by passed id. -
searchWidgetFragment
-
setCode
Description copied from interface:Dashboard
Dashboard can be configured by setting code of existing dashboard To apply new changes theDashboard.init(Map)
method required to be invoked -
setJsonPath
Description copied from interface:Dashboard
Dashboard can be configured from json file- Specified by:
setJsonPath
in interfaceDashboard
- Parameters:
jsonPath
- path to json configuration file
-
setXmlParameters
Description copied from interface:Dashboard
Sets passed parameters to dashboard component- Specified by:
setXmlParameters
in interfaceDashboard
- Parameters:
parameters
- list of parameters to be set
-
setTimerDelay
public void setTimerDelay(int delay) Description copied from interface:Dashboard
Set delay for dashboard timer- Specified by:
setTimerDelay
in interfaceDashboard
- Parameters:
delay
- delay time in seconds
-
getTimerDelay
public int getTimerDelay()Description copied from interface:Dashboard
Returns delay for timer- Specified by:
getTimerDelay
in interfaceDashboard
- Returns:
- delay time in seconds
-
getDashboardModel
- Specified by:
getDashboardModel
in interfaceDashboard
- Returns:
- dashboard entity
-
getAssistantBeanName
Description copied from interface:Dashboard
Returns assistant bean name- Specified by:
getAssistantBeanName
in interfaceDashboard
- Returns:
- name of assistant bean
-
setAssistantBeanName
Description copied from interface:Dashboard
Set assistant bean name- Specified by:
setAssistantBeanName
in interfaceDashboard
- Parameters:
assistantBeanName
- name of the assistant bean
-