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:
-
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
Modifier and TypeFieldDescriptionprotected JmixButton
protected JmixButton
protected JmixButton
protected JmixButton
protected com.vaadin.flow.component.orderedlayout.HorizontalLayout
protected CoreProperties
protected CurrentAuthentication
protected int
protected DataContext
protected com.vaadin.flow.component.orderedlayout.VerticalLayout
protected Dialogs
protected DialogWindows
protected Downloader
protected JmixButton
protected JmixComboBox
protected boolean
protected boolean
protected ExtendedEntities
protected FormatStringsRegistry
protected List<com.vaadin.flow.component.orderedlayout.VerticalLayout>
protected JmixObjectToStringConverter
protected static final int
protected MessageBundle
protected Messages
protected MessageTools
protected Metadata
protected MetadataTools
protected JmixButton
protected JmixButton
protected boolean
protected JmixButton
protected Notifications
protected JmixComboBox<ReportOutputType>
protected TypedTextField<String>
protected OutputFormatTools
protected CollectionPropertyContainer<QueryParameter>
protected QueryTransformerFactory
protected com.vaadin.flow.component.orderedlayout.VerticalLayout
protected boolean
protected DataGrid<ReportRegion>
protected com.vaadin.flow.component.orderedlayout.VerticalLayout
protected InstanceContainer<ReportData>
protected DataGrid<QueryParameter>
protected CodeEditor
protected CollectionPropertyContainer<ReportRegion>
protected ReportsClientProperties
protected ReportScriptEditor
protected JmixRadioButtonGroup<ReportTypeGenerate>
protected ReportWizard
protected JmixButton
protected com.vaadin.flow.component.orderedlayout.VerticalLayout
protected JmixComboBox<TemplateFileType>
protected UiProperties
protected UiReportRunner
protected ViewValidation
protected com.vaadin.flow.component.html.Span
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
protected void
buildReport
(boolean temporary) protected void
protected void
protected QueryParameter
createQueryParameter
(String name) protected ReportRegion
createReportRegion
(boolean tabulated) protected void
protected String
generateOutputFileName
(String fileExtension, ReportTypeGenerate reportTypeGenerate) protected void
generateTemplateFileName
(String fileExtension) protected Map<TemplateFileType,
String> protected com.vaadin.flow.component.orderedlayout.VerticalLayout
protected List<com.vaadin.flow.component.orderedlayout.VerticalLayout>
getItem()
protected ReportTypeGenerate
protected String
protected void
void
protected void
protected void
initItem()
protected void
protected void
protected void
protected void
protected void
boolean
protected String
itemLabelGenerator
(ReportTypeGenerate reportTypeGenerate) protected void
protected void
void
onAddSimpleRegionBtnClick
(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event) void
onAddTabulatedRegionBtnClick
(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event) void
onBackBtnClick
(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event) void
void
onBeforeShow
(View.BeforeShowEvent event) void
onDownloadTemplateFileClick
(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event) void
onEntityFieldComponentValueChange
(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<JmixComboBox, MetaClass> event) protected void
onFullScreenTransformationBtnClick
(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.icon.Icon> event) void
onInit
(View.InitEvent event) void
onNextBtnClick
(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event) void
onOutputFileFormatComponentValueChange
(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<JmixComboBox<ReportOutputType>, ReportOutputType> event) protected void
onQueryCodeEditorHelpIconClick
(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.icon.Icon> event) protected void
void
void
protected void
void
onRegionPropertiesDcCollectionChange
(CollectionContainer.CollectionChangeEvent<RegionProperty> event) void
void
onReportNameFieldTypedValueChange
(SupportsTypedValue.TypedValueChangeEvent<TypedTextField<String>, String> event) void
void
void
onReportTypeGenerateFieldComponentValueChange
(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<JmixRadioButtonGroup, Object> event) void
onSaveBtnClick
(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event) void
onTemplateFileTypeFieldComponentValueChange
(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<JmixComboBox<TemplateFileType>, TemplateFileType> event) protected void
protected void
openRegionEditor
(ReportRegion item) protected void
protected void
protected void
protected boolean
protected boolean
protected void
reportParameterDataGridCreateAfterSaveHandler
(QueryParameter queryParameter) protected void
reportParameterDataGridEditAfterSaveHandler
(QueryParameter queryParameter) protected void
setDefaultValue
(QueryParameter queryParameter) void
setEntityTreeHasCollections
(boolean entityTreeHasCollections) void
setEntityTreeHasSimpleAttrs
(boolean entityTreeHasSimpleAttrs) void
setNeedUpdateEntityModel
(boolean needUpdateEntityModel) protected void
setReportName
(ReportData reportData, MetaClass prevValue, MetaClass value) protected void
protected void
showRegionEditor
(ReportRegion item, EntityTreeNode rootEntity, boolean scalarOnly, boolean collectionsOnly, boolean persistentOnly) protected void
swapItems
(boolean up) protected void
void
protected void
protected void
protected void
protected void
updateReportEntity
(MetaClass prevValue, MetaClass value, ReportData reportData) protected void
updateReportOutputName
(ReportData reportData, MetaClass value) protected void
updateReportTypeGenerate
(ReportData reportData, ReportTypeGenerate reportTypeGenerate) void
protected boolean
Methods inherited from class io.jmix.flowui.view.StandardView
initContent
Methods 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, setApplicationContext, setId, setMeterRegistry, setPreventBrowserTabClosing, setViewActions, setViewData, setViewFacets
Methods inherited from class com.vaadin.flow.component.Composite
getChildren, getContent, getElement
Methods 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, setVisible
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListener
Methods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListener
Methods 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()
-