Search in sources :

Example 1 with AddConditionScreen

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();
}
Also used : FilterCondition(io.jmix.ui.entity.FilterCondition) HeaderFilterCondition(io.jmix.ui.entity.HeaderFilterCondition) AddConditionScreen(io.jmix.ui.app.filter.condition.AddConditionScreen)

Aggregations

AddConditionScreen (io.jmix.ui.app.filter.condition.AddConditionScreen)1 FilterCondition (io.jmix.ui.entity.FilterCondition)1 HeaderFilterCondition (io.jmix.ui.entity.HeaderFilterCondition)1