use of io.jmix.ui.app.filter.condition.AddConditionScreen in project jmix by jmix-framework.
the class FilterAddConditionAction method openAddConditionScreen.
protected void openAddConditionScreen(List<FilterCondition> filterConditions) {
if (filter.getFrame() == null) {
throw new IllegalStateException("Filter component is not attached to the Frame");
}
AddConditionScreen addConditionScreen = screenBuilders.lookup(FilterCondition.class, filter.getFrame().getFrameOwner()).withOpenMode(OpenMode.DIALOG).withScreenClass(AddConditionScreen.class).withSelectValidator(selectValidator).withSelectHandler(selectHandler).build();
addConditionScreen.setConditions(filterConditions);
addConditionScreen.setCurrentFilterConfiguration(filter.getCurrentConfiguration());
addConditionScreen.show();
}
Aggregations