@UiController(value="report_ShowReportTable.screen")
@UiDescriptor(value="show-report-table-screen.xml")
public class ShowReportTableScreen
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 |
---|---|
protected io.jmix.ui.Actions |
actions |
protected io.jmix.ui.Fragments |
fragments |
protected InputParametersFragment |
inputParametersFrame |
protected io.jmix.core.Metadata |
metadata |
protected io.jmix.core.MetadataTools |
metadataTools |
protected io.jmix.ui.component.BoxLayout |
parametersFrameHolder |
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 io.jmix.ui.component.HBoxLayout |
reportSelectorBox |
protected io.jmix.ui.screen.ScreenValidation |
screenValidation |
protected io.jmix.core.impl.StandardSerialization |
serialization |
protected byte[] |
tableData |
protected io.jmix.ui.component.VBoxLayout |
tablesVBoxLayout |
protected java.lang.String |
templateCode |
protected io.jmix.ui.UiComponents |
uiComponents |
Constructor and Description |
---|
ShowReportTableScreen() |
Modifier and Type | Method and Description |
---|---|
protected void |
createColumns(io.jmix.ui.model.KeyValueCollectionContainer collectionContainer,
io.jmix.ui.component.Table table,
java.util.Set<JmixTableData.ColumnInfo> headers) |
protected io.jmix.ui.model.KeyValueCollectionContainer |
createContainer(java.lang.String dataSetName,
java.util.List<io.jmix.core.entity.KeyValueEntity> keyValueEntities,
java.util.Map<java.lang.String,java.util.Set<JmixTableData.ColumnInfo>> headerMap) |
protected io.jmix.ui.component.Table |
createTable(java.lang.String dataSetName,
io.jmix.ui.model.KeyValueCollectionContainer collectionContainer,
java.util.Map<java.lang.String,java.util.Set<JmixTableData.ColumnInfo>> headerMap) |
protected void |
drawTables(JmixTableData dto) |
protected java.lang.String |
findTableCode(Report report) |
protected void |
onBeforeShow(io.jmix.ui.screen.Screen.BeforeShowEvent event) |
protected void |
onReportEntityComboBoxValueChange(io.jmix.ui.component.HasValue.ValueChangeEvent<Report> event) |
protected void |
printReport(io.jmix.ui.component.Button.ClickEvent button) |
void |
setReport(Report report) |
void |
setReportParameters(java.util.Map<java.lang.String,java.lang.Object> reportParameters) |
void |
setTableData(byte[] tableData) |
void |
setTemplateCode(java.lang.String templateCode) |
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
@Autowired protected io.jmix.ui.component.GroupBoxLayout reportParamsBox
@Autowired protected io.jmix.ui.UiComponents uiComponents
@Autowired protected io.jmix.core.Metadata metadata
@Autowired protected io.jmix.core.MetadataTools metadataTools
@Autowired protected io.jmix.ui.component.EntityComboBox<Report> reportEntityComboBox
@Autowired protected io.jmix.ui.component.Button printReportBtn
@Autowired protected io.jmix.ui.component.BoxLayout parametersFrameHolder
@Autowired protected io.jmix.ui.component.HBoxLayout reportSelectorBox
@Autowired protected io.jmix.ui.component.VBoxLayout tablesVBoxLayout
@Autowired protected io.jmix.core.impl.StandardSerialization serialization
@Autowired protected io.jmix.ui.Fragments fragments
@Autowired protected io.jmix.ui.screen.ScreenValidation screenValidation
@Autowired protected io.jmix.ui.Actions actions
@Autowired protected ReportRunner reportRunner
protected Report report
protected java.lang.String templateCode
protected java.util.Map<java.lang.String,java.lang.Object> reportParameters
protected InputParametersFragment inputParametersFrame
protected byte[] tableData
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)
public void setTableData(byte[] tableData)
@Subscribe protected void onBeforeShow(io.jmix.ui.screen.Screen.BeforeShowEvent event)
@Subscribe(value="reportEntityComboBox") protected void onReportEntityComboBoxValueChange(io.jmix.ui.component.HasValue.ValueChangeEvent<Report> event)
@Subscribe(value="printReportBtn") protected void printReport(io.jmix.ui.component.Button.ClickEvent button)
@Nullable protected java.lang.String findTableCode(Report report)
protected void drawTables(JmixTableData dto)
protected io.jmix.ui.model.KeyValueCollectionContainer createContainer(java.lang.String dataSetName, java.util.List<io.jmix.core.entity.KeyValueEntity> keyValueEntities, java.util.Map<java.lang.String,java.util.Set<JmixTableData.ColumnInfo>> headerMap)
protected io.jmix.ui.component.Table createTable(java.lang.String dataSetName, io.jmix.ui.model.KeyValueCollectionContainer collectionContainer, java.util.Map<java.lang.String,java.util.Set<JmixTableData.ColumnInfo>> headerMap)
protected void createColumns(io.jmix.ui.model.KeyValueCollectionContainer collectionContainer, io.jmix.ui.component.Table table, java.util.Set<JmixTableData.ColumnInfo> headers)