public class JTreeTable.ListToTreeSelectionModelWrapper
extends javax.swing.tree.DefaultTreeSelectionModel
Modifier and Type | Field and Description |
---|---|
protected boolean |
updatingListSelectionModel
Set to true when we are updating the ListSelectionModel.
|
Constructor and Description |
---|
ListToTreeSelectionModelWrapper() |
Modifier and Type | Method and Description |
---|---|
protected javax.swing.event.ListSelectionListener |
createListSelectionListener()
Creates and returns an instance of ListSelectionHandler.
|
javax.swing.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. |
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
protected boolean updatingListSelectionModel
public javax.swing.ListSelectionModel getListSelectionModel()
public void resetRowSelection()
updatingListSelectionModel
and message super. This is the only place DefaultTreeSelectionModel
alters the ListSelectionModel.resetRowSelection
in interface javax.swing.tree.TreeSelectionModel
resetRowSelection
in class javax.swing.tree.DefaultTreeSelectionModel
protected javax.swing.event.ListSelectionListener createListSelectionListener()
protected void updateSelectedPathsFromSelectedRows()
updatingListSelectionModel
is false, this will
reset the selected paths from the selected rows in the list
selection model.