|
Copyright © 2005 Scientific Applications. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sciapp.table.TableReorder
com.sciapp.treetable.TreeTableReorder
public class TreeTableReorder
TreeTableReorder acts on a TreeTable object in order to ensure that the same rows are selected after a ReorderEvent is generated.
| Field Summary |
|---|
| Fields inherited from class com.sciapp.table.TableReorder |
|---|
changedIndices, scrollToSelection, selectedColumns, selectedRows, table |
| Constructor Summary | |
|---|---|
TreeTableReorder()
Constructs a TreeTableReorder with a null JTable. |
|
TreeTableReorder(TreeTable table)
Constructs a TreeTableReorder. |
|
| Method Summary | |
|---|---|
void |
reselectTableRows(int[] selRows,
int[] mapIndex)
Updates the table selection. |
void |
rowsReordered(ReorderEvent e)
Called whenever the rows of a JTable have been restructured. |
void |
setTable(JTable newTable)
Sets the table to newTable |
| Methods inherited from class com.sciapp.table.TableReorder |
|---|
getScrollToSelection, reselectTableRows, setScrollToSelection |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TreeTableReorder()
public TreeTableReorder(TreeTable table)
| Method Detail |
|---|
public void reselectTableRows(int[] selRows,
int[] mapIndex)
reselectTableRows in class TableReorderselRows - the table's selected rows before an update to the table data was mademapIndex - an int array showing how the rows have changed placepublic void rowsReordered(ReorderEvent e)
rowsReordered in interface ReorderListenerrowsReordered in class TableReordere - the ReorderEvent objectpublic void setTable(JTable newTable)
newTable
setTable in class TableReordernewTable - the JTable to set
|
Copyright © 2005 Scientific Applications. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||