|
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.DefaultTreeTableReorder
public class DefaultTreeTableReorder
DefaultTreeTableReorder acts on a TreeTable object in order to ensure that the same rows are selected after a ReorderEvent is generated.
Field Summary | |
---|---|
protected boolean |
shouldProcess
|
Fields inherited from class com.citra.table.TableReorder |
---|
changedIndices, scrollToSelection, selectedColumns, selectedRows, table |
Constructor Summary | |
---|---|
DefaultTreeTableReorder()
Constructs a DefaultTreeTableReorder. |
|
DefaultTreeTableReorder(TreeTable table)
Constructs a DefaultTreeTableReorder. |
Method Summary | |
---|---|
protected Set |
createExpansionSet()
Returns a new instance of the set that will be used to store the tree's expanded nodes. |
int |
getNewEditRow()
Determines the displaced row index of the table's editing row, after a model update. |
void |
reselectTableRows()
Uses the values stored when the rowsReordered method was called in order to update the table selection. |
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 |
---|
getScrollToSelection, restoreRowHeights, setScrollToSelection |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean shouldProcess
Constructor Detail |
---|
public DefaultTreeTableReorder()
public DefaultTreeTableReorder(TreeTable table)
Method Detail |
---|
protected Set createExpansionSet()
public void reselectTableRows()
reselectTableRows
in class TableReorder
public int getNewEditRow()
getNewEditRow
in class TableReorder
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 |