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,- FragmentOwner,- 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:
- 
Nested Class SummaryNested classes/interfaces inherited from class io.jmix.flowui.view.ViewView.AfterCloseEvent, View.BeforeCloseEvent, View.BeforeShowEvent, View.InitEvent, View.QueryParametersChangeEvent, View.ReadyEvent
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected JmixButtonprotected JmixButtonprotected JmixButtonprotected JmixButtonprotected com.vaadin.flow.component.orderedlayout.HorizontalLayoutprotected CorePropertiesprotected CurrentAuthenticationprotected intprotected DataContextprotected com.vaadin.flow.component.orderedlayout.VerticalLayoutprotected Dialogsprotected DialogWindowsprotected Downloaderprotected JmixButtonprotected JmixComboBox<MetaClass>protected booleanprotected booleanprotected ExtendedEntitiesprotected FormatStringsRegistryprotected List<com.vaadin.flow.component.orderedlayout.VerticalLayout>protected JmixObjectToStringConverterprotected Reportprotected static final intprotected MessageBundleprotected Messagesprotected MessageToolsprotected Metadataprotected MetadataToolsprotected JmixButtonprotected JmixButtonprotected booleanprotected JmixButtonprotected Notificationsprotected JmixComboBox<ReportOutputType>protected TypedTextField<String>protected OutputFormatToolsprotected CollectionPropertyContainer<QueryParameter>protected QueryTransformerFactoryprotected com.vaadin.flow.component.orderedlayout.VerticalLayoutprotected booleanprotected DataGrid<ReportRegion>protected JmixButtonprotected com.vaadin.flow.component.orderedlayout.VerticalLayoutprotected InstanceContainer<ReportData>protected DataGrid<QueryParameter>protected CodeEditorprotected CollectionPropertyContainer<ReportRegion>protected ReportsClientPropertiesprotected ReportScriptEditorprotected JmixRadioButtonGroup<ReportTypeGenerate>protected ReportWizardprotected JmixButtonprotected com.vaadin.flow.component.orderedlayout.VerticalLayoutprotected JmixComboBox<TemplateFileType>protected UiPropertiesprotected UiReportRunnerprotected ViewValidationprotected com.vaadin.flow.component.html.Span
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidprotected voidbuildReport(boolean temporary) protected voidprotected voidprotected QueryParametercreateQueryParameter(String name) protected ReportRegioncreateReportRegion(boolean tabulated) protected voidprotected StringgenerateOutputFileName(String fileExtension, ReportTypeGenerate reportTypeGenerate) protected voidgenerateTemplateFileName(String fileExtension) protected Map<TemplateFileType,String> protected com.vaadin.flow.component.orderedlayout.VerticalLayoutprotected List<com.vaadin.flow.component.orderedlayout.VerticalLayout>getItem()protected ReportTypeGenerateprotected Stringprotected voidvoidprotected voidprotected voidinitItem()protected voidprotected voidprotected voidprotected voidbooleanprotected StringitemLabelGenerator(ReportTypeGenerate reportTypeGenerate) protected voidprotected voidvoidonAddSimpleRegionBtnClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event) voidonAddTabulatedRegionBtnClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event) voidonBackBtnClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event) voidvoidonBeforeShow(View.BeforeShowEvent event) voidonDownloadTemplateFileClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event) voidonEntityFieldComponentValueChange(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<JmixComboBox, MetaClass> event) protected voidonFullScreenTransformationBtnClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.icon.Icon> event) voidonInit(View.InitEvent event) voidonNextBtnClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event) voidonOutputFileFormatComponentValueChange(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<JmixComboBox<ReportOutputType>, ReportOutputType> event) protected voidonQueryCodeEditorHelpIconClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.icon.Icon> event) voidonQueryRunBtnClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event) protected voidvoidvoidprotected voidonRegionDataGridSelection(com.vaadin.flow.data.selection.SelectionEvent<DataGrid<ReportRegion>, ReportRegion> event) protected voidvoidonRegionPropertiesDcCollectionChange(CollectionContainer.CollectionChangeEvent<RegionProperty> event) voidonRegionsRunBtnClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event) voidvoidonReportNameFieldTypedValueChange(SupportsTypedValue.TypedValueChangeEvent<TypedTextField<String>, String> event) voidvoidvoidonReportTypeGenerateFieldComponentValueChange(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<JmixRadioButtonGroup, Object> event) voidonSaveBtnClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event) voidonTemplateFileTypeFieldComponentValueChange(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<JmixComboBox<TemplateFileType>, TemplateFileType> event) protected voidprotected voidopenRegionEditor(ReportRegion item) protected voidprotected voidprotected voidprotected booleanprotected booleanprotected voidreportParameterDataGridCreateAfterSaveHandler(QueryParameter queryParameter) protected voidreportParameterDataGridEditAfterSaveHandler(QueryParameter queryParameter) protected voidsetDefaultValue(QueryParameter queryParameter) voidsetEntityTreeHasCollections(boolean entityTreeHasCollections) voidsetEntityTreeHasSimpleAttrs(boolean entityTreeHasSimpleAttrs) voidsetNeedUpdateEntityModel(boolean needUpdateEntityModel) protected voidsetReportName(ReportData reportData, MetaClass prevValue, MetaClass value) protected voidprotected voidshowRegionEditor(ReportRegion item, EntityTreeNode rootEntity, boolean scalarOnly, boolean collectionsOnly, boolean persistentOnly) protected voidswapItems(boolean up) protected voidvoidprotected voidprotected voidprotected voidprotected voidupdateReportEntity(MetaClass prevValue, MetaClass value, ReportData reportData) protected voidupdateReportOutputName(ReportData reportData, MetaClass value) protected voidupdateReportTypeGenerate(ReportData reportData, ReportTypeGenerate reportTypeGenerate) voidprotected booleanMethods inherited from class io.jmix.flowui.view.StandardViewinitContentMethods inherited from class io.jmix.flowui.view.ViewaddAfterCloseListener, addBeforeCloseListener, addBeforeShowListener, addInitListener, addQueryParametersChangeListener, addReadyListener, afterNavigation, beforeEnter, beforeLeave, close, close, closeWithDefaultAction, getApplicationContext, getId, getPageTitle, getReturnParameters, getViewActions, getViewAttributes, getViewData, getViewFacets, getViewSupport, isPreventBrowserTabClosing, onAttach, onDetach, onDetachInternal, removeApplicationListeners, removeViewAttributes, setAfterNavigationHandler, setApplicationContext, setId, setMeterRegistry, setPreventBrowserTabClosing, setViewActions, setViewData, setViewFacets, unregisterBackNavigationMethods inherited from class com.vaadin.flow.component.CompositegetChildren, getContent, getElementMethods inherited from class com.vaadin.flow.component.ComponentaddListener, findAncestor, fireEvent, from, get, getEventBus, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setVisibleMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifieraddAttachListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifieraddDetachListenerMethods inherited from interface com.vaadin.flow.component.HasStyleaddClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
- 
Field Details- 
MAX_ATTRS_BTN_CAPTION_WIDTHprotected static final int MAX_ATTRS_BTN_CAPTION_WIDTH- See Also:
 
- 
reportDataDc
- 
dataContext
- 
templateFileTypeField
- 
outputFileFormat
- 
outputFileName
- 
downloadTemplateFileBtn
- 
moveUpBtn
- 
moveDownBtn
- 
detailsVBox
- 
saveVBox
- 
queryVBox
- 
regionDataGrid
- 
reportParameterDataGrid
- 
buttonsBox
- 
addRegionDisabledBtn
- 
reportTypeGenerateField
- 
reportQueryCodeEditor
- 
wizardDescriptionSpan
- 
queryParametersDc
- 
regionsRunBtn
- 
regionsVBox
- 
addTabulatedRegionBtn
- 
addSimpleRegionBtn
- 
reportRegionsDc
- 
nextBtn
- 
backBtn
- 
saveBtn
- 
entityField
- 
messages
- 
messageBundle
- 
dialogs
- 
notifications
- 
messageTools
- 
extendedEntities
- 
metadata
- 
reportWizardService
- 
uiProperties
- 
coreProperties
- 
queryTransformerFactory
- 
downloader
- 
outputFormatTools
- 
jmixObjectToStringConverter
- 
reportScriptEditor
- 
uiReportRunner
- 
reportsClientProperties
- 
metadataTools
- 
dialogWindows
- 
formatStringsRegistry
- 
currentAuthentication
- 
viewValidation
- 
currentFragmentIdxprotected int currentFragmentIdx
- 
regenerateQueryprotected boolean regenerateQuery
- 
needUpdateEntityModelprotected boolean needUpdateEntityModel
- 
entityTreeHasSimpleAttrsprotected boolean entityTreeHasSimpleAttrs
- 
entityTreeHasCollectionsprotected boolean entityTreeHasCollections
- 
lastGeneratedTmpReport
- 
fragmentsList
- 
fragmentDescriptionMap
 
- 
- 
Constructor Details- 
ReportWizardCreatorViewpublic ReportWizardCreatorView()
 
- 
- 
Method Details- 
onInit
- 
initItemprotected void initItem()
- 
getFragmentsList
- 
initFragmentsprotected void initFragments()
- 
onReportNameFieldTypedValueChange@Subscribe("reportNameField") public void onReportNameFieldTypedValueChange(SupportsTypedValue.TypedValueChangeEvent<TypedTextField<String>, String> event) 
- 
beforeShowFragmentsprotected void beforeShowFragments()
- 
addRegionDescriptionpublic void addRegionDescription()
- 
getRegionDescription
- 
initFragmentDescriptionpublic void initFragmentDescription()
- 
updateWizardDescriptionpublic 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) 
- 
updateFragmentChangeButtonsprotected void updateFragmentChangeButtons()
- 
nextFragmentprotected void nextFragment()
- 
prevFragmentprotected void prevFragment()
- 
isNeedUpdateEntityModelpublic boolean isNeedUpdateEntityModel()
- 
setNeedUpdateEntityModelpublic void setNeedUpdateEntityModel(boolean needUpdateEntityModel) 
- 
getCurrentFragmentprotected com.vaadin.flow.component.orderedlayout.VerticalLayout getCurrentFragment()
- 
validateFragmentprotected boolean validateFragment()
- 
onSaveBtnClick@Subscribe("saveBtn") public void onSaveBtnClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event) 
- 
convertToReportAndForceCloseWizardprotected void convertToReportAndForceCloseWizard()
- 
buildReport
- 
getItem
- 
onBeforeClose
- 
initEntityLookupFieldprotected void initEntityLookupField()
- 
onReportTypeGenerateFieldComponentValueChange@Subscribe("reportTypeGenerateField") public void onReportTypeGenerateFieldComponentValueChange(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<JmixRadioButtonGroup, Object> event) 
- 
updateReportTypeGenerateprotected void updateReportTypeGenerate(ReportData reportData, @Nullable ReportTypeGenerate reportTypeGenerate) 
- 
onEntityFieldComponentValueChange@Subscribe("entityField") public void onEntityFieldComponentValueChange(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<JmixComboBox, MetaClass> event) 
- 
updateReportEntityprotected void updateReportEntity(@Nullable MetaClass prevValue, MetaClass value, ReportData reportData) 
- 
setReportName
- 
updateReportOutputName
- 
onTemplateFileTypeFieldComponentValueChange@Subscribe("templateFileTypeField") public void onTemplateFileTypeFieldComponentValueChange(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<JmixComboBox<TemplateFileType>, TemplateFileType> event) 
- 
initTemplateFormatLookupFieldprotected void initTemplateFormatLookupField()
- 
initReportTypeOptionGroupprotected void initReportTypeOptionGroup()
- 
itemLabelGenerator
- 
getAvailableTemplateFormats
- 
getAvailableEntities
- 
clearQueryprotected void clearQuery()
- 
setEntityTreeHasCollectionspublic void setEntityTreeHasCollections(boolean entityTreeHasCollections) 
- 
setEntityTreeHasSimpleAttrspublic void setEntityTreeHasSimpleAttrs(boolean entityTreeHasSimpleAttrs) 
- 
getReportTypeGenerate
- 
onRegionDataGridRemoveItemAction@Subscribe("regionDataGrid.remove") public void onRegionDataGridRemoveItemAction(ActionPerformedEvent event) 
- 
onRegionDataGridEditItemAction@Subscribe("regionDataGrid.edit") public void onRegionDataGridEditItemAction(ActionPerformedEvent event) 
- 
onRegionsRunBtnClick@Subscribe("regionsRunBtn") public void onRegionsRunBtnClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event) 
- 
regionDataGridUpEnabledRule
- 
regionDataGridDownEnabledRule
- 
editRegionprotected 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
- 
showAddRegionprotected void showAddRegion()
- 
openTabulatedRegionEditor
- 
openRegionEditorOnlyWithNestedCollections
- 
openRegionEditor
- 
showRegionEditorprotected void showRegionEditor(ReportRegion item, EntityTreeNode rootEntity, boolean scalarOnly, boolean collectionsOnly, boolean persistentOnly) 
- 
normalizeRegionPropertiesOrderNumprotected void normalizeRegionPropertiesOrderNum()
- 
onRegionDataGridSelection@Subscribe("regionDataGrid") protected void onRegionDataGridSelection(com.vaadin.flow.data.selection.SelectionEvent<DataGrid<ReportRegion>, ReportRegion> event) 
- 
onRegionDataGridUp
- 
onRegionDataGridDown
- 
swapItemsprotected void swapItems(boolean up) 
- 
updateRegionButtonsprotected void updateRegionButtons()
- 
onOutputFileFormatComponentValueChange@Subscribe("outputFileFormat") public void onOutputFileFormatComponentValueChange(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<JmixComboBox<ReportOutputType>, ReportOutputType> event) 
- 
updateCorrectReportOutputType
- 
generateOutputFileNameprotected String generateOutputFileName(String fileExtension, ReportTypeGenerate reportTypeGenerate) 
- 
onBeforeShow
- 
initRegionsDataGridprotected void initRegionsDataGrid()
- 
updateDownloadTemplateFilepublic void updateDownloadTemplateFile()
- 
generateTemplateFileName
- 
onReportParameterDataGridGenerate@Subscribe("reportParameterDataGrid.generate") public void onReportParameterDataGridGenerate(ActionPerformedEvent event) 
- 
generateQueryParametersprotected void generateQueryParameters()
- 
createQueryParameter
- 
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) 
- 
updateMoveButtonsprotected void updateMoveButtons()
- 
onRegionPropertiesDcCollectionChange@Subscribe(id="regionPropertiesDc", target=DATA_CONTAINER) public void onRegionPropertiesDcCollectionChange(CollectionContainer.CollectionChangeEvent<RegionProperty> event) 
- 
onQueryRunBtnClick@Subscribe("queryRunBtn") public void onQueryRunBtnClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> 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) 
- 
openCodeEditorHelpprotected void openCodeEditorHelp()
- 
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- Throws:
- ClassNotFoundException
 
- 
initReportParameterDataGridprotected void initReportParameterDataGrid()
 
-