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
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. |
columns
protected int[] columns
new_rows
protected int[] new_rows
JCSortEvent
public JCSortEvent(Object source,
int[] columns,
int[] new_rows)
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