public interface Dashboard
extends io.jmix.ui.component.Component, io.jmix.ui.component.Component.BelongToFrame, io.jmix.ui.component.CompositeWithIcon, io.jmix.ui.component.CompositeWithCaption, io.jmix.ui.component.CompositeWithDescription
DashboardModel
.
Dashboard can be configured by DashboardModel.code
or by the classpath of dashboard.json
It is possible to add (or rewrite) primitive parameters in the dashboard.
io.jmix.ui.component.Component.Alignment, io.jmix.ui.component.Component.BelongToFrame, io.jmix.ui.component.Component.Disposable, io.jmix.ui.component.Component.Editable, io.jmix.ui.component.Component.Focusable, io.jmix.ui.component.Component.HasCaption, io.jmix.ui.component.Component.HasDescription, io.jmix.ui.component.Component.HasIcon, io.jmix.ui.component.Component.HasXmlDescriptor, io.jmix.ui.component.Component.Wrapper
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAssistantBeanName()
Returns assistant bean name
|
DashboardModel |
getDashboardModel() |
int |
getTimerDelay()
Returns delay for timer
|
io.jmix.ui.screen.ScreenFragment |
getWidget(java.lang.String widgetId)
Returns widget by passed id.
|
void |
init(java.util.Map<java.lang.String,java.lang.Object> params)
Initialize dashboard with passed parameters, timer and assistant.
|
void |
refresh()
Refreshes dashboard.
|
void |
refresh(java.util.Map<java.lang.String,java.lang.Object> params)
Refreshes dashboard with passed parameters.
|
void |
setAssistantBeanName(java.lang.String assistantBeanName)
Set assistant bean name
|
void |
setCode(java.lang.String code)
Dashboard can be configured by setting code of existing dashboard
To apply new changes the
init(Map) method required to be invoked |
void |
setJsonPath(java.lang.String jsonPath)
Dashboard can be configured from json file
|
void |
setTimerDelay(int delay)
Set delay for dashboard timer
|
void |
setXmlParameters(java.util.List<Parameter> parameters)
Sets passed parameters to dashboard 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
static final java.lang.String NAME
void init(java.util.Map<java.lang.String,java.lang.Object> params)
params
- map of dashboard paramsDashboardModel getDashboardModel()
@Nullable io.jmix.ui.screen.ScreenFragment getWidget(java.lang.String widgetId)
widgetId
- widget identifiervoid refresh()
void refresh(java.util.Map<java.lang.String,java.lang.Object> params)
params
- map with new dashboard parametersvoid setCode(java.lang.String code)
init(Map)
method required to be invokedcode
- another dashboard codevoid setJsonPath(java.lang.String jsonPath)
jsonPath
- path to json configuration filevoid setXmlParameters(java.util.List<Parameter> parameters)
parameters
- list of parameters to be setvoid setTimerDelay(int delay)
delay
- delay time in secondsint getTimerDelay()
java.lang.String getAssistantBeanName()
void setAssistantBeanName(java.lang.String assistantBeanName)
assistantBeanName
- name of the assistant bean