|
Copyright © 2011 Citra Technologies. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.citra.table.TableReorder
com.citra.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.citra.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.citra.table.TableReorder |
---|
getNewEditRow, getScrollToSelection, reselectTableRows, restoreRowHeights, 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 TableReorder
selRows
- 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 ReorderListener
rowsReordered
in class TableReorder
e
- the ReorderEvent objectpublic void setTable(JTable newTable)
newTable
setTable
in class TableReorder
newTable
- the JTable to set
|
Copyright © 2011 Citra Technologies. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |