Class JTreeTable.ListToTreeSelectionModelWrapper
java.lang.Object
javax.swing.tree.DefaultTreeSelectionModel
org.mozilla.javascript.tools.debugger.treetable.JTreeTable.ListToTreeSelectionModelWrapper
- All Implemented Interfaces:
Serializable, Cloneable, TreeSelectionModel
- Enclosing class:
JTreeTable
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.
- Version:
- 1.2 10/27/98
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) classClass responsible for calling updateSelectedPathsFromSelectedRows when the selection of the list changse. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final longprotected booleanSet to true when we are updating the ListSelectionModel.Fields inherited from class DefaultTreeSelectionModel
changeSupport, leadIndex, leadPath, leadRow, listenerList, listSelectionModel, rowMapper, selection, SELECTION_MODE_PROPERTY, selectionModeFields inherited from interface TreeSelectionModel
CONTIGUOUS_TREE_SELECTION, DISCONTIGUOUS_TREE_SELECTION, SINGLE_TREE_SELECTION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ListSelectionListenerCreates and returns an instance of ListSelectionHandler.Returns the list selection model.voidThis is overridden to setupdatingListSelectionModeland message super.protected voidIfupdatingListSelectionModelis false, this will reset the selected paths from the selected rows in the list selection model.Methods inherited from class DefaultTreeSelectionModel
addPropertyChangeListener, addSelectionPath, addSelectionPaths, addTreeSelectionListener, arePathsContiguous, canPathsBeAdded, canPathsBeRemoved, clearSelection, clone, fireValueChanged, getLeadSelectionPath, getLeadSelectionRow, getListeners, getMaxSelectionRow, getMinSelectionRow, getPropertyChangeListeners, getRowMapper, getSelectionCount, getSelectionMode, getSelectionPath, getSelectionPaths, getSelectionRows, getTreeSelectionListeners, insureRowContinuity, insureUniqueness, isPathSelected, isRowSelected, isSelectionEmpty, notifyPathChange, removePropertyChangeListener, removeSelectionPath, removeSelectionPaths, removeTreeSelectionListener, setRowMapper, setSelectionMode, setSelectionPath, setSelectionPaths, toString, updateLeadIndex
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
updatingListSelectionModel
protected boolean updatingListSelectionModelSet to true when we are updating the ListSelectionModel.
-
-
Constructor Details
-
ListToTreeSelectionModelWrapper
public ListToTreeSelectionModelWrapper()
-
-
Method Details
-
getListSelectionModel
Returns the list selection model. ListToTreeSelectionModelWrapper listens for changes to this model and updates the selected paths accordingly. -
resetRowSelection
public void resetRowSelection()This is overridden to setupdatingListSelectionModeland message super. This is the only place DefaultTreeSelectionModel alters the ListSelectionModel.- Specified by:
resetRowSelectionin interfaceTreeSelectionModel- Overrides:
resetRowSelectionin classDefaultTreeSelectionModel
-
createListSelectionListener
Creates and returns an instance of ListSelectionHandler. -
updateSelectedPathsFromSelectedRows
protected void updateSelectedPathsFromSelectedRows()IfupdatingListSelectionModelis false, this will reset the selected paths from the selected rows in the list selection model.
-