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
FieldsModifier and TypeFieldDescriptionprotected CurrentAuthenticationprotected Dialogsprotected FormatStringsRegistryprotected JpqlUiSuggestionProviderprotected Reportprotected com.haulmont.yarg.util.converter.ObjectToStringConverterprotected CollectionPropertyContainer<QueryParameter>protected QueryTransformerFactoryprotected booleanprotected InstanceContainer<ReportData>protected SourceCodeEditorprotected ReportsClientPropertiesprotected UiReportRunnerFields inherited from class io.jmix.reportsui.screen.report.wizard.step.StepFragment
messageBundle, messages, messageTools, metadata, validateBeforeNext, validateBeforePrevFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidEntry point for adding functionality before showing the fragmentprotected voidSets the caption for the wizard screenSets the description for the wizard screengetSuggestions(AutoCompleteSupport source, String text, int cursorPosition) protected voidvoidonInit(ScreenFragment.InitEvent event) voidonRegionPropertiesDcCollectionChange(CollectionContainer.CollectionChangeEvent<RegionProperty> event) voidvoidvoidonRunBtnClick(Button.ClickEvent event) protected voidreportParameterTableCreateAfterCommitHandler(QueryParameter queryParameter) protected ObjectreportParameterTableDefaultStringValueProvider(QueryParameter queryParameter) protected voidreportParameterTableEditAfterCommitHandler(QueryParameter queryParameter) protected voidsetDefaultValue(QueryParameter queryParameter) Methods inherited from class io.jmix.reportsui.screen.report.wizard.step.StepFragment
afterShow, beforeHide, getDefaultRequiredMessage, initFragment, isValidateBeforeNext, isValidateBeforePrev, validateFragmentMethods 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:StepFragmentSets the caption for the wizard screen- Specified by:
getCaptionin classStepFragment- Returns:
- caption
-
getDescription
Description copied from class:StepFragmentSets the description for the wizard screen- Specified by:
getDescriptionin classStepFragment- Returns:
- description
-
beforeShow
public void beforeShow()Description copied from class:StepFragmentEntry point for adding functionality before showing the fragment- Overrides:
beforeShowin classStepFragment
-
getSuggestions
- Specified by:
getSuggestionsin 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
-