Ontimize 5.2072EN

com.ontimize.gui.table
Class TableSorter.DateFilter

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

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

Class that represents a filter to a table column. This filter will be used to filter by date.

See Also:
Serialized Form

Field Summary
protected  int amount
           
protected  long begin
           
static java.util.Calendar date
           
static int DAY
           
protected  java.lang.String head
           
static int LAST
           
static int MONTH
           
static java.lang.String string
           
protected  int type
           
protected  java.lang.String unit
           
static int YEAR
           
 
Constructor Summary
TableSorter.DateFilter(int type, int amount, java.util.ResourceBundle bundle)
          Creates a filter that uses dates.
 
Method Summary
 int getAmount()
          Returns the amount of date or time that is added to the field.
 long getInitTime()
          Provides the time that the filter uses as origin to perform the filtering.
 int getType()
          Returns the filter type.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DAY

public static final int DAY
See Also:
Constant Field Values

MONTH

public static final int MONTH
See Also:
Constant Field Values

YEAR

public static final int YEAR
See Also:
Constant Field Values

LAST

public static final int LAST
See Also:
Constant Field Values

date

public static java.util.Calendar date

string

public static java.lang.String string

head

protected java.lang.String head

unit

protected java.lang.String unit

begin

protected long begin

type

protected int type

amount

protected int amount
Constructor Detail

TableSorter.DateFilter

public TableSorter.DateFilter(int type,
                              int amount,
                              java.util.ResourceBundle bundle)
Creates a filter that uses dates.

Parameters:
type - the type of the filter, to be by DAY, MONTH, YEAR or LAST.
amount - the amount of date or time to be added to the field
bundle - the language file
Method Detail

getType

public int getType()
Returns the filter type.

Returns:
the filter type

getAmount

public int getAmount()
Returns the amount of date or time that is added to the field.

Returns:
the amount of date or time that is added to the field

getInitTime

public long getInitTime()
Provides the time that the filter uses as origin to perform the filtering.

Returns:
the origin time of the filter.

toString

public java.lang.String toString()

Ontimize