|
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.DefaultTreeTableReorder
com.sciapp.treetable.db.DatabaseTreeTableReorder
public class DatabaseTreeTableReorder
DatabaseTreeTableReorder is suitable for expanding and selecting the nodes of a DatabaseTreeTableModel.
Field Summary | |
---|---|
protected boolean |
selectRows
true, to scan the table to restore selections, false otherwise. |
Fields inherited from class com.sciapp.treetable.DefaultTreeTableReorder |
---|
shouldProcess |
Fields inherited from class com.sciapp.table.TableReorder |
---|
changedIndices, scrollToSelection, selectedColumns, selectedRows, table |
Constructor Summary | |
---|---|
DatabaseTreeTableReorder()
Creates a DatabaseTreeTableReorder. |
|
DatabaseTreeTableReorder(TreeTable table)
Creates a DatabaseTreeTableReorder. |
Method Summary | |
---|---|
protected Set |
createExpansionSet()
Returns a new instance of the set that will be used to store the tree's expanded nodes. |
boolean |
getSelectRows()
Determines whether or not the reorder will scan the whole tree to select previously selected rows. |
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 |
setSelectRows(boolean selectRows)
Determines whether or not the reorder will scan the whole tree to select previously selected rows. |
void |
setTable(JTable newTable)
Sets the table to newTable |
Methods inherited from class com.sciapp.treetable.DefaultTreeTableReorder |
---|
getNewEditRow |
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 |
Field Detail |
---|
protected boolean selectRows
Constructor Detail |
---|
public DatabaseTreeTableReorder()
public DatabaseTreeTableReorder(TreeTable table)
Method Detail |
---|
protected Set createExpansionSet()
createExpansionSet
in class DefaultTreeTableReorder
public boolean getSelectRows()
public void reselectTableRows(int[] selRows, int[] mapIndex)
reselectTableRows
in class DefaultTreeTableReorder
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 DefaultTreeTableReorder
e
- the ReorderEvent objectpublic void setSelectRows(boolean selectRows)
selectRows
- true, to scan the table to restore selections, false otherwise.public void setTable(JTable newTable)
newTable
setTable
in class DefaultTreeTableReorder
newTable
- 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 |