Ontimize 5.2072EN

com.ontimize.gui.table
Class TableSorter.Filter

java.lang.Object
  extended bycom.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

The configured condition will be applied for all the values in this filter.

See Also:
Serialized Form

Field Summary
protected  int condition
           
protected static java.text.DateFormat dateFormat
           
static int EQUAL
           
static int GREATER
           
static int GREATER_EQUAL
           
static int LESS
           
static int LESS_EQUAL
           
static int RANGE
           
protected  java.lang.Object[] values
           
 
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
 

Field Detail

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
Constructor Detail

TableSorter.Filter

public TableSorter.Filter(int condition,
                          java.lang.Object[] values)
Creates a filter.

Parameters:
condition - the condition to apply
values - the values to use when filtering
Method Detail

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()

Ontimize