|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.tree.DefaultTreeSelectionModel | +--org.sape.carbon.services.swing.treetable.JTreeTable.ListToTreeSelectionModelWrapper
ListToTreeSelectionModelWrapper extends DefaultTreeSelectionModel to listen for changes in the ListSelectionModel it maintains. Once a change in the ListSelectionModel happens, the paths are updated in the DefaultTreeSelectionModel.
Nested Class Summary | |
(package private) class |
JTreeTable.ListToTreeSelectionModelWrapper.ListSelectionHandler
Class responsible for calling updateSelectedPathsFromSelectedRows when the selection of the list changse. |
Field Summary | |
protected boolean |
updatingListSelectionModel
Set to true when we are updating the ListSelectionModel. |
Fields inherited from class javax.swing.tree.DefaultTreeSelectionModel |
changeSupport, leadIndex, leadPath, leadRow, listenerList, listSelectionModel, rowMapper, selection, SELECTION_MODE_PROPERTY, selectionMode |
Fields inherited from interface javax.swing.tree.TreeSelectionModel |
CONTIGUOUS_TREE_SELECTION, DISCONTIGUOUS_TREE_SELECTION, SINGLE_TREE_SELECTION |
Constructor Summary | |
JTreeTable.ListToTreeSelectionModelWrapper()
|
Method Summary | |
protected ListSelectionListener |
createListSelectionListener()
Creates and returns an instance of ListSelectionHandler. |
(package private) ListSelectionModel |
getListSelectionModel()
Returns the list selection model. |
void |
resetRowSelection()
This is overridden to set updatingListSelectionModel
and message super. |
protected void |
updateSelectedPathsFromSelectedRows()
If updatingListSelectionModel is false, this will
reset the selected paths from the selected rows in the list
selection model. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected boolean updatingListSelectionModel
Constructor Detail |
public JTreeTable.ListToTreeSelectionModelWrapper()
Method Detail |
ListSelectionModel getListSelectionModel()
public void resetRowSelection()
updatingListSelectionModel
and message super. This is the only place DefaultTreeSelectionModel
alters the ListSelectionModel.
resetRowSelection
in interface TreeSelectionModel
resetRowSelection
in class DefaultTreeSelectionModel
protected ListSelectionListener createListSelectionListener()
protected void updateSelectedPathsFromSelectedRows()
updatingListSelectionModel
is false, this will
reset the selected paths from the selected rows in the list
selection model.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |