com.ontimize.gui.table
Class TableSorter.Filter
java.lang.Object
com.ontimize.gui.table.TableSorter.Filter
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- TableSorter.DifferentFilter
- Enclosing class:
- TableSorter
- public static class TableSorter.Filter
- extends java.lang.Object
- implements java.io.Serializable
Class that represents a filter to a table column. This filter stores a
condition to set to a list of values. The condition types are defined
within the class and are
- LESS
- LESS_EQUAL
- EQUAL
- GREATER_EQUAL
- GREATER
- RANGE
The configured condition will be applied for all the values in this
filter.
- See Also:
- Serialized Form
|
Constructor Summary |
TableSorter.Filter(int condition,
java.lang.Object[] values)
Creates a filter. |
|
Method Summary |
int |
getCondition()
Returns the filter condition. |
java.lang.Object[] |
getValues()
Returns the objects that are being used by this filter to perform the
filtering operations. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
LESS
public static final int LESS
- See Also:
- Constant Field Values
LESS_EQUAL
public static final int LESS_EQUAL
- See Also:
- Constant Field Values
EQUAL
public static final int EQUAL
- See Also:
- Constant Field Values
GREATER_EQUAL
public static final int GREATER_EQUAL
- See Also:
- Constant Field Values
GREATER
public static final int GREATER
- See Also:
- Constant Field Values
RANGE
public static final int RANGE
- See Also:
- Constant Field Values
condition
protected int condition
values
protected java.lang.Object[] values
dateFormat
protected static java.text.DateFormat dateFormat
TableSorter.Filter
public TableSorter.Filter(int condition,
java.lang.Object[] values)
- Creates a filter.
- Parameters:
condition - the condition to applyvalues - the values to use when filtering
getCondition
public int getCondition()
- Returns the filter condition.
- Returns:
- the filter condition
getValues
public java.lang.Object[] getValues()
- Returns the objects that are being used by this filter to perform the
filtering operations.
- Returns:
- the values to use when filtering
toString
public java.lang.String toString()