|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jminor.common.model.DefaultColumnSearchModel<K>
K
- the type of the column identifierpublic class DefaultColumnSearchModel<K>
A default ColumnSearchModel model implementation.
Field Summary |
---|
Fields inherited from interface org.jminor.common.model.ColumnSearchModel |
---|
LOWER_BOUND_PROPERTY, UPPER_BOUND_PROPERTY |
Constructor Summary | |
---|---|
DefaultColumnSearchModel(K columnIdentifier,
int type,
String wildcard)
Instantiates a DefaultColumnSearchModel. |
|
DefaultColumnSearchModel(K columnIdentifier,
int type,
String wildcard,
Format format)
Instantiates a DefaultColumnSearchModel. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultColumnSearchModel(K columnIdentifier, int type, String wildcard)
columnIdentifier
- the column identifiertype
- the column data typewildcard
- the string to use as wildcardpublic DefaultColumnSearchModel(K columnIdentifier, int type, String wildcard, Format format)
columnIdentifier
- the column identifiertype
- the column data typewildcard
- the string to use as wildcardformat
- the format to use when presenting the values, dates for exampleMethod Detail |
---|
public final K getColumnIdentifier()
getColumnIdentifier
in interface ColumnSearchModel<K>
public final boolean isCaseSensitive()
isCaseSensitive
in interface ColumnSearchModel<K>
public final void setCaseSensitive(boolean caseSensitive)
setCaseSensitive
in interface ColumnSearchModel<K>
caseSensitive
- true if this search model should be case sensitive when working with stringspublic final Format getFormat()
getFormat
in interface ColumnSearchModel<K>
public final void setLocked(boolean value)
setLocked
in interface ColumnSearchModel<K>
value
- true to lock this model, false to unlockpublic final boolean isLocked()
isLocked
in interface ColumnSearchModel<K>
public final int getType()
getType
in interface ColumnSearchModel<K>
Types
public final void setLikeValue(Comparable value)
setLikeValue
in interface ColumnSearchModel<K>
value
- the value to use as criteriapublic final void setUpperBound(Object upper)
setUpperBound
in interface ColumnSearchModel<K>
upper
- the new upper boundpublic final Object getUpperBound()
getUpperBound
in interface ColumnSearchModel<K>
public final void setLowerBound(Object value)
setLowerBound
in interface ColumnSearchModel<K>
value
- the lower boundpublic final Object getLowerBound()
getLowerBound
in interface ColumnSearchModel<K>
public final void setUpperBound(String value)
setUpperBound
in interface ColumnSearchModel<K>
value
- the upper boundpublic final void setUpperBound(Double value)
setUpperBound
in interface ColumnSearchModel<K>
value
- the upper boundpublic final void setUpperBound(Integer value)
setUpperBound
in interface ColumnSearchModel<K>
value
- the upper boundpublic final void setUpperBound(boolean value)
setUpperBound
in interface ColumnSearchModel<K>
value
- the upper boundpublic final void setUpperBound(char value)
setUpperBound
in interface ColumnSearchModel<K>
value
- the upper boundpublic final void setUpperBound(Boolean value)
setUpperBound
in interface ColumnSearchModel<K>
value
- the upper boundpublic final void setUpperBound(Timestamp value)
setUpperBound
in interface ColumnSearchModel<K>
value
- the upper boundpublic final void setUpperBound(Date value)
setUpperBound
in interface ColumnSearchModel<K>
value
- the upper boundpublic final void setLowerBound(String value)
setLowerBound
in interface ColumnSearchModel<K>
value
- the Lower boundpublic final void setLowerBound(Double value)
setLowerBound
in interface ColumnSearchModel<K>
value
- the Lower boundpublic final void setLowerBound(Integer value)
setLowerBound
in interface ColumnSearchModel<K>
value
- the Lower boundpublic final void setLowerBound(boolean value)
setLowerBound
in interface ColumnSearchModel<K>
value
- the Lower boundpublic final void setLowerBound(char value)
setLowerBound
in interface ColumnSearchModel<K>
value
- the Lower boundpublic final void setLowerBound(Boolean value)
setLowerBound
in interface ColumnSearchModel<K>
value
- the Lower boundpublic final void setLowerBound(Timestamp value)
setLowerBound
in interface ColumnSearchModel<K>
value
- the Lower boundpublic final void setLowerBound(Date value)
setLowerBound
in interface ColumnSearchModel<K>
value
- the Lower boundpublic final SearchType getSearchType()
getSearchType
in interface ColumnSearchModel<K>
public final void setSearchType(SearchType searchType)
setSearchType
in interface ColumnSearchModel<K>
searchType
- the search typepublic final String getWildcard()
public final void setWildcard(String wildcard)
wildcard
- the search wildcardpublic final boolean isAutoEnable()
isAutoEnable
in interface ColumnSearchModel<K>
public final void setAutoEnable(boolean autoEnable)
setAutoEnable
in interface ColumnSearchModel<K>
autoEnable
- true to enable, false to disablepublic final boolean isEnabled()
isEnabled
in interface ColumnSearchModel<K>
public final void setEnabled(boolean value)
setEnabled
in interface ColumnSearchModel<K>
value
- true to enable, false to disablepublic final void setAutomaticWildcard(boolean value)
setAutomaticWildcard
in interface ColumnSearchModel<K>
value
- true if wildcard should automatically be added to stringspublic final boolean isAutomaticWildcard()
isAutomaticWildcard
in interface ColumnSearchModel<K>
public final void clearSearch()
clearSearch
in interface ColumnSearchModel<K>
public final StateObserver getLockedState()
getLockedState
in interface ColumnSearchModel<K>
public final EventObserver getEnabledObserver()
getEnabledObserver
in interface ColumnSearchModel<K>
public final EventObserver getLowerBoundObserver()
getLowerBoundObserver
in interface ColumnSearchModel<K>
public final EventObserver getUpperBoundObserver()
getUpperBoundObserver
in interface ColumnSearchModel<K>
public final void addEnabledListener(ActionListener listener)
addEnabledListener
in interface ColumnSearchModel<K>
listener
- a listener to be notified each time the enabled state changespublic final void removeEnabledListener(ActionListener listener)
removeEnabledListener
in interface ColumnSearchModel<K>
listener
- the listener to removepublic final void addUpperBoundListener(ActionListener listener)
addUpperBoundListener
in interface ColumnSearchModel<K>
listener
- a listener to be notified each time the upper bound changespublic final void removeUpperBoundListener(ActionListener listener)
removeUpperBoundListener
in interface ColumnSearchModel<K>
listener
- the listener to removepublic final void addLowerBoundListener(ActionListener listener)
addLowerBoundListener
in interface ColumnSearchModel<K>
listener
- a listener to be notified each time the lower bound changespublic final void removeLowerBoundListener(ActionListener listener)
removeLowerBoundListener
in interface ColumnSearchModel<K>
listener
- the listener to removepublic final void addClearedListener(ActionListener listener)
addClearedListener
in interface ColumnSearchModel<K>
listener
- a listener to be notified each time the model is clearedpublic final void removeClearedListener(ActionListener listener)
removeClearedListener
in interface ColumnSearchModel<K>
listener
- the listener to removepublic final void addSearchStateListener(ActionListener listener)
addSearchStateListener
in interface ColumnSearchModel<K>
listener
- a listener to be notified each time the search state changespublic final void removeSearchStateListener(ActionListener listener)
removeSearchStateListener
in interface ColumnSearchModel<K>
listener
- the listener to removepublic final void addSearchTypeListener(ActionListener listener)
addSearchTypeListener
in interface ColumnSearchModel<K>
listener
- a listener to be notified each time the search type changespublic final void removeSearchTypeListener(ActionListener listener)
removeSearchTypeListener
in interface ColumnSearchModel<K>
listener
- the listener to removepublic final EventObserver getSearchTypeObserver()
getSearchTypeObserver
in interface ColumnSearchModel<K>
public final boolean include(Object object)
include
in interface ColumnSearchModel<K>
object
- the object
public final boolean include(Comparable comparable)
include
in interface ColumnSearchModel<K>
comparable
- the value to check
public static int getValueCount(SearchType searchType)
searchType
- the search type
protected Comparable getComparable(Object object)
object
- the object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |