Class RegionsStepFragment

All Implemented Interfaces:
FrameOwner

@UiController("report_RegionStep.fragment") @UiDescriptor("regions-step-fragment.xml") public class RegionsStepFragment extends StepFragment
  • Field Details

    • MAX_ATTRS_BTN_CAPTION_WIDTH

      protected static final int MAX_ATTRS_BTN_CAPTION_WIDTH
      See Also:
    • addRegionPopupBtn

      @Autowired protected PopupButton addRegionPopupBtn
    • addTabulatedRegionBtn

      @Autowired protected Button addTabulatedRegionBtn
    • addSimpleRegionBtn

      @Autowired protected Button addSimpleRegionBtn
    • addRegionDisabledBtn

      @Autowired protected Button addRegionDisabledBtn
    • removeBtn

      @Autowired protected Button removeBtn
    • regionsTable

      @Autowired protected Table<ReportRegion> regionsTable
    • buttonsBox

      @Autowired protected BoxLayout buttonsBox
    • dialogs

      @Autowired protected Dialogs dialogs
    • notifications

      @Autowired protected Notifications notifications
    • screenBuilders

      @Autowired protected ScreenBuilders screenBuilders
    • uiComponents

      @Autowired protected UiComponents uiComponents
    • uiReportRunner

      @Autowired protected UiReportRunner uiReportRunner
    • reportsClientProperties

      @Autowired protected ReportsClientProperties reportsClientProperties
    • runBtn

      @Autowired protected Button runBtn
    • lastGeneratedTmpReport

      protected Report 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

      @Nullable protected ReportTypeGenerate getReportTypeGenerate()
    • beforeShow

      public void beforeShow()
      Description copied from class: StepFragment
      Entry point for adding functionality before showing the fragment
      Overrides:
      beforeShow in class StepFragment
    • afterShow

      public void afterShow()
      Description copied from class: StepFragment
      Entry point for adding functionality after the fragment is shown
      Overrides:
      afterShow in class StepFragment
    • getCaption

      public String getCaption()
      Description copied from class: StepFragment
      Sets the caption for the wizard screen
      Specified by:
      getCaption in class StepFragment
      Returns:
      caption
    • getDescription

      public String getDescription()
      Description copied from class: StepFragment
      Sets the description for the wizard screen
      Specified by:
      getDescription in class StepFragment
      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

      protected ReportRegion createReportRegion(boolean tabulated)
    • showAddRegion

      protected void showAddRegion()
    • openTabulatedRegionEditor

      protected void openTabulatedRegionEditor(ReportRegion item)
    • openRegionEditorOnlyWithNestedCollections

      protected void openRegionEditorOnlyWithNestedCollections(ReportRegion item)
    • openRegionEditor

      protected void openRegionEditor(ReportRegion item)
    • showRegionEditor

      protected void showRegionEditor(ReportRegion item, Map<String,Object> editorParams)
    • onRunBtnClick

      @Subscribe("runBtn") public void onRunBtnClick(Button.ClickEvent event)
    • 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

      public List<String> validateFragment()
      Overrides:
      validateFragment in class StepFragment