ElegantJ Tables Java API Specification v1.1

com.elegantj.awt.table
Class TableSortEvent

java.lang.Object
  extended byjava.util.EventObject
      extended bycom.elegantj.awt.table.TableSortEvent
All Implemented Interfaces:
java.io.Serializable

public class TableSortEvent
extends java.util.EventObject

TableSort is used to notify interested parties that state has changed in the event source

See Also:
Serialized Form

Field Summary
static int AFTER_SORTING
          The event id represents the event for the after sorting
static int BEFORE_SORTING
          The event id represents the event for the before sorting
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
TableSortEvent(java.lang.Object source, int eventID, int[] columnIndexes, boolean[] sortOrders)
          Constructs a TableSortEvent object.
 
Method Summary
 int[] getColumnIndexes()
          This method returns The column indexes on to which sort performed
 int getEventID()
          Returns the eventID for this event The possible values are
 boolean[] getSortOrders()
          Returns the sortOrders for the columns
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

BEFORE_SORTING

public static int BEFORE_SORTING
The event id represents the event for the before sorting


AFTER_SORTING

public static int AFTER_SORTING
The event id represents the event for the after sorting

Constructor Detail

TableSortEvent

public TableSortEvent(java.lang.Object source,
                      int eventID,
                      int[] columnIndexes,
                      boolean[] sortOrders)
Constructs a TableSortEvent object.

Parameters:
source - the Object that is the source of the event
columnIndexes - The The column indexes on to which sort perfored
sortOrders - the array consist of the sort orders either ascending or descending
Method Detail

getColumnIndexes

public int[] getColumnIndexes()
This method returns The column indexes on to which sort performed

Returns:
The column indexes on to which sort performed

getSortOrders

public boolean[] getSortOrders()
Returns the sortOrders for the columns

Returns:
The sortOrders for the columns

getEventID

public int getEventID()
Returns the eventID for this event The possible values are


ElegantJ Tables Java API Specification v1.1

Submit a bug or feature

Copyright(c)
Elegant Microweb Technologies Pvt. Ltd.
www.elegantmicroweb.com
www.elegantjbeans.com
All Rights Reserved.