class ListToTreeSelectionModelWrapper extends javax.swing.tree.DefaultTreeSelectionModel
| Modifier and Type | Field and Description |
|---|---|
private static long |
serialVersionUID
A unique serial version identifier.
|
private TreeTable |
treeTable
TreeTable to perform updates on.
|
private boolean |
updatingListSelectionModel
Set to true when we are updating the ListSelectionModel.
|
| Constructor and Description |
|---|
ListToTreeSelectionModelWrapper(TreeTable jTreeTable)
Constructor to initialise treeTable.
|
| Modifier and Type | Method and Description |
|---|---|
protected javax.swing.ListSelectionModel |
getListSelectionModel()
Returns the list selection model.
|
void |
resetRowSelection()
This is overridden to set
updatingListSelectionModel
and message super. |
private void |
updateSelectedPathIfRowIsSelected(int counter)
If the row at given index is selected, selected paths are updated.
|
private 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, updateLeadIndexprivate static final long serialVersionUID
private boolean updatingListSelectionModel
ListToTreeSelectionModelWrapper(TreeTable jTreeTable)
jTreeTable - TreeTable to perform updates on.protected final 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.TreeSelectionModelresetRowSelection in class javax.swing.tree.DefaultTreeSelectionModelprivate void updateSelectedPathsFromSelectedRows()
updatingListSelectionModel is false, this will
reset the selected paths from the selected rows in the list
selection model.private void updateSelectedPathIfRowIsSelected(int counter)
counter - number of row.Copyright © 2001-2022. All Rights Reserved.