Ontimize 5.2072EN

com.ontimize.gui.table
Class TableSorter.MultipleFilter

java.lang.Object
  extended bycom.ontimize.gui.table.TableSorter.MultipleFilter
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
TableSorter

public static class TableSorter.MultipleFilter
extends java.lang.Object
implements java.io.Serializable

Class that represents a filter to a table column. The filter has multiple entries and in each is defined an object that indicates the value and the logic operation to be performed, in this case or AND or OR.

See Also:
Serialized Form

Field Summary
protected  java.util.ArrayList conditionList
           
protected  java.util.ArrayList list
           
 
Constructor Summary
TableSorter.MultipleFilter()
           
 
Method Summary
 void addAND(java.lang.Object filterValue)
          Adds a value to the filter with an AND condition.
 void addOR(java.lang.Object filterValue)
          Adds a value to the filter with an OR condition.
 java.lang.Object get(int index)
          Returns the filter at the specified position in this list.
 java.lang.String getCondition(int index)
          Returns the condition at the specified position in this list.
 void remove(int index)
          Removes one condition from the filter.
 int size()
          Returns the number of conditions configured to this filter.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

list

protected java.util.ArrayList list

conditionList

protected java.util.ArrayList conditionList
Constructor Detail

TableSorter.MultipleFilter

public TableSorter.MultipleFilter()
Method Detail

addOR

public void addOR(java.lang.Object filterValue)
Adds a value to the filter with an OR condition.

Parameters:
filterValue - the value to add to the filter

addAND

public void addAND(java.lang.Object filterValue)
Adds a value to the filter with an AND condition.

Parameters:
filterValue - the value to add to the filter

remove

public void remove(int index)
Removes one condition from the filter.

Parameters:
index - the condition index

size

public int size()
Returns the number of conditions configured to this filter.

Returns:
the number of conditions configured to this filter

get

public java.lang.Object get(int index)
Returns the filter at the specified position in this list.

Parameters:
index - index of element to return
Returns:
the element at the specified position in this list.

getCondition

public java.lang.String getCondition(int index)
Returns the condition at the specified position in this list.

Parameters:
index - index of element to return
Returns:
the element at the specified position in this list.

toString

public java.lang.String toString()

Ontimize