Class TableEditFragment
java.lang.Object
io.jmix.ui.screen.ScreenFragment
io.jmix.reportsui.screen.template.edit.DescriptionEditFragment
io.jmix.reportsui.screen.template.edit.TableEditFragment
- All Implemented Interfaces:
FrameOwner
@UiController("report_TableEdit.fragment")
@UiDescriptor("table-edit-fragment.xml")
public class TableEditFragment
extends DescriptionEditFragment
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.ui.screen.ScreenFragment
ScreenFragment.AfterInitEvent, ScreenFragment.AttachEvent, ScreenFragment.DetachEvent, ScreenFragment.InitEvent
-
Field Summary
Modifier and TypeFieldDescriptionprotected Table<TemplateTableBand>
protected Table<TemplateTableColumn>
protected TemplateTableDescription
static final int
protected Messages
protected Metadata
protected Notifications
protected CollectionContainer<TemplateTableBand>
protected CollectionContainer<TemplateTableColumn>
protected InstanceContainer<TemplateTableDescription>
static final int
Fields inherited from class io.jmix.reportsui.screen.template.edit.DescriptionEditFragment
previewBox, reportTemplate
Fields inherited from interface io.jmix.ui.screen.FrameOwner
NO_OPTIONS, WINDOW_CLOSE_ACTION, WINDOW_COMMIT_AND_CLOSE_ACTION, WINDOW_DISCARD_AND_CLOSE_ACTION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
protected boolean
protected void
bandsTableRemoveAfterActionPerformedHandler
(RemoveOperation.AfterActionPerformedEvent<TemplateTableBand> event) protected boolean
protected boolean
protected void
columnsTableRemoveAfterActionPerformedHandler
(RemoveOperation.AfterActionPerformedEvent<TemplateTableColumn> event) protected boolean
protected TemplateTableDescription
protected void
initPreviewContent
(BoxLayout previewBox) boolean
isApplicable
(ReportOutputType reportOutputType) boolean
protected void
protected void
protected void
protected void
protected void
protected void
protected void
onInit
(ScreenFragment.InitEvent event) void
setItem
(ReportTemplate reportTemplate) Methods inherited from class io.jmix.reportsui.screen.template.edit.DescriptionEditFragment
hidePreview, setVisible, showPreview
Methods inherited from class io.jmix.ui.screen.ScreenFragment
addAfterInitListener, addAttachEventListener, addDetachEventListener, addInitListener, fireEvent, getApplicationContext, getEventHub, getExtensions, getFragment, getHostController, getHostScreen, getId, getScreenData, getUiEventListeners, init, setApplicationContext, setExtensions, setFragment, setHostController, setId, setScreenData, setUiEventListeners
-
Field Details
-
UP
public static final int UP- See Also:
-
DOWN
public static final int DOWN- See Also:
-
description
-
metadata
-
bandsTable
-
columnsTable
-
tableBandsDc
-
templateTableDc
-
tableColumnsDc
-
messages
-
notifications
-
-
Constructor Details
-
TableEditFragment
public TableEditFragment()
-
-
Method Details
-
getReportTemplate
- Overrides:
getReportTemplate
in classDescriptionEditFragment
-
onInit
- Overrides:
onInit
in classDescriptionEditFragment
-
bandsTableRemoveAfterActionPerformedHandler
@Install(to="bandsTable.remove", subject="afterActionPerformedHandler") protected void bandsTableRemoveAfterActionPerformedHandler(RemoveOperation.AfterActionPerformedEvent<TemplateTableBand> event) -
onBandsTableCreate
@Subscribe("bandsTable.create") protected void onBandsTableCreate(Action.ActionPerformedEvent event) -
onBandsTableDownBand
@Subscribe("bandsTable.downBand") protected void onBandsTableDownBand(Action.ActionPerformedEvent event) -
bandsTableDownBandEnabledRule
-
onBandsTableUpBand
@Subscribe("bandsTable.upBand") protected void onBandsTableUpBand(Action.ActionPerformedEvent event) -
bandsTableUpBandEnabledRule
-
onColumnsTableCreate
@Subscribe("columnsTable.create") protected void onColumnsTableCreate(Action.ActionPerformedEvent event) -
columnsTableRemoveAfterActionPerformedHandler
@Install(to="columnsTable.remove", subject="afterActionPerformedHandler") protected void columnsTableRemoveAfterActionPerformedHandler(RemoveOperation.AfterActionPerformedEvent<TemplateTableColumn> event) -
onColumnsTableUpColumn
@Subscribe("columnsTable.upColumn") protected void onColumnsTableUpColumn(Action.ActionPerformedEvent event) -
columnsTableUpColumnEnabledRule
-
onColumnsTableDownColumn
@Subscribe("columnsTable.downColumn") protected void onColumnsTableDownColumn(Action.ActionPerformedEvent event) -
columnsTableDownColumnEnabledRule
-
createDefaultTemplateTableDescription
-
setItem
- Overrides:
setItem
in classDescriptionEditFragment
-
applyChanges
public boolean applyChanges()- Specified by:
applyChanges
in classDescriptionEditFragment
-
isApplicable
- Specified by:
isApplicable
in classDescriptionEditFragment
-
initPreviewContent
- Specified by:
initPreviewContent
in classDescriptionEditFragment
-
isSupportPreview
public boolean isSupportPreview()- Specified by:
isSupportPreview
in classDescriptionEditFragment
-