@UiController(value="report_QueryStep.fragment") @UiDescriptor(value="query-step-fragment.xml") public class QueryStepFragment extends StepFragment implements io.jmix.ui.component.autocomplete.Suggester
Modifier and Type | Field and Description |
---|---|
protected io.jmix.core.security.CurrentAuthentication |
currentAuthentication |
protected io.jmix.ui.Dialogs |
dialogs |
protected io.jmix.core.metamodel.datatype.FormatStringsRegistry |
formatStringsRegistry |
protected io.jmix.ui.component.autocomplete.JpqlUiSuggestionProvider |
jpqlUiSuggestionProvider |
protected Report |
lastGeneratedTmpReport |
protected com.haulmont.yarg.util.converter.ObjectToStringConverter |
objectToStringConverter |
protected io.jmix.ui.model.CollectionPropertyContainer<QueryParameter> |
queryParametersDc |
protected io.jmix.data.QueryTransformerFactory |
queryTransformerFactory |
protected boolean |
regenerateQuery |
protected io.jmix.ui.model.InstanceContainer<ReportData> |
reportDataDc |
protected io.jmix.ui.component.SourceCodeEditor |
reportQueryCodeEditor |
protected ReportsClientProperties |
reportsClientProperties |
protected UiReportRunner |
uiReportRunner |
messages, messageTools, metadata, validateBeforeNext, validateBeforePrev
Constructor and Description |
---|
QueryStepFragment() |
Modifier and Type | Method and Description |
---|---|
void |
beforeShow()
Entry point for adding functionality before showing the fragment
|
protected void |
generateQueryParameters() |
java.lang.String |
getCaption()
Sets the caption for the wizard screen
|
java.lang.String |
getDescription()
Sets the description for the wizard screen
|
java.util.List<io.jmix.ui.component.autocomplete.Suggestion> |
getSuggestions(io.jmix.ui.component.autocomplete.AutoCompleteSupport source,
java.lang.String text,
int cursorPosition) |
protected void |
initQueryReportSourceCode() |
void |
onInit(io.jmix.ui.screen.ScreenFragment.InitEvent event) |
void |
onRegionPropertiesDcCollectionChange(io.jmix.ui.model.CollectionContainer.CollectionChangeEvent<RegionProperty> event) |
void |
onReportParameterTableGenerate(io.jmix.ui.action.Action.ActionPerformedEvent event) |
void |
onReportRegionsDcCollectionChange(io.jmix.ui.model.CollectionContainer.CollectionChangeEvent<ReportRegion> event) |
void |
onRunBtnClick(io.jmix.ui.component.Button.ClickEvent event) |
protected void |
reportParameterTableCreateAfterCommitHandler(QueryParameter queryParameter) |
protected java.lang.Object |
reportParameterTableDefaultStringValueProvider(QueryParameter queryParameter) |
protected void |
reportParameterTableEditAfterCommitHandler(QueryParameter queryParameter) |
protected void |
setDefaultValue(QueryParameter queryParameter) |
afterShow, beforeHide, getDefaultRequiredMessage, initFragment, isValidateBeforeNext, isValidateBeforePrev, validateFragment
addAfterInitListener, addAttachEventListener, addDetachEventListener, addInitListener, fireEvent, getApplicationContext, getEventHub, getExtensions, getFragment, getHostController, getHostScreen, getId, getScreenData, getUiEventListeners, init, setApplicationContext, setExtensions, setFragment, setHostController, setId, setScreenData, setUiEventListeners
@Autowired protected io.jmix.ui.model.InstanceContainer<ReportData> reportDataDc
@Autowired protected io.jmix.ui.model.CollectionPropertyContainer<QueryParameter> queryParametersDc
@Autowired protected io.jmix.ui.component.SourceCodeEditor reportQueryCodeEditor
@Autowired protected io.jmix.ui.Dialogs dialogs
@Autowired protected io.jmix.data.QueryTransformerFactory queryTransformerFactory
@Autowired protected io.jmix.ui.component.autocomplete.JpqlUiSuggestionProvider jpqlUiSuggestionProvider
protected Report lastGeneratedTmpReport
@Autowired protected com.haulmont.yarg.util.converter.ObjectToStringConverter objectToStringConverter
@Autowired protected UiReportRunner uiReportRunner
@Autowired protected ReportsClientProperties reportsClientProperties
@Autowired protected io.jmix.core.metamodel.datatype.FormatStringsRegistry formatStringsRegistry
@Autowired protected io.jmix.core.security.CurrentAuthentication currentAuthentication
protected boolean regenerateQuery
@Subscribe public void onInit(io.jmix.ui.screen.ScreenFragment.InitEvent event)
@Subscribe(value="reportParameterTable.generate") public void onReportParameterTableGenerate(io.jmix.ui.action.Action.ActionPerformedEvent event)
@Subscribe(id="reportRegionsDc", target=DATA_CONTAINER) public void onReportRegionsDcCollectionChange(io.jmix.ui.model.CollectionContainer.CollectionChangeEvent<ReportRegion> event)
@Subscribe(id="regionPropertiesDc", target=DATA_CONTAINER) public void onRegionPropertiesDcCollectionChange(io.jmix.ui.model.CollectionContainer.CollectionChangeEvent<RegionProperty> event)
@Subscribe(value="runBtn") public void onRunBtnClick(io.jmix.ui.component.Button.ClickEvent event)
protected void generateQueryParameters()
protected void initQueryReportSourceCode()
public java.lang.String getCaption()
StepFragment
getCaption
in class StepFragment
public java.lang.String getDescription()
StepFragment
getDescription
in class StepFragment
public void beforeShow()
StepFragment
beforeShow
in class StepFragment
public java.util.List<io.jmix.ui.component.autocomplete.Suggestion> getSuggestions(io.jmix.ui.component.autocomplete.AutoCompleteSupport source, java.lang.String text, int cursorPosition)
getSuggestions
in interface io.jmix.ui.component.autocomplete.Suggester
@Install(to="reportParameterTable.defaultValueString", subject="valueProvider") protected java.lang.Object reportParameterTableDefaultStringValueProvider(QueryParameter queryParameter)
@Install(to="reportParameterTable.edit", subject="afterCommitHandler") protected void reportParameterTableEditAfterCommitHandler(QueryParameter queryParameter)
@Install(to="reportParameterTable.create", subject="afterCommitHandler") protected void reportParameterTableCreateAfterCommitHandler(QueryParameter queryParameter)
protected void setDefaultValue(QueryParameter queryParameter)