K
- the type of objects used to identify columnspublic interface ColumnConditionModel<K>
Modifier and Type | Interface and Description |
---|---|
static class |
ColumnConditionModel.AutomaticWildcard
The possible automatic wildcard types
|
Modifier and Type | Field and Description |
---|---|
static PropertyValue<ColumnConditionModel.AutomaticWildcard> |
AUTOMATIC_WILDCARD
Specifies whether wildcards are automatically added to string conditions
Value type: ColumnConditionModel.AutomaticWildcard Default value: ColumnConditionModel.AutomaticWildcard.NONE |
static PropertyValue<java.lang.Boolean> |
CASE_SENSITIVE
Specifies whether string based conditions are case sensitive or not
Value type: Boolean
Default value: true |
Modifier and Type | Method and Description |
---|---|
void |
addClearedListener(EventListener listener) |
void |
addConditionStateListener(EventListener listener) |
void |
addConditionTypeListener(EventDataListener<ConditionType> listener) |
void |
addEnabledListener(EventListener listener) |
void |
addLowerBoundListener(EventListener listener) |
void |
addLowerBoundRequiredListener(EventListener listener) |
void |
addUpperBoundListener(EventListener listener) |
void |
clearCondition()
Disables and clears this condition model, that is, sets the upper and lower bounds to null
and the condition type to the default value
ConditionType.LIKE |
ColumnConditionModel.AutomaticWildcard |
getAutomaticWildcard() |
K |
getColumnIdentifier() |
ConditionType |
getConditionType() |
EventObserver<ConditionType> |
getConditionTypeObserver() |
java.lang.String |
getDateTimeFormatPattern() |
EventObserver<java.lang.Boolean> |
getEnabledObserver() |
java.text.Format |
getFormat() |
StateObserver |
getLockedObserver() |
java.lang.Object |
getLowerBound() |
Value |
getLowerBoundValue() |
java.lang.Class |
getTypeClass() |
java.lang.Object |
getUpperBound() |
Value |
getUpperBoundValue() |
boolean |
include(java.lang.Comparable comparable) |
boolean |
include(java.lang.Object object) |
boolean |
isAutoEnable() |
boolean |
isCaseSensitive() |
boolean |
isEnabled() |
boolean |
isLocked() |
boolean |
isLowerBoundRequired() |
void |
removeClearedListener(EventListener listener) |
void |
removeConditionStateListener(EventListener listener) |
void |
removeConditionTypeListener(EventDataListener listener) |
void |
removeEnabledListener(EventListener listener) |
void |
removeLowerBoundListener(EventListener listener) |
void |
removeLowerBoundRequiredListener(EventListener listener) |
void |
removeUpperBoundListener(EventListener listener) |
void |
setAutoEnable(boolean autoEnable)
If set, this model automatically enables itself when a condition is specified
|
void |
setAutomaticWildcard(ColumnConditionModel.AutomaticWildcard automaticWildcard)
Sets the automatic wildcard type.
|
void |
setCaseSensitive(boolean caseSensitive) |
void |
setConditionType(ConditionType conditionType) |
void |
setEnabled(boolean value) |
void |
setLikeValue(java.lang.Object value)
A shortcut method for setting the upper bound value, conditionType to LIKE
and enabling this model in case of a non-null value.
|
void |
setLocked(boolean value) |
void |
setLowerBound(java.lang.Object value) |
void |
setUpperBound(java.lang.Object upper) |
static final PropertyValue<ColumnConditionModel.AutomaticWildcard> AUTOMATIC_WILDCARD
ColumnConditionModel.AutomaticWildcard
ColumnConditionModel.AutomaticWildcard.NONE
static final PropertyValue<java.lang.Boolean> CASE_SENSITIVE
K getColumnIdentifier()
boolean isCaseSensitive()
void setCaseSensitive(boolean caseSensitive)
caseSensitive
- true if this condition model should be case sensitive when working with stringsjava.text.Format getFormat()
java.lang.String getDateTimeFormatPattern()
boolean include(java.lang.Object object)
object
- the objectvoid setAutomaticWildcard(ColumnConditionModel.AutomaticWildcard automaticWildcard)
ConditionType.LIKE
and ConditionType.NOT_LIKE
automaticWildcard
- the automatic wildcard type to useColumnConditionModel.AutomaticWildcard getAutomaticWildcard()
boolean include(java.lang.Comparable comparable)
comparable
- the value to checkvoid setLocked(boolean value)
value
- true to lock this model, false to unlockboolean isLocked()
java.lang.Class getTypeClass()
void setUpperBound(java.lang.Object upper)
upper
- the new upper boundvoid setLikeValue(java.lang.Object value)
value
- the value to use as conditionjava.lang.Object getUpperBound()
void setLowerBound(java.lang.Object value)
value
- the lower boundjava.lang.Object getLowerBound()
ConditionType getConditionType()
void setConditionType(ConditionType conditionType)
conditionType
- the search typeboolean isLowerBoundRequired()
boolean isAutoEnable()
void setAutoEnable(boolean autoEnable)
autoEnable
- true to enable, false to disableboolean isEnabled()
void setEnabled(boolean value)
value
- true to enable, false to disablevoid clearCondition()
ConditionType.LIKE
Value getUpperBoundValue()
Value getLowerBoundValue()
StateObserver getLockedObserver()
EventObserver<java.lang.Boolean> getEnabledObserver()
EventObserver<ConditionType> getConditionTypeObserver()
void addEnabledListener(EventListener listener)
listener
- a listener to be notified each time the enabled state changesvoid removeEnabledListener(EventListener listener)
listener
- the listener to removevoid addConditionTypeListener(EventDataListener<ConditionType> listener)
listener
- a listener to be notified each time the condition type changesvoid removeConditionTypeListener(EventDataListener 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 addLowerBoundRequiredListener(EventListener listener)
listener
- a listener to be notified each time the lower bound required attribute changesvoid removeLowerBoundRequiredListener(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 addConditionStateListener(EventListener listener)
listener
- a listener to be notified each time the condition state changesvoid removeConditionStateListener(EventListener listener)
listener
- the listener to remove