@UiController(value="report_ShowChart.screen")
@UiDescriptor(value="show-chart-screen.xml")
public class ShowChartScreen
extends io.jmix.ui.screen.Screen
io.jmix.ui.screen.Screen.AfterCloseEvent, io.jmix.ui.screen.Screen.AfterDetachEvent, io.jmix.ui.screen.Screen.AfterInitEvent, io.jmix.ui.screen.Screen.AfterShowEvent, io.jmix.ui.screen.Screen.BeforeCloseEvent, io.jmix.ui.screen.Screen.BeforeShowEvent, io.jmix.ui.screen.Screen.InitEvent
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CHART_JSON_PARAMETER |
protected io.jmix.ui.component.GroupBoxLayout |
chartBox |
protected java.lang.String |
chartJson |
protected io.jmix.ui.Fragments |
fragments |
protected InputParametersFragment |
inputParametersFragment |
static java.lang.String |
JSON_CHART_SCREEN_ID |
protected io.jmix.core.Messages |
messages |
protected io.jmix.ui.component.BoxLayout |
parametersFragmentHolder |
protected io.jmix.ui.component.Button |
printReportBtn |
protected Report |
report |
protected io.jmix.ui.component.EntityComboBox<Report> |
reportEntityComboBox |
protected java.util.Map<java.lang.String,java.lang.Object> |
reportParameters |
protected io.jmix.ui.component.GroupBoxLayout |
reportParamsBox |
protected ReportRunner |
reportRunner |
protected ReportSecurityManager |
reportSecurityManager |
protected io.jmix.ui.component.HBoxLayout |
reportSelectorBox |
protected io.jmix.ui.screen.ScreenValidation |
screenValidation |
protected java.lang.String |
templateCode |
protected io.jmix.ui.theme.ThemeConstants |
themeConstants |
protected io.jmix.ui.UiComponents |
uiComponents |
protected io.jmix.ui.WindowConfig |
windowConfig |
Constructor and Description |
---|
ShowChartScreen() |
Modifier and Type | Method and Description |
---|---|
protected io.jmix.ui.component.Label<java.lang.String> |
createLabel(java.lang.String caption) |
protected void |
initFragments(java.lang.String chartJson,
java.util.Map<java.lang.String,java.lang.Object> reportParameters) |
protected void |
initReportTemplatesComboBox() |
protected void |
onBeforeShow(io.jmix.ui.screen.Screen.BeforeShowEvent event) |
void |
onReportsDlPostLoad(io.jmix.ui.model.CollectionLoader.PostLoadEvent<Report> event) |
protected void |
openChart(java.lang.String chartJson) |
protected void |
printReport(io.jmix.ui.component.Button.ClickEvent event) |
void |
setChartJson(java.lang.String chartJson) |
void |
setReport(Report report) |
void |
setReportParameters(java.util.Map<java.lang.String,java.lang.Object> reportParameters) |
void |
setTemplateCode(java.lang.String templateCode) |
protected void |
showChartsNotIncluded() |
protected void |
showDiagramStubText() |
addAfterCloseListener, addAfterDetachListener, addAfterInitListener, addAfterShowListener, addBeforeCloseListener, addBeforeShowListener, addInitListener, addUrlParamsChangeListener, close, close, closeWithDefaultAction, fireEvent, getApplicationContext, getEventHub, getExtensions, getId, getScreenData, getUiEventListeners, getWindow, isMultipleOpen, isSameScreen, setApplicationContext, setExtensions, setId, setScreenData, setUiEventListeners, setWindow, show
public static final java.lang.String JSON_CHART_SCREEN_ID
public static final java.lang.String CHART_JSON_PARAMETER
@Autowired protected io.jmix.ui.component.GroupBoxLayout reportParamsBox
@Autowired protected io.jmix.ui.component.GroupBoxLayout chartBox
@Autowired protected ReportSecurityManager reportSecurityManager
@Autowired protected io.jmix.ui.theme.ThemeConstants themeConstants
@Autowired protected io.jmix.ui.component.EntityComboBox<Report> reportEntityComboBox
@Autowired protected io.jmix.ui.UiComponents uiComponents
@Autowired protected io.jmix.ui.component.Button printReportBtn
@Autowired protected io.jmix.ui.component.BoxLayout parametersFragmentHolder
@Autowired protected io.jmix.ui.component.HBoxLayout reportSelectorBox
@Autowired protected io.jmix.ui.WindowConfig windowConfig
@Autowired protected io.jmix.core.Messages messages
@Autowired protected io.jmix.ui.Fragments fragments
@Autowired protected io.jmix.ui.screen.ScreenValidation screenValidation
protected InputParametersFragment inputParametersFragment
@Autowired protected ReportRunner reportRunner
protected Report report
protected java.lang.String templateCode
protected java.lang.String chartJson
protected java.util.Map<java.lang.String,java.lang.Object> reportParameters
public void setChartJson(java.lang.String chartJson)
public void setReport(Report report)
public void setTemplateCode(@Nullable java.lang.String templateCode)
public void setReportParameters(java.util.Map<java.lang.String,java.lang.Object> reportParameters)
@Subscribe protected void onBeforeShow(io.jmix.ui.screen.Screen.BeforeShowEvent event)
@Subscribe(id="reportsDl", target=DATA_LOADER) public void onReportsDlPostLoad(io.jmix.ui.model.CollectionLoader.PostLoadEvent<Report> event)
protected void initReportTemplatesComboBox()
protected void initFragments(@Nullable java.lang.String chartJson, @Nullable java.util.Map<java.lang.String,java.lang.Object> reportParameters)
protected void openChart(@Nullable java.lang.String chartJson)
protected void showDiagramStubText()
protected void showChartsNotIncluded()
protected io.jmix.ui.component.Label<java.lang.String> createLabel(java.lang.String caption)
@Subscribe(value="printReportBtn") protected void printReport(io.jmix.ui.component.Button.ClickEvent event)