@DashboardWidget(name="Chart", editFragmentId="dshbrd_ChartWidgetEdit") @UiController(value="dshbrd_ChartWidget") @UiDescriptor(value="chart-widget.xml") public class ChartWidget extends io.jmix.ui.screen.ScreenFragment implements RefreshableWidget
Modifier and Type | Class and Description |
---|---|
protected static class |
ChartWidget.BasicChart
Used for default initialization in
ChartImpl.JmixAmchartsSceneExt#setupDefaults(AbstractChart)
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CAPTION |
protected io.jmix.core.DataManager |
dataManager |
protected io.jmix.ui.component.Label<java.lang.String> |
errorLabel |
protected java.lang.Boolean |
refreshAutomatically |
protected java.util.UUID |
reportId |
protected io.jmix.charts.component.CustomChart |
reportJsonChart |
protected io.jmix.reports.runner.ReportRunner |
reportRunner |
protected java.util.UUID |
templateId |
protected Widget |
widget |
protected WidgetRepository |
widgetRepository |
Constructor and Description |
---|
ChartWidget() |
Modifier and Type | Method and Description |
---|---|
io.jmix.charts.component.CustomChart |
getReportChart() |
void |
onInit(io.jmix.ui.screen.ScreenFragment.InitEvent initEvent) |
void |
refresh(DashboardEvent dashboardEvent) |
addAfterInitListener, addAttachEventListener, addDetachEventListener, addInitListener, fireEvent, getApplicationContext, getEventHub, getExtensions, getFragment, getHostController, getHostScreen, getId, getScreenData, getUiEventListeners, init, setApplicationContext, setExtensions, setFragment, setHostController, setId, setScreenData, setUiEventListeners
public static final java.lang.String CAPTION
@Autowired protected io.jmix.core.DataManager dataManager
@Autowired protected io.jmix.reports.runner.ReportRunner reportRunner
@Autowired protected WidgetRepository widgetRepository
protected Widget widget
@WidgetParam protected java.util.UUID reportId
@WidgetParam protected java.lang.Boolean refreshAutomatically
@WidgetParam protected java.util.UUID templateId
@Autowired protected io.jmix.ui.component.Label<java.lang.String> errorLabel
@Autowired protected io.jmix.charts.component.CustomChart reportJsonChart
@Subscribe public void onInit(io.jmix.ui.screen.ScreenFragment.InitEvent initEvent)
public void refresh(DashboardEvent dashboardEvent)
refresh
in interface RefreshableWidget
public io.jmix.charts.component.CustomChart getReportChart()