JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.table
Class JCSortEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--com.klg.jclass.table.JCSortEvent
All Implemented Interfaces:
Serializable

public class JCSortEvent
extends EventObject

The event posted after a call to sortByColumn().

See Also:
JCTable.addSortListener(com.klg.jclass.table.JCSortListener), JCTable.sortByColumn(int, int), JCSortListener, Serialized Form

Field Summary
protected  int[] columns
           
protected  int[] new_rows
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
JCSortEvent(Object source, int[] columns, int[] new_rows)
           
 
Method Summary
 int[] getColumns()
          Gets the columns that have been sorted.
 int[] getNewRows()
          Gets the newly sorted order -- new_rows[i] are moved to row i.
 String toString()
          Returns a String representation of the event.
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

columns

protected int[] columns

new_rows

protected int[] new_rows
Constructor Detail

JCSortEvent

public JCSortEvent(Object source,
                   int[] columns,
                   int[] new_rows)
Method Detail

getColumns

public int[] getColumns()
Gets the columns that have been sorted.

Returns:

getNewRows

public int[] getNewRows()
Gets the newly sorted order -- new_rows[i] are moved to row i.

Returns:

toString

public String toString()
Returns a String representation of the event.

Overrides:
toString in class EventObject
Returns:
String representation of the event

Copyright © 2004 Quest Software Inc..
All rights reserved.