public interface EntityTableConditionModel extends FilterCondition<Entity>, Refreshable
FilterCondition.AcceptAllCondition<T>, FilterCondition.RejectAllCondition<T>
Modifier and Type | Method and Description |
---|---|
void |
addConditionStateListener(EventListener listener) |
void |
addSimpleConditionListener(EventListener listener) |
void |
clearPropertyConditionModels()
Clears the search state of all PropertyConditionModels, disables them and
resets the search type to
ConditionType.LIKE |
boolean |
containsPropertyConditionModel(java.lang.String propertyId) |
Condition.Provider |
getAdditionalConditionProvider() |
FilterCondition<Entity> |
getAdditionalFilterCondition() |
Condition |
getCondition() |
StateObserver |
getConditionStateObserver() |
Conjunction |
getConjunction() |
java.lang.String |
getEntityId() |
PropertyConditionModel<? extends Property> |
getPropertyConditionModel(java.lang.String propertyId) |
java.util.Collection<PropertyConditionModel<? extends Property>> |
getPropertyConditionModels() |
ColumnConditionModel<Property> |
getPropertyFilterModel(java.lang.String propertyId)
The PropertyFilterModel associated with the property identified by
propertyId |
java.util.Collection<ColumnConditionModel<Property>> |
getPropertyFilterModels() |
java.lang.String |
getSimpleConditionString() |
EventObserver<java.lang.String> |
getSimpleConditionStringObserver() |
boolean |
hasConditionStateChanged() |
boolean |
isEnabled() |
boolean |
isEnabled(java.lang.String propertyId) |
boolean |
isFilterEnabled(java.lang.String propertyId) |
void |
performSimpleSearch()
Uses the simpleSearchText as a basis for a wildcard search on all String based condition models,
or the condition models representing the search properties for the underlying entity
|
void |
rememberCurrentConditionState()
Remembers the current condition model state, any subsequent changes to condition
parameters or operators are notified via the conditionStateChanged observer.
|
void |
removeConditionStateListener(EventListener listener) |
void |
removeSimpleConditionListener(EventListener listener) |
EntityTableConditionModel |
setAdditionalConditionProvider(Condition.Provider conditionProvider)
Sets the additional condition provider, one not based on any individual property condition
|
EntityTableConditionModel |
setAdditionalFilterCondition(FilterCondition<Entity> filterCondition)
Sets the additional filter condition, one not based on any individual property condition
|
boolean |
setConditionValues(java.lang.String propertyId,
java.util.Collection values)
Sets the search condition values of the condition model associated with the property identified by
propertyId |
void |
setConjunction(Conjunction conjunction) |
void |
setEnabled(java.lang.String propertyId,
boolean enabled)
Enables/disables the search for the given property
|
void |
setFilterValue(java.lang.String propertyId,
java.lang.Comparable value)
Sets the condition value of the PropertyFilterModel associated with the property identified by
propertyId . |
void |
setSimpleConditionString(java.lang.String simpleSearchText)
Note that calling this method may (and probably will) change the automatic prefix and case sensetivity settings of
the underlying
ColumnConditionModel s |
include
clear, refresh
java.lang.String getEntityId()
boolean setConditionValues(java.lang.String propertyId, java.util.Collection values)
propertyId
propertyId
- the id of the propertyvalues
- the search condition valuesvoid setFilterValue(java.lang.String propertyId, java.lang.Comparable value)
propertyId
.propertyId
- the id of the propertyvalue
- the condition valueCondition getCondition()
Condition.Provider getAdditionalConditionProvider()
EntityTableConditionModel setAdditionalConditionProvider(Condition.Provider conditionProvider)
conditionProvider
- the condition providerFilterCondition<Entity> getAdditionalFilterCondition()
EntityTableConditionModel setAdditionalFilterCondition(FilterCondition<Entity> filterCondition)
filterCondition
- the conditionboolean isEnabled()
boolean isEnabled(java.lang.String propertyId)
propertyId
- the column propertyIdcolumnIndex
is enabledvoid setEnabled(java.lang.String propertyId, boolean enabled)
propertyId
- the id of the property for which to enable/disable the searchenabled
- if true the search is enabled, otherwise it is disabledvoid rememberCurrentConditionState()
getConditionStateObserver()
boolean hasConditionStateChanged()
rememberCurrentConditionState()
Conjunction getConjunction()
Conjunction.AND
Conjunction
void setConjunction(Conjunction conjunction)
conjunction
- the conjunction to be used when more than one column search condition is activeConjunction
boolean containsPropertyConditionModel(java.lang.String propertyId)
propertyId
- the id of the property for which to check for the PropertyConditionModelpropertyId
java.util.Collection<PropertyConditionModel<? extends Property>> getPropertyConditionModels()
PropertyConditionModel<? extends Property> getPropertyConditionModel(java.lang.String propertyId)
propertyId
- the id of the property for which to retrieve the PropertyConditionModelpropertyId
java.lang.IllegalArgumentException
- in case no condition model is foundcontainsPropertyConditionModel(String)
void clearPropertyConditionModels()
ConditionType.LIKE
java.util.Collection<ColumnConditionModel<Property>> getPropertyFilterModels()
ColumnConditionModel<Property> getPropertyFilterModel(java.lang.String propertyId)
propertyId
propertyId
- the id of the property for which to retrieve the PropertyFilterModelpropertyId
, null if none is foundboolean isFilterEnabled(java.lang.String propertyId)
propertyId
- column propertyIdcolumnIndex
is enabledjava.lang.String getSimpleConditionString()
performSimpleSearch()
void setSimpleConditionString(java.lang.String simpleSearchText)
ColumnConditionModel
ssimpleSearchText
- the text to use next time a simple search is performedperformSimpleSearch()
,
ColumnConditionModel.setCaseSensitive(boolean)
,
ColumnConditionModel.setAutomaticWildcard(ColumnConditionModel.AutomaticWildcard)
void performSimpleSearch()
Entity.Definition#getSearchProperties()
StateObserver getConditionStateObserver()
rememberCurrentConditionState()
EventObserver<java.lang.String> getSimpleConditionStringObserver()
void addConditionStateListener(EventListener listener)
listener
- a listener notified each time the search state changesvoid removeConditionStateListener(EventListener listener)
listener
- the listener to removevoid addSimpleConditionListener(EventListener listener)
listener
- a listener notified each time a simple search is performedvoid removeSimpleConditionListener(EventListener listener)
listener
- the listener to remove