Class QueryStepFragment
java.lang.Object
io.jmix.ui.screen.ScreenFragment
io.jmix.reportsui.screen.report.wizard.step.StepFragment
io.jmix.reportsui.screen.report.wizard.step.QueryStepFragment
- All Implemented Interfaces:
Suggester
,FrameOwner
@UiController("report_QueryStep.fragment")
@UiDescriptor("query-step-fragment.xml")
public class QueryStepFragment
extends StepFragment
implements Suggester
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.ui.screen.ScreenFragment
ScreenFragment.AfterInitEvent, ScreenFragment.AttachEvent, ScreenFragment.DetachEvent, ScreenFragment.InitEvent
-
Field Summary
Modifier and TypeFieldDescriptionprotected CurrentAuthentication
protected Dialogs
protected FormatStringsRegistry
protected JpqlUiSuggestionProvider
protected Report
protected com.haulmont.yarg.util.converter.ObjectToStringConverter
protected CollectionPropertyContainer<QueryParameter>
protected QueryTransformerFactory
protected boolean
protected InstanceContainer<ReportData>
protected SourceCodeEditor
protected ReportsClientProperties
protected UiReportRunner
Fields inherited from class io.jmix.reportsui.screen.report.wizard.step.StepFragment
messages, messageTools, metadata, validateBeforeNext, validateBeforePrev
Fields inherited from interface io.jmix.ui.screen.FrameOwner
NO_OPTIONS, WINDOW_CLOSE_ACTION, WINDOW_COMMIT_AND_CLOSE_ACTION, WINDOW_DISCARD_AND_CLOSE_ACTION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Entry point for adding functionality before showing the fragmentprotected void
Sets the caption for the wizard screenSets the description for the wizard screengetSuggestions
(AutoCompleteSupport source, String text, int cursorPosition) protected void
void
onInit
(ScreenFragment.InitEvent event) void
onRegionPropertiesDcCollectionChange
(CollectionContainer.CollectionChangeEvent<RegionProperty> event) void
void
void
onRunBtnClick
(Button.ClickEvent event) protected void
reportParameterTableCreateAfterCommitHandler
(QueryParameter queryParameter) protected Object
reportParameterTableDefaultStringValueProvider
(QueryParameter queryParameter) protected void
reportParameterTableEditAfterCommitHandler
(QueryParameter queryParameter) protected void
setDefaultValue
(QueryParameter queryParameter) Methods inherited from class io.jmix.reportsui.screen.report.wizard.step.StepFragment
afterShow, beforeHide, getDefaultRequiredMessage, initFragment, isValidateBeforeNext, isValidateBeforePrev, validateFragment
Methods inherited from class io.jmix.ui.screen.ScreenFragment
addAfterInitListener, addAttachEventListener, addDetachEventListener, addInitListener, fireEvent, getApplicationContext, getEventHub, getExtensions, getFragment, getHostController, getHostScreen, getId, getScreenData, getUiEventListeners, init, setApplicationContext, setExtensions, setFragment, setHostController, setId, setScreenData, setUiEventListeners
-
Field Details
-
reportDataDc
-
queryParametersDc
-
reportQueryCodeEditor
-
dialogs
-
queryTransformerFactory
-
jpqlUiSuggestionProvider
-
lastGeneratedTmpReport
-
objectToStringConverter
@Autowired protected com.haulmont.yarg.util.converter.ObjectToStringConverter objectToStringConverter -
uiReportRunner
-
reportsClientProperties
-
formatStringsRegistry
-
currentAuthentication
-
regenerateQuery
protected boolean regenerateQuery
-
-
Constructor Details
-
QueryStepFragment
public QueryStepFragment()
-
-
Method Details
-
onInit
-
onReportParameterTableGenerate
@Subscribe("reportParameterTable.generate") public void onReportParameterTableGenerate(Action.ActionPerformedEvent event) -
onReportRegionsDcCollectionChange
@Subscribe(id="reportRegionsDc", target=DATA_CONTAINER) public void onReportRegionsDcCollectionChange(CollectionContainer.CollectionChangeEvent<ReportRegion> event) -
onRegionPropertiesDcCollectionChange
@Subscribe(id="regionPropertiesDc", target=DATA_CONTAINER) public void onRegionPropertiesDcCollectionChange(CollectionContainer.CollectionChangeEvent<RegionProperty> event) -
onRunBtnClick
-
generateQueryParameters
protected void generateQueryParameters() -
initQueryReportSourceCode
protected void initQueryReportSourceCode() -
getCaption
Description copied from class:StepFragment
Sets the caption for the wizard screen- Specified by:
getCaption
in classStepFragment
- Returns:
- caption
-
getDescription
Description copied from class:StepFragment
Sets the description for the wizard screen- Specified by:
getDescription
in classStepFragment
- Returns:
- description
-
beforeShow
public void beforeShow()Description copied from class:StepFragment
Entry point for adding functionality before showing the fragment- Overrides:
beforeShow
in classStepFragment
-
getSuggestions
- Specified by:
getSuggestions
in interfaceSuggester
-
reportParameterTableDefaultStringValueProvider
@Install(to="reportParameterTable.defaultValueString", subject="valueProvider") protected Object reportParameterTableDefaultStringValueProvider(QueryParameter queryParameter) -
reportParameterTableEditAfterCommitHandler
@Install(to="reportParameterTable.edit", subject="afterCommitHandler") protected void reportParameterTableEditAfterCommitHandler(QueryParameter queryParameter) -
reportParameterTableCreateAfterCommitHandler
@Install(to="reportParameterTable.create", subject="afterCommitHandler") protected void reportParameterTableCreateAfterCommitHandler(QueryParameter queryParameter) -
setDefaultValue
-