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.CreateEventNested 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
FieldsModifier and TypeFieldDescriptionprotected AccessConstraintsHelperprotected Stringprotected VBoxLayoutprotected CanvasFragmentprotected Stringprotected UiComponentsprotected DashboardModelprotected DashboardViewAssistantprotected DataManagerprotected Facetsprotected Fragmentsprotected JsonConverterprotected Stringprotected Messagesprotected Metadataprotected Notificationsprotected ParameterTransformerprotected org.springframework.core.io.ResourceLoaderprotected Integerprotected UiEventPublisherFields inherited from class io.jmix.ui.component.CompositeComponent
applicationContext, frame, id, prefixId, rootFields inherited from interface io.jmix.ui.component.Component
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddXmlParameters(DashboardModel dashboardModel) voiddashboardEventListener(DashboardEvent dashboardEvent) protected WindowfindWindow(Component frame) Returns assistant bean namegetDuplicatesParams(DashboardModel dashboardModel) intReturns delay for timerReturns widget by passed id.voidInitialize dashboard with passed parameters, timer and assistant.protected DashboardModelloadDashboardByCode(String code) protected DashboardModelloadDashboardByJson(String jsonPath) voidrefresh()Refreshes dashboard.voidRefreshes widget with passed parameters.protected voidrefreshWidgets(DashboardEvent dashboardEvent) protected ScreenFragmentsearchWidgetFragment(Component layout, String widgetId) voidsetAssistantBeanName(String assistantBeanName) Set assistant bean namevoidDashboard can be configured by setting code of existing dashboard To apply new changes theDashboard.init(Map)method required to be invokedvoidsetJsonPath(String jsonPath) Dashboard can be configured from json filevoidsetTimerDelay(int delay) Set delay for dashboard timervoidsetXmlParameters(List<Parameter> parameters) Sets passed parameters to dashboard componentprotected voidupdateCanvasFragment(DashboardModel dashboardModel) protected voidupdateDashboard(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, withUnwrappedCompositionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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, withUnwrappedCompositionMethods inherited from interface io.jmix.ui.component.Component.BelongToFrame
getFrame, setFrameMethods inherited from interface io.jmix.ui.component.CompositeWithCaption
getCaption, setCaptionMethods inherited from interface io.jmix.ui.component.CompositeWithDescription
getDescription, setDescriptionMethods 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:DashboardInitialize dashboard with passed parameters, timer and assistant. -
refresh
public void refresh()Description copied from interface:DashboardRefreshes 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:DashboardReturns widget by passed id. -
searchWidgetFragment
-
setCode
Description copied from interface:DashboardDashboard 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:DashboardDashboard can be configured from json file- Specified by:
setJsonPathin interfaceDashboard- Parameters:
jsonPath- path to json configuration file
-
setXmlParameters
Description copied from interface:DashboardSets passed parameters to dashboard component- Specified by:
setXmlParametersin interfaceDashboard- Parameters:
parameters- list of parameters to be set
-
setTimerDelay
public void setTimerDelay(int delay) Description copied from interface:DashboardSet delay for dashboard timer- Specified by:
setTimerDelayin interfaceDashboard- Parameters:
delay- delay time in seconds
-
getTimerDelay
public int getTimerDelay()Description copied from interface:DashboardReturns delay for timer- Specified by:
getTimerDelayin interfaceDashboard- Returns:
- delay time in seconds
-
getDashboardModel
- Specified by:
getDashboardModelin interfaceDashboard- Returns:
- dashboard entity
-
getAssistantBeanName
Description copied from interface:DashboardReturns assistant bean name- Specified by:
getAssistantBeanNamein interfaceDashboard- Returns:
- name of assistant bean
-
setAssistantBeanName
Description copied from interface:DashboardSet assistant bean name- Specified by:
setAssistantBeanNamein interfaceDashboard- Parameters:
assistantBeanName- name of the assistant bean
-