C
- the type used to identify columnsT
- the column value typepublic interface ColumnConditionModel<C,T>
ColumnConditionModel.Builder
via builder(Object, Class)
.Modifier and Type | Interface and Description |
---|---|
static class |
ColumnConditionModel.AutomaticWildcard
The possible automatic wildcard types
|
static interface |
ColumnConditionModel.Builder<C,T>
Builds a
ColumnConditionModel instance. |
Modifier and Type | Field and Description |
---|---|
static PropertyValue<ColumnConditionModel.AutomaticWildcard> |
AUTOMATIC_WILDCARD
Specifies whether wildcards are automatically added to string conditions by default
Value type: ColumnConditionModel.AutomaticWildcard Default value: ColumnConditionModel.AutomaticWildcard.NONE |
static PropertyValue<Boolean> |
CASE_SENSITIVE
Specifies whether string based conditions are case-sensitive or not by default
Value type: Boolean Default value: true |
static final PropertyValue<ColumnConditionModel.AutomaticWildcard> AUTOMATIC_WILDCARD
ColumnConditionModel.AutomaticWildcard
ColumnConditionModel.AutomaticWildcard.NONE
static final PropertyValue<Boolean> CASE_SENSITIVE
C columnIdentifier()
State caseSensitiveState()
Format format()
String dateTimePattern()
Value<ColumnConditionModel.AutomaticWildcard> automaticWildcardValue()
Operator.EQUAL
and Operator.NOT_EQUAL
State autoEnableState()
State
controlling whether this model is enabled automatically when a condition value is specifiedvoid setLocked(boolean locked)
locked
- true to lock this model, false to unlockboolean isLocked()
void setEqualValue(T value)
Operator.EQUAL
is enabled.value
- the value to use as conditionT getEqualValue()
void setEqualValues(Collection<T> values)
values
- the values to setCollection<T> getEqualValues()
void setUpperBound(T upper)
upper
- the new upper boundT getUpperBound()
void setLowerBound(T value)
value
- the lower boundT getLowerBound()
Operator getOperator()
void setOperator(Operator operator)
operator
- the conditional operatorIllegalArgumentException
- in case the given operator is not available in this condition modelchar wildcard()
boolean isEnabled()
void setEnabled(boolean enabled)
enabled
- true to enable, false to disablevoid clearCondition()
Operator.EQUAL
ValueSet<T> equalValueSet()
Value<T> upperBoundValue()
Value<T> lowerBoundValue()
StateObserver lockedObserver()
State enabledState()
boolean accepts(Comparable<T> columnValue)
columnValue
- the column valuevoid addEnabledListener(EventListener listener)
listener
- a listener to be notified each time the enabled state changesvoid removeEnabledListener(EventListener listener)
listener
- the listener to removevoid addOperatorListener(EventDataListener<Operator> listener)
listener
- a listener to be notified each time the operator changesvoid removeOperatorListener(EventDataListener<Operator> listener)
listener
- the listener to removevoid addEqualsValueListener(EventListener listener)
listener
- a listener to be notified each time the lower bound changesvoid removeEqualsValueListener(EventListener listener)
listener
- the listener to removevoid addLowerBoundListener(EventListener listener)
listener
- a listener to be notified each time the lower bound changesvoid removeLowerBoundListener(EventListener listener)
listener
- the listener to removevoid addUpperBoundListener(EventListener listener)
listener
- a listener to be notified each time the upper bound changesvoid removeUpperBoundListener(EventListener listener)
listener
- the listener to removevoid addClearedListener(EventListener listener)
listener
- a listener to be notified each time the model is clearedvoid removeClearedListener(EventListener listener)
listener
- the listener to removevoid addConditionChangedListener(EventListener listener)
listener
- a listener to be notified each time the condition state changesvoid removeConditionChangedListener(EventListener listener)
listener
- the listener to removestatic <C,T> ColumnConditionModel.Builder<C,T> builder(C columnIdentifier, Class<T> columnClass)
ColumnConditionModel.Builder
instance.C
- the column identifier typeT
- the column value typecolumnIdentifier
- the column identifiercolumnClass
- the column classColumnConditionModel.Builder
instance