- Type Parameters:
C
- the column identifier type
- All Known Subinterfaces:
EntityTableConditionModel<C>
public interface TableConditionModel<C>
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addChangeListener
(Runnable listener) void
clear()
Clears the search state of all the condition models, disables them and resets the operator toOperator.EQUAL
<T> ColumnConditionModel<? extends C,
T> conditionModel
(C columnIdentifier) The condition model associated withcolumnIdentifier
Map<C,
ColumnConditionModel<C, ?>> boolean
enabled()
boolean
void
removeChangeListener
(Runnable listener) static <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
ColumnConditionModel
for 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
columnIdentifier
is enabled
-
addChangeListener
- Parameters:
listener
- a listener notified each time the condition changes
-
removeChangeListener
- Parameters:
listener
- the listener to remove
-
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
-