Class ReportDetailView

java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.Composite<ViewLayout>
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, FacetOwner, FragmentOwner, ChangeTracker, DetailView<Report>, HasEditedEntity<Report>, ReadOnlyAwareView, ReadOnlyTracker, SupportEntityLock<Report>, Serializable

@RouteAlias(value="reports/:id", layout=DefaultMainViewParent.class) @Route(value="report/reports/:id", layout=DefaultMainViewParent.class) @ViewController("report_Report.detail") @ViewDescriptor("report-detail-view.xml") public class ReportDetailView extends StandardDetailView<Report>
See Also:
  • Field Details

  • Constructor Details

    • ReportDetailView

      public ReportDetailView()
  • Method Details

    • onInit

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

      protected void initTemplatesOutputTypeColumn()
    • createTemplateOutputTypeBadge

      protected com.vaadin.flow.component.orderedlayout.HorizontalLayout createTemplateOutputTypeBadge(ReportTemplate template)
    • templatesDataGridAlterableRenderer

      @Supply(to="templatesDataGrid.alterable", subject="renderer") protected com.vaadin.flow.data.renderer.Renderer<ReportTemplate> templatesDataGridAlterableRenderer()
    • templatesDataGridDefaultRenderer

      @Supply(to="templatesDataGrid.default", subject="renderer") protected com.vaadin.flow.data.renderer.Renderer<ReportTemplate> templatesDataGridDefaultRenderer()
    • inputParametersDataGridRequiredRenderer

      @Supply(to="inputParametersDataGrid.required", subject="renderer") protected com.vaadin.flow.data.renderer.Renderer<ReportInputParameter> inputParametersDataGridRequiredRenderer()
    • inputParametersDataGridValidationOnRenderer

      @Supply(to="inputParametersDataGrid.validationOn", subject="renderer") protected com.vaadin.flow.data.renderer.Renderer<ReportInputParameter> inputParametersDataGridValidationOnRenderer()
    • createCheckbox

      protected com.vaadin.flow.component.checkbox.Checkbox createCheckbox(Boolean value)
    • onInitEntity

      @Subscribe protected void onInitEntity(StandardDetailView.InitEntityEvent<Report> event)
    • onReady

      @Subscribe protected void onReady(View.ReadyEvent event)
    • onBandsTreeDataGridCreate

      @Subscribe("bandsTreeDataGrid.create") protected void onBandsTreeDataGridCreate(ActionPerformedEvent event)
    • bandsTreeDataGridCreateEnabledRule

      @Install(to="bandsTreeDataGrid.create", subject="enabledRule") protected boolean bandsTreeDataGridCreateEnabledRule()
    • onBandsTreeDataGridRemove

      @Subscribe("bandsTreeDataGrid.remove") protected void onBandsTreeDataGridRemove(ActionPerformedEvent event)
    • bandsTreeDataGridRemoveEnabledRule

      @Install(to="bandsTreeDataGrid.remove", subject="enabledRule") protected boolean bandsTreeDataGridRemoveEnabledRule()
    • onBandsTreeDataGridUpBand

      @Subscribe("bandsTreeDataGrid.upBand") protected void onBandsTreeDataGridUpBand(ActionPerformedEvent event)
    • bandsTreeDataGridUpBandEnabledRule

      @Install(to="bandsTreeDataGrid.upBand", subject="enabledRule") protected boolean bandsTreeDataGridUpBandEnabledRule()
    • onBandsTreeDataGridDownBand

      @Subscribe("bandsTreeDataGrid.downBand") protected void onBandsTreeDataGridDownBand(ActionPerformedEvent event)
    • bandsTreeDataGridDownBandEnabledRule

      @Install(to="bandsTreeDataGrid.downBand", subject="enabledRule") protected boolean bandsTreeDataGridDownBandEnabledRule()
    • onDataSetsDataGridCreate

      @Subscribe("dataSetsDataGrid.create") protected void onDataSetsDataGridCreate(ActionPerformedEvent event)
    • dataSetsDataGridCreateEnabledRule

      @Install(to="dataSetsDataGrid.create", subject="enabledRule") protected boolean dataSetsDataGridCreateEnabledRule()
    • dataSetsDataGridRemoveEnabledRule

      @Install(to="dataSetsDataGrid.remove", subject="enabledRule") protected boolean dataSetsDataGridRemoveEnabledRule()
    • onBandsDcItemChange

      @Subscribe(id="bandsDc", target=DATA_CONTAINER) protected void onBandsDcItemChange(InstanceContainer.ItemChangeEvent<BandDefinition> event)
    • onBandsDcItemPropertyChange

      @Subscribe(id="bandsDc", target=DATA_CONTAINER) protected void onBandsDcItemPropertyChange(InstanceContainer.ItemPropertyChangeEvent<BandDefinition> event)
    • onBandsDcCollectionChange

      @Subscribe(id="bandsDc", target=DATA_CONTAINER) protected void onBandsDcCollectionChange(CollectionContainer.CollectionChangeEvent<BandDefinition> event)
    • onDataSetsDcItemChange

      @Subscribe(id="dataSetsDc", target=DATA_CONTAINER) protected void onDataSetsDcItemChange(InstanceContainer.ItemChangeEvent<DataSet> event)
    • onDataSetsDcItemPropertyChange

      @Subscribe(id="dataSetsDc", target=DATA_CONTAINER) protected void onDataSetsDcItemPropertyChange(InstanceContainer.ItemPropertyChangeEvent<DataSet> event)
    • onDataSetsDcCollectionChange

      @Subscribe(id="dataSetsDc", target=DATA_CONTAINER) protected void onDataSetsDcCollectionChange(CollectionContainer.CollectionChangeEvent<DataSet> event)
    • onTemplatesDcCollectionChange

      @Subscribe(id="templatesDc", target=DATA_CONTAINER) protected void onTemplatesDcCollectionChange(CollectionContainer.CollectionChangeEvent<ReportTemplate> event)
    • onParametersDcCollectionChange

      @Subscribe(id="parametersDc", target=DATA_CONTAINER) protected void onParametersDcCollectionChange(CollectionContainer.CollectionChangeEvent<ReportInputParameter> event)
    • onValidation

      @Subscribe protected void onValidation(StandardDetailView.ValidationEvent event)
    • markFieldAndPreventSave

      protected void markFieldAndPreventSave(TypedTextField<?> field, String messageBundleKey, StandardDetailView.BeforeSaveEvent event)
    • showNotificationIfAnotherTab

      protected void showNotificationIfAnotherTab(com.vaadin.flow.component.tabs.Tab tab, ValidationErrors errors, com.vaadin.flow.component.Component component, String messageBundleKey)
    • checkReportCode

      protected void checkReportCode(StandardDetailView.BeforeSaveEvent event)
    • onBeforeSave

      @Subscribe protected void onBeforeSave(StandardDetailView.BeforeSaveEvent event)
    • onMultiDataSetFieldComponentValueChange

      @Subscribe("multiDataSetField") protected void onMultiDataSetFieldComponentValueChange(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.checkbox.Checkbox,Boolean> event)
    • onOrientationFieldComponentValueChange

      @Subscribe("orientationField") protected void onOrientationFieldComponentValueChange(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<JmixSelect<Orientation>,Orientation> event)
    • onFetchPlanNameFieldComponentValueChange

      protected void onFetchPlanNameFieldComponentValueChange(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<JmixComboBox<String>,String> event)
    • onEntityParamFieldComponentValueChange

      protected void onEntityParamFieldComponentValueChange(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<JmixComboBox<String>,String> event)
    • onEntitiesParamFieldComponentValueChange

      protected void onEntitiesParamFieldComponentValueChange(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<JmixComboBox<String>,String> event)
    • onFetchPlanEditButtonClick

      @Subscribe("fetchPlanEditButton") protected void onFetchPlanEditButtonClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event)
    • findMetaClassByAlias

      protected @Nullable MetaClass findMetaClassByAlias(DataSet dataSet)
    • findMetaClassByDataSetEntityAlias

      public @Nullable MetaClass findMetaClassByDataSetEntityAlias(String alias, DataSetType dataSetType, List<ReportInputParameter> reportInputParameters)
    • suitableByDataSetType

      protected boolean suitableByDataSetType(DataSetType dataSetType, boolean isCollectionAlias, ParameterType type)
    • dataSetToReportRegion

      protected @Nullable ReportRegion dataSetToReportRegion(DataSet dataSet, EntityTree entityTree)
    • reportRegionToFetchPlan

      protected FetchPlan reportRegionToFetchPlan(EntityTree entityTree, ReportRegion reportRegion)
    • findSubFetchPlanByCollectionPropertyName

      public @Nullable FetchPlan findSubFetchPlanByCollectionPropertyName(@Nullable FetchPlan fetchPlan, String propertyName)
    • getNameForEntityParameter

      protected @Nullable String getNameForEntityParameter(DataSet dataSet)
    • setupReportXml

      protected void setupReportXml()
    • saveDelegate

      @Install(target=DATA_CONTEXT) protected Set<Object> saveDelegate(SaveContext saveContext)
    • onRunAction

      @Subscribe("runAction") protected void onRunAction(ActionPerformedEvent event)
    • validateTemplate

      protected void validateTemplate(ValidationErrors validationErrors)
    • validateBands

      protected void validateBands(ValidationErrors validationErrors)
    • checkForNameDuplication

      protected void checkForNameDuplication(ValidationErrors errors, com.google.common.collect.Multimap<String,BandDefinition> names)
    • validateBand

      protected void validateBand(ValidationErrors errors, BandDefinition band, com.google.common.collect.Multimap<String,BandDefinition> names)
    • validateInputOutputFormats

      protected boolean validateInputOutputFormats()
    • createRootBandDefinition

      protected BandDefinition createRootBandDefinition(Report report)
    • getDefaultDataSetName

      protected String getDefaultDataSetName(BandDefinition band)
    • isUpdatePermitted

      protected boolean isUpdatePermitted()
    • orderBandDefinitions

      protected void orderBandDefinitions(BandDefinition parent)
    • sortBandDefinitionsByPosition

      public void sortBandDefinitionsByPosition()
    • isUpBandButtonEnabled

      protected boolean isUpBandButtonEnabled()
    • isDownBandButtonEnabled

      protected boolean isDownBandButtonEnabled()
    • refreshBandActionStates

      protected void refreshBandActionStates()
    • refreshDataSetsActionStates

      protected void refreshDataSetsActionStates()
    • updateBandFieldRequiredIndicators

      protected void updateBandFieldRequiredIndicators(@Nullable BandDefinition item)
    • updateBandFieldsAvailability

      protected void updateBandFieldsAvailability(@Nullable BandDefinition item)
    • selectFirstDataSet

      protected void selectFirstDataSet()
    • initDataSetsDataGrid

      protected void initDataSetsDataGrid()
    • initBandsTreeDataGrid

      protected void initBandsTreeDataGrid()
    • dataSetTypeColumnValueProvider

      protected com.vaadin.flow.component.Component dataSetTypeColumnValueProvider(DataSet item)
    • getDataSetTypeOptions

      protected List<DataSetType> getDataSetTypeOptions()
    • updateDataSetsLayout

      protected void updateDataSetsLayout(boolean isMultiDataSet)
    • isChildOrEqual

      protected boolean isChildOrEqual(BandDefinition definition, @Nullable BandDefinition child)
    • applyVisibilityRules

      protected void applyVisibilityRules(DataSet item)
    • applyVisibilityRulesForType

      protected void applyVisibilityRulesForType(DataSet dataSet)
    • updateFetchPlanNameFieldItems

      protected void updateFetchPlanNameFieldItems(@Nullable ReportInputParameter reportInputParameter)
    • findParameterByAlias

      protected @Nullable ReportInputParameter findParameterByAlias(String alias)
    • hideAllDataSetEditComponents

      protected void hideAllDataSetEditComponents()
    • applyVisibilityRulesForEntityType

      protected void applyVisibilityRulesForEntityType(DataSet item)
    • initJsonDataSetOptions

      protected void initJsonDataSetOptions(DataSet dataSet)
    • setJsonDataSetFieldsVisibility

      protected void setJsonDataSetFieldsVisibility(boolean visible)
    • initDataStoreField

      protected void initDataStoreField()
    • initEntitiesParamField

      protected void initEntitiesParamField()
    • onEntitiesParamFieldHelperButtonClick

      @Subscribe("entitiesParamFieldHelperButton") protected void onEntitiesParamFieldHelperButtonClick(com.vaadin.flow.component.ClickEvent<JmixButton> event)
    • initEntityParamField

      protected void initEntityParamField()
    • onEntityParamFieldHelperButtonClick

      @Subscribe("entityParamFieldHelperButton") protected void onEntityParamFieldHelperButtonClick(com.vaadin.flow.component.ClickEvent<JmixButton> event)
    • initFetchPlanNameField

      protected void initFetchPlanNameField()
    • onDataSetScriptFullScreenBtnClick

      @Subscribe("dataSetScriptFullScreenBtn") protected void onDataSetScriptFullScreenBtnClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event)
    • onDataSetScriptCodeEditorHelpBtnClick

      @Subscribe("dataSetScriptCodeEditorHelpBtn") protected void onDataSetScriptCodeEditorHelpBtnClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event)
    • onJsonGroovyCodeEditorHelpBtnClick

      @Subscribe("jsonGroovyCodeEditorHelpBtn") protected void onJsonGroovyCodeEditorHelpBtnClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event)
    • onDataSetScriptFieldExpandIconClick

      protected void onDataSetScriptFieldExpandIconClick()
    • initJsonPathQueryTextAreaField

      protected void initJsonPathQueryTextAreaField()
    • onJsonPathQueryTextAreaFieldHelpIconClick

      protected void onJsonPathQueryTextAreaFieldHelpIconClick(com.vaadin.flow.component.ClickEvent<?> event)
    • onJsonGroovyCodeEditorFullScreenBtnClick

      @Subscribe("jsonGroovyCodeEditorFullScreenBtn") public void onJsonGroovyCodeEditorFullScreenBtnClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event)
    • getScriptEditorDialogCaption

      protected String getScriptEditorDialogCaption()
    • onJsonGroovyCodeEditorHelpIconClick

      protected void onJsonGroovyCodeEditorHelpIconClick()
    • setCommonEntityGridVisibility

      protected void setCommonEntityGridVisibility(boolean visibleEntityGrid, boolean visibleEntitiesGrid)
    • inputParametersDataGridUpEnabledRule

      @Install(to="inputParametersDataGrid.up", subject="enabledRule") protected boolean inputParametersDataGridUpEnabledRule()
    • oninputParametersDataGridUp

      @Subscribe("inputParametersDataGrid.up") protected void oninputParametersDataGridUp(ActionPerformedEvent event)
    • inputParametersDataGridDownEnabledRule

      @Install(to="inputParametersDataGrid.down", subject="enabledRule") protected boolean inputParametersDataGridDownEnabledRule()
    • oninputParametersDataGridDown

      @Subscribe("inputParametersDataGrid.down") protected void oninputParametersDataGridDown(ActionPerformedEvent event)
    • inputParametersDataGridCreateInitializer

      @Install(to="inputParametersDataGrid.createParameter", subject="initializer") protected void inputParametersDataGridCreateInitializer(ReportInputParameter reportInputParameter)
    • orderParameters

      protected void orderParameters()
    • replaceParameters

      protected void replaceParameters(boolean up)
    • valuesFormatsDataGridCreateInitializer

      @Install(to="valuesFormatsDataGrid.createValueFormat", subject="initializer") protected void valuesFormatsDataGridCreateInitializer(ReportValueFormat reportValueFormat)
    • initLocaleDetailReportTextField

      protected void initLocaleDetailReportTextField()
    • onLocaleHelpIconClick

      protected void onLocaleHelpIconClick(com.vaadin.flow.component.ClickEvent<?> event)
    • onValidationScriptFullScreenBtnClick

      @Subscribe("validationScriptFullScreenBtn") public void onValidationScriptFullScreenBtnClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event)
    • onValidationScriptCodeEditorHelpBtnClick

      @Subscribe("validationScriptCodeEditorHelpBtn") protected void onValidationScriptCodeEditorHelpBtnClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event)
    • onValidationScriptCodeEditorHelpBtnClick

      protected void onValidationScriptCodeEditorHelpBtnClick()
    • initScreenIdField

      protected void initScreenIdField()
    • initRoleField

      protected void initRoleField()
    • initSingleDataSetTypeField

      protected void initSingleDataSetTypeField()
    • initJsonSourceTypeField

      protected void initJsonSourceTypeField()
    • isReportsGroovyEnabled

      protected boolean isReportsGroovyEnabled()
    • updateGroovyEditorsState

      protected void updateGroovyEditorsState(@Nullable DataSet dataSet)
    • isGroovyDataSetLocked

      protected boolean isGroovyDataSetLocked(@Nullable DataSet dataSet)
    • isJsonGroovyEditorLocked

      protected boolean isJsonGroovyEditorLocked(@Nullable DataSet dataSet)
    • rolesDataGridExcludeEnabledRule

      @Install(to="rolesDataGrid.exclude", subject="enabledRule") protected boolean rolesDataGridExcludeEnabledRule()
    • rolesDataGridAddEnabledRule

      @Install(to="rolesDataGrid.add", subject="enabledRule") protected boolean rolesDataGridAddEnabledRule()
    • onrolesDataGridAdd

      @Subscribe("rolesDataGrid.add") public void onrolesDataGridAdd(ActionPerformedEvent event)
    • onscreenDataGridAdd

      @Subscribe("screenDataGrid.add") public void onscreenDataGridAdd(ActionPerformedEvent event)
    • ontemplatesDataGridCreate

      @Subscribe("templatesDataGrid.create") protected void ontemplatesDataGridCreate(ActionPerformedEvent event)
    • templatesDataGridCreateAfterSaveHandler

      protected void templatesDataGridCreateAfterSaveHandler(DialogWindow.AfterCloseEvent<ReportTemplateDetailView> event)
    • onTemplatesDataGridEdit

      @Subscribe("templatesDataGrid.edit") protected void onTemplatesDataGridEdit(ActionPerformedEvent event)
    • templatesDataGridCopyEnabledRule

      @Install(to="templatesDataGrid.copy", subject="enabledRule") protected boolean templatesDataGridCopyEnabledRule()
    • ontemplatesDataGridCopy

      @Subscribe("templatesDataGrid.copy") protected void ontemplatesDataGridCopy(ActionPerformedEvent event)
    • templatesDataGridDefaultEnabledRule

      @Install(to="templatesDataGrid.defaultAction", subject="enabledRule") protected boolean templatesDataGridDefaultEnabledRule()
    • ontemplatesDataGridDefault

      @Subscribe("templatesDataGrid.defaultAction") protected void ontemplatesDataGridDefault(ActionPerformedEvent event)
    • getCodeEditorMode

      protected CodeEditorMode getCodeEditorMode(DataSet dataSet)
    • setupEntityParamFieldValue

      protected void setupEntityParamFieldValue(DataSet dataSet)
    • setupEntitiesParamFieldValue

      protected void setupEntitiesParamFieldValue(DataSet dataSet)