org.ujac.util.table
Class CompareItem

java.lang.Object
  extended by org.ujac.util.table.CompareItem

public class CompareItem
extends Object

Name: CompareItem
Description: A class holding informations needed to sort a table by one specific column in one specific direction.

Author:
lauerc

Field Summary
static int ASC
          Constant for ascending sort direction.
static int DESC
          Constant for descending sort direction.
 
Constructor Summary
CompareItem(int column, int direction)
          Constructs a CompareItem instance with specific attributes.
 
Method Summary
 int getColumn()
          Gets the column to sort by.
 int getDirection()
          Gets the sort direction.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ASC

public static final int ASC
Constant for ascending sort direction.

See Also:
Constant Field Values

DESC

public static final int DESC
Constant for descending sort direction.

See Also:
Constant Field Values
Constructor Detail

CompareItem

public CompareItem(int column,
                   int direction)
Constructs a CompareItem instance with specific attributes.

Parameters:
column - The ID of the column to sort by.
direction - The sort direction (ASC|DESC).
Method Detail

getColumn

public int getColumn()
Gets the column to sort by.

Returns:
The index of the column to sort by.

getDirection

public int getDirection()
Gets the sort direction.

Returns:
The sort direction.


Copyright © 2003-2004 UJAC.org. All Rights Reserved.