Class ReportWizardCreatorView

java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.Composite<T>
io.jmix.flowui.view.View<ViewLayout>
io.jmix.flowui.view.StandardView
io.jmix.reportsflowui.view.reportwizard.ReportWizardCreatorView
All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasStyle, com.vaadin.flow.router.AfterNavigationObserver, com.vaadin.flow.router.BeforeEnterObserver, com.vaadin.flow.router.BeforeLeaveObserver, com.vaadin.flow.router.HasDynamicTitle, com.vaadin.flow.router.internal.AfterNavigationHandler, com.vaadin.flow.router.internal.BeforeEnterHandler, com.vaadin.flow.router.internal.BeforeLeaveHandler, Serializable

@Route(value="reports/wizard", layout=DefaultMainViewParent.class) @DialogMode(draggable=false, width="45em") @ViewController("report_ReportWizardCreatorView") @ViewDescriptor("report-wizard-creator-view.xml") public class ReportWizardCreatorView extends StandardView
See Also:
  • Field Details

  • Constructor Details

    • ReportWizardCreatorView

      public ReportWizardCreatorView()
  • Method Details

    • onInit

      @Subscribe public void onInit(View.InitEvent event)
    • initItem

      protected void initItem()
    • getFragmentsList

      protected List<com.vaadin.flow.component.orderedlayout.VerticalLayout> getFragmentsList()
    • initFragments

      protected void initFragments()
    • onReportNameFieldTypedValueChange

      @Subscribe("reportNameField") public void onReportNameFieldTypedValueChange(SupportsTypedValue.TypedValueChangeEvent<TypedTextField<String>,String> event)
    • beforeShowFragments

      protected void beforeShowFragments()
    • addRegionDescription

      public void addRegionDescription()
    • getRegionDescription

      public String getRegionDescription()
    • initFragmentDescription

      public void initFragmentDescription()
    • updateWizardDescription

      public void updateWizardDescription()
    • onReportDataDcItemPropertyChange

      @Subscribe(id="reportDataDc", target=DATA_CONTAINER) public void onReportDataDcItemPropertyChange(InstanceContainer.ItemPropertyChangeEvent<ReportData> event)
    • onNextBtnClick

      @Subscribe("nextBtn") public void onNextBtnClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event)
    • onBackBtnClick

      @Subscribe("backBtn") public void onBackBtnClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event)
    • updateFragmentChangeButtons

      protected void updateFragmentChangeButtons()
    • nextFragment

      protected void nextFragment()
    • prevFragment

      protected void prevFragment()
    • isNeedUpdateEntityModel

      public boolean isNeedUpdateEntityModel()
    • setNeedUpdateEntityModel

      public void setNeedUpdateEntityModel(boolean needUpdateEntityModel)
    • getCurrentFragment

      protected com.vaadin.flow.component.orderedlayout.VerticalLayout getCurrentFragment()
    • validateFragment

      protected boolean validateFragment()
    • onSaveBtnClick

      @Subscribe("saveBtn") public void onSaveBtnClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event)
    • convertToReportAndForceCloseWizard

      protected void convertToReportAndForceCloseWizard()
    • buildReport

      @Nullable public Report buildReport(boolean temporary)
    • getItem

      public ReportData getItem()
    • onBeforeClose

      @Subscribe public void onBeforeClose(View.BeforeCloseEvent event)
    • initEntityLookupField

      protected void initEntityLookupField()
    • onReportTypeGenerateFieldComponentValueChange

      @Subscribe("reportTypeGenerateField") public void onReportTypeGenerateFieldComponentValueChange(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<JmixRadioButtonGroup,Object> event)
    • updateReportTypeGenerate

      protected void updateReportTypeGenerate(ReportData reportData, @Nullable ReportTypeGenerate reportTypeGenerate)
    • onEntityFieldComponentValueChange

      @Subscribe("entityField") public void onEntityFieldComponentValueChange(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<JmixComboBox,MetaClass> event)
    • updateReportEntity

      protected void updateReportEntity(@Nullable MetaClass prevValue, MetaClass value, ReportData reportData)
    • setReportName

      protected void setReportName(ReportData reportData, @Nullable MetaClass prevValue, MetaClass value)
    • updateReportOutputName

      protected void updateReportOutputName(ReportData reportData, MetaClass value)
    • onTemplateFileTypeFieldComponentValueChange

      @Subscribe("templateFileTypeField") public void onTemplateFileTypeFieldComponentValueChange(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<JmixComboBox<TemplateFileType>,TemplateFileType> event)
    • initTemplateFormatLookupField

      protected void initTemplateFormatLookupField()
    • initReportTypeOptionGroup

      protected void initReportTypeOptionGroup()
    • itemLabelGenerator

      protected String itemLabelGenerator(ReportTypeGenerate reportTypeGenerate)
    • getAvailableTemplateFormats

      protected Map<TemplateFileType,String> getAvailableTemplateFormats()
    • getAvailableEntities

      protected Map<String,MetaClass> getAvailableEntities()
    • clearQuery

      protected void clearQuery()
    • setEntityTreeHasCollections

      public void setEntityTreeHasCollections(boolean entityTreeHasCollections)
    • setEntityTreeHasSimpleAttrs

      public void setEntityTreeHasSimpleAttrs(boolean entityTreeHasSimpleAttrs)
    • getReportTypeGenerate

      @Nullable protected ReportTypeGenerate getReportTypeGenerate()
    • onRegionDataGridRemoveItemAction

      @Subscribe("regionDataGrid.remove") public void onRegionDataGridRemoveItemAction(ActionPerformedEvent event)
    • onRegionDataGridEditItemAction

      @Subscribe("regionDataGrid.edit") public void onRegionDataGridEditItemAction(ActionPerformedEvent event)
    • regionDataGridUpEnabledRule

      @Install(to="regionDataGrid.up", subject="enabledRule") protected boolean regionDataGridUpEnabledRule()
    • regionDataGridDownEnabledRule

      @Install(to="regionDataGrid.down", subject="enabledRule") protected boolean regionDataGridDownEnabledRule()
    • editRegion

      protected void editRegion()
    • onAddTabulatedRegionBtnClick

      @Subscribe("addTabulatedRegionBtn") public void onAddTabulatedRegionBtnClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event)
    • onAddSimpleRegionBtnClick

      @Subscribe("addSimpleRegionBtn") public void onAddSimpleRegionBtnClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> 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, EntityTreeNode rootEntity, boolean scalarOnly, boolean collectionsOnly, boolean persistentOnly)
    • normalizeRegionPropertiesOrderNum

      protected void normalizeRegionPropertiesOrderNum()
    • onRegionDataGridUp

      @Subscribe("regionDataGrid.up") protected void onRegionDataGridUp(ActionPerformedEvent event)
    • onRegionDataGridDown

      @Subscribe("regionDataGrid.down") protected void onRegionDataGridDown(ActionPerformedEvent event)
    • swapItems

      protected void swapItems(boolean up)
    • updateRegionButtons

      protected void updateRegionButtons()
    • onOutputFileFormatComponentValueChange

      @Subscribe("outputFileFormat") public void onOutputFileFormatComponentValueChange(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<JmixComboBox<ReportOutputType>,ReportOutputType> event)
    • updateCorrectReportOutputType

      protected void updateCorrectReportOutputType(TemplateFileType newValue)
    • generateOutputFileName

      protected String generateOutputFileName(String fileExtension, ReportTypeGenerate reportTypeGenerate)
    • onBeforeShow

      @Subscribe public void onBeforeShow(View.BeforeShowEvent event)
    • initRegionsDataGrid

      protected void initRegionsDataGrid()
    • updateDownloadTemplateFile

      public void updateDownloadTemplateFile()
    • generateTemplateFileName

      public String generateTemplateFileName(String fileExtension)
    • onReportParameterDataGridGenerate

      @Subscribe("reportParameterDataGrid.generate") public void onReportParameterDataGridGenerate(ActionPerformedEvent event)
    • generateQueryParameters

      protected void generateQueryParameters()
    • createQueryParameter

      protected QueryParameter createQueryParameter(String name)
    • onDownloadTemplateFileClick

      @Subscribe("downloadTemplateFileBtn") public void onDownloadTemplateFileClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event)
    • onReportRegionsDcCollectionChange

      @Subscribe(id="reportRegionsDc", target=DATA_CONTAINER) public void onReportRegionsDcCollectionChange(CollectionContainer.CollectionChangeEvent<ReportData> event)
    • updateMoveButtons

      protected void updateMoveButtons()
    • onRegionPropertiesDcCollectionChange

      @Subscribe(id="regionPropertiesDc", target=DATA_CONTAINER) public void onRegionPropertiesDcCollectionChange(CollectionContainer.CollectionChangeEvent<RegionProperty> event)
    • onFullScreenTransformationBtnClick

      @Subscribe("fullScreenTransformationBtn") protected void onFullScreenTransformationBtnClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.icon.Icon> event)
    • onQueryCodeEditorHelpIconClick

      @Subscribe("queryCodeEditorHelpIcon") protected void onQueryCodeEditorHelpIconClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.icon.Icon> event)
    • openCodeEditorHelp

      protected void openCodeEditorHelp()
    • getScriptEditorDialogCaption

      protected String getScriptEditorDialogCaption()
    • reportParameterDataGridEditAfterSaveHandler

      @Install(to="reportParameterDataGrid.edit", subject="afterSaveHandler") protected void reportParameterDataGridEditAfterSaveHandler(QueryParameter queryParameter) throws ClassNotFoundException
      Throws:
      ClassNotFoundException
    • reportParameterDataGridCreateAfterSaveHandler

      @Install(to="reportParameterDataGrid.create", subject="afterSaveHandler") protected void reportParameterDataGridCreateAfterSaveHandler(QueryParameter queryParameter) throws ClassNotFoundException
      Throws:
      ClassNotFoundException
    • setDefaultValue

      protected void setDefaultValue(QueryParameter queryParameter) throws ClassNotFoundException
      Throws:
      ClassNotFoundException
    • initRegionDataGrid

      protected void initRegionDataGrid()
    • initReportParameterDataGrid

      protected void initReportParameterDataGrid()