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 Summary
Nested classes/interfaces inherited from class io.jmix.flowui.view.View
View.AfterCloseEvent, View.BeforeCloseEvent, View.BeforeShowEvent, View.InitEvent, View.QueryParametersChangeEvent, View.ReadyEvent -
Field Summary
FieldsModifier 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 JmixComboBoxprotected booleanprotected booleanprotected ExtendedEntitiesprotected FormatStringsRegistryprotected List<com.vaadin.flow.component.orderedlayout.VerticalLayout>protected JmixObjectToStringConverterprotected 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 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 Summary
Constructors -
Method Summary
Modifier 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 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) protected voidvoidvoidprotected voidvoidonRegionPropertiesDcCollectionChange(CollectionContainer.CollectionChangeEvent<RegionProperty> 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.StandardView
initContentMethods inherited from class io.jmix.flowui.view.View
addAfterCloseListener, 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, setApplicationContext, setId, setMeterRegistry, setPreventBrowserTabClosing, setViewActions, setViewData, setViewFacets, unregisterBackNavigationMethods inherited from class com.vaadin.flow.component.Composite
getChildren, getContent, getElementMethods inherited from class com.vaadin.flow.component.Component
addListener, 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.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Field Details
-
MAX_ATTRS_BTN_CAPTION_WIDTH
protected 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
-
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
-
currentFragmentIdx
protected int currentFragmentIdx -
regenerateQuery
protected boolean regenerateQuery -
needUpdateEntityModel
protected boolean needUpdateEntityModel -
entityTreeHasSimpleAttrs
protected boolean entityTreeHasSimpleAttrs -
entityTreeHasCollections
protected boolean entityTreeHasCollections -
fragmentsList
-
fragmentDescriptionMap
-
-
Constructor Details
-
ReportWizardCreatorView
public ReportWizardCreatorView()
-
-
Method Details
-
onInit
-
initItem
protected void initItem() -
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
-
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
-
getItem
-
onBeforeClose
-
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
-
updateReportOutputName
-
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
-
getAvailableTemplateFormats
-
getAvailableEntities
-
clearQuery
protected void clearQuery() -
setEntityTreeHasCollections
public void setEntityTreeHasCollections(boolean entityTreeHasCollections) -
setEntityTreeHasSimpleAttrs
public void setEntityTreeHasSimpleAttrs(boolean entityTreeHasSimpleAttrs) -
getReportTypeGenerate
-
onRegionDataGridRemoveItemAction
@Subscribe("regionDataGrid.remove") public void onRegionDataGridRemoveItemAction(ActionPerformedEvent event) -
onRegionDataGridEditItemAction
@Subscribe("regionDataGrid.edit") public void onRegionDataGridEditItemAction(ActionPerformedEvent event) -
regionDataGridUpEnabledRule
-
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
-
showAddRegion
protected void showAddRegion() -
openTabulatedRegionEditor
-
openRegionEditorOnlyWithNestedCollections
-
openRegionEditor
-
showRegionEditor
protected void showRegionEditor(ReportRegion item, EntityTreeNode rootEntity, boolean scalarOnly, boolean collectionsOnly, boolean persistentOnly) -
normalizeRegionPropertiesOrderNum
protected void normalizeRegionPropertiesOrderNum() -
onRegionDataGridUp
-
onRegionDataGridDown
-
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
-
generateOutputFileName
protected String generateOutputFileName(String fileExtension, ReportTypeGenerate reportTypeGenerate) -
onBeforeShow
-
initRegionsDataGrid
protected void initRegionsDataGrid() -
updateDownloadTemplateFile
public void updateDownloadTemplateFile() -
generateTemplateFileName
-
onReportParameterDataGridGenerate
@Subscribe("reportParameterDataGrid.generate") public void onReportParameterDataGridGenerate(ActionPerformedEvent event) -
generateQueryParameters
protected 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) -
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
-
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
-
initRegionDataGrid
protected void initRegionDataGrid() -
initReportParameterDataGrid
protected void initReportParameterDataGrid()
-