- Type Parameters:
C- the column identifier type
public interface TableConditionModel<C>
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clears the search state of all the condition models, disables them and resets the operator toOperator.EQUALis.codion.common.event.EventObserver<?><T> ColumnConditionModel<C,T> conditionModel(C columnIdentifier) The condition model associated withcolumnIdentifierMap<C,ColumnConditionModel<C, ?>> booleanenabled()booleanstatic <C> TableConditionModel<C>tableConditionModel(Collection<ColumnConditionModel<C, ?>> conditionModels) Instantiates a newTableConditionModel
-
Method Details
-
conditionModels
Map<C,ColumnConditionModel<C, conditionModels()?>> - Returns:
- an unmodifiable map containing the condition models available in this table condition model, mapped to their respective column identifiers
-
conditionModel
The condition model associated withcolumnIdentifier- Type Parameters:
T- the column value type- Parameters:
columnIdentifier- the column identifier for which to retrieve theColumnConditionModel- Returns:
- the
ColumnConditionModelfor thecolumnIdentifier - Throws:
IllegalArgumentException- in case no condition model exists for the given columnIdentifier
-
clear
void clear()Clears the search state of all the condition models, disables them and resets the operator toOperator.EQUAL -
enabled
boolean enabled()- Returns:
- true if any of the underlying condition models are enabled
-
enabled
- Parameters:
columnIdentifier- the column identifier- Returns:
- true if the condition model behind column with
columnIdentifieris enabled
-
conditionChangedEvent
is.codion.common.event.EventObserver<?> conditionChangedEvent()- Returns:
- an observer notified each time the condition changes
-
tableConditionModel
static <C> TableConditionModel<C> tableConditionModel(Collection<ColumnConditionModel<C, ?>> conditionModels) Instantiates a newTableConditionModel- Type Parameters:
C- the column identifier type- Parameters:
conditionModels- the column condition models- Returns:
- a new
TableConditionModel
-