Class RegionsStepFragment
java.lang.Object
io.jmix.ui.screen.ScreenFragment
io.jmix.reportsui.screen.report.wizard.step.StepFragment
io.jmix.reportsui.screen.report.wizard.step.RegionsStepFragment
- All Implemented Interfaces:
FrameOwner
@UiController("report_RegionStep.fragment")
@UiDescriptor("regions-step-fragment.xml")
public class RegionsStepFragment
extends StepFragment
-
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 Button
protected PopupButton
protected Button
protected Button
protected BoxLayout
protected Dialogs
protected boolean
protected boolean
protected Report
protected static final int
protected Notifications
protected Table<ReportRegion>
protected Button
protected ReportsClientProperties
protected Button
protected ScreenBuilders
protected UiComponents
protected UiReportRunner
Fields inherited from class io.jmix.reportsui.screen.report.wizard.step.StepFragment
messages, messageTools, metadata, validateBeforeNext, validateBeforePrev
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 TypeMethodDescriptionvoid
Entry point for adding functionality after the fragment is shownvoid
Entry point for adding functionality before showing the fragmentprotected ReportRegion
createReportRegion
(boolean tabulated) protected void
Sets the caption for the wizard screenSets the description for the wizard screenprotected ReportTypeGenerate
protected void
void
void
void
void
onRunBtnClick
(Button.ClickEvent event) protected void
openRegionEditor
(ReportRegion item) protected void
protected void
protected Component
regionsTableAttributesColumnGenerator
(ReportRegion reportRegion) protected Component
regionsTableEntityColumnGenerator
(ReportRegion reportRegion) protected Component
regionsTableNameColumnGenerator
(ReportRegion reportRegion) protected void
regionsTableRemoveAfterActionPerformedHandler
(RemoveOperation.AfterActionPerformedEvent<ReportRegion> afterActionPerformedEvent) void
setEntityTreeHasCollections
(boolean entityTreeHasCollections) void
setEntityTreeHasSimpleAttrs
(boolean entityTreeHasSimpleAttrs) protected void
protected void
showRegionEditor
(ReportRegion item, Map<String, Object> editorParams) protected void
Methods inherited from class io.jmix.reportsui.screen.report.wizard.step.StepFragment
beforeHide, getDefaultRequiredMessage, initFragment, isValidateBeforeNext, isValidateBeforePrev
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
-
MAX_ATTRS_BTN_CAPTION_WIDTH
protected static final int MAX_ATTRS_BTN_CAPTION_WIDTH- See Also:
-
addRegionPopupBtn
-
addTabulatedRegionBtn
-
addSimpleRegionBtn
-
addRegionDisabledBtn
-
removeBtn
-
regionsTable
-
buttonsBox
-
dialogs
-
notifications
-
screenBuilders
-
uiComponents
-
uiReportRunner
-
reportsClientProperties
-
runBtn
-
lastGeneratedTmpReport
-
entityTreeHasSimpleAttrs
protected boolean entityTreeHasSimpleAttrs -
entityTreeHasCollections
protected boolean entityTreeHasCollections
-
-
Constructor Details
-
RegionsStepFragment
public RegionsStepFragment()
-
-
Method Details
-
setEntityTreeHasCollections
public void setEntityTreeHasCollections(boolean entityTreeHasCollections) -
setEntityTreeHasSimpleAttrs
public void setEntityTreeHasSimpleAttrs(boolean entityTreeHasSimpleAttrs) -
getReportTypeGenerate
-
beforeShow
public void beforeShow()Description copied from class:StepFragment
Entry point for adding functionality before showing the fragment- Overrides:
beforeShow
in classStepFragment
-
afterShow
public void afterShow()Description copied from class:StepFragment
Entry point for adding functionality after the fragment is shown- Overrides:
afterShow
in classStepFragment
-
getCaption
Description copied from class:StepFragment
Sets the caption for the wizard screen- Specified by:
getCaption
in classStepFragment
- Returns:
- caption
-
getDescription
Description copied from class:StepFragment
Sets the description for the wizard screen- Specified by:
getDescription
in classStepFragment
- Returns:
- description
-
regionsTableAttributesColumnGenerator
@Install(to="regionsTable.attributes", subject="columnGenerator") protected Component regionsTableAttributesColumnGenerator(ReportRegion reportRegion) -
editRegion
protected void editRegion() -
regionsTableNameColumnGenerator
@Install(to="regionsTable.name", subject="columnGenerator") protected Component regionsTableNameColumnGenerator(ReportRegion reportRegion) -
regionsTableEntityColumnGenerator
@Install(to="regionsTable.entity", subject="columnGenerator") protected Component regionsTableEntityColumnGenerator(ReportRegion reportRegion) -
onAddRegionPopupBtnAddTabulatedRegion
@Subscribe("addRegionPopupBtn.addTabulatedRegion") public void onAddRegionPopupBtnAddTabulatedRegion(Action.ActionPerformedEvent event) -
onAddRegionPopupBtnAddSimpleRegion
@Subscribe("addRegionPopupBtn.addSimpleRegion") public void onAddRegionPopupBtnAddSimpleRegion(Action.ActionPerformedEvent event) -
createReportRegion
-
showAddRegion
protected void showAddRegion() -
openTabulatedRegionEditor
-
openRegionEditorOnlyWithNestedCollections
-
openRegionEditor
-
showRegionEditor
-
onRunBtnClick
-
regionsTableRemoveAfterActionPerformedHandler
@Install(to="regionsTable.remove", subject="afterActionPerformedHandler") protected void regionsTableRemoveAfterActionPerformedHandler(RemoveOperation.AfterActionPerformedEvent<ReportRegion> afterActionPerformedEvent) -
normalizeRegionPropertiesOrderNum
protected void normalizeRegionPropertiesOrderNum() -
onReportRegionsDcCollectionChange
@Subscribe(id="reportRegionsDc", target=DATA_CONTAINER) public void onReportRegionsDcCollectionChange(CollectionContainer.CollectionChangeEvent<ReportRegion> event) -
updateButtons
protected void updateButtons() -
validateFragment
- Overrides:
validateFragment
in classStepFragment
-