|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EntityTableSearchModel
This interface defines filtering functionality, which refers to showing/hiding entities already available
in a table model and searching functionality, which refers to configuring the underlying query,
which then needs to be re-run.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.jminor.common.model.FilterCriteria |
---|
FilterCriteria.AcceptAllCriteria<T>, FilterCriteria.RejectAllCriteria<T> |
Methods inherited from interface org.jminor.common.model.FilterCriteria |
---|
include |
Methods inherited from interface org.jminor.common.model.Refreshable |
---|
clear, refresh |
Method Detail |
---|
String getEntityID()
List<Property.SearchableProperty> getSearchableProperties()
boolean setSearchValues(String propertyID, Collection<?> values)
propertyID
propertyID
- the ID of the propertyvalues
- the search criteria values
void setFilterValue(String propertyID, Comparable value)
propertyID
.
propertyID
- the id of the propertyvalue
- the criteria valueCriteria<Property.ColumnProperty> getSearchCriteria()
Criteria<Property.ColumnProperty> getAdditionalSearchCriteria()
EntityTableSearchModel setAdditionalSearchCriteria(Criteria<Property.ColumnProperty> criteria)
criteria
- the criteria
boolean isSearchEnabled(String propertyID)
propertyID
- the column propertyID
columnIndex
is enabledvoid setSearchEnabled(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 setSearchModelState()
getSearchStateChangedState()
boolean isSimpleSearch()
Conjunction getSearchConjunction()
Conjunction.AND
Conjunction
void setSearchConjunction(Conjunction conjunction)
conjunction
- the conjunction to be used when more than one column search criteria is activeConjunction
boolean containsPropertySearchModel(String propertyID)
propertyID
- the id of the property for which to check for the PropertySearchModel
propertyID
Collection<PropertySearchModel<? extends Property.SearchableProperty>> getPropertySearchModels()
PropertySearchModel<? extends Property.SearchableProperty> getPropertySearchModel(String propertyID)
propertyID
- the id of the property for which to retrieve the PropertySearchModel
propertyID
void clearPropertySearchModels()
Collection<ColumnSearchModel<Property>> getPropertyFilterModels()
List<ColumnSearchModel<Property>> getPropertyFilterModelsOrdered()
ColumnSearchModel<Property> getPropertyFilterModel(String propertyID)
propertyID
propertyID
- the id of the property for which to retrieve the PropertyFilterModel
propertyID
boolean isFilterEnabled(String propertyID)
propertyID
- column propertyID
columnIndex
is enabledStateObserver getSearchStateChangedState()
setSearchModelState()
void addFilterStateListener(ActionListener listener)
listener
- a listener notified each time the filter state changesvoid removeFilterStateListener(ActionListener listener)
listener
- the listener to remove
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |