class JXTreeTable.ListToTreeSelectionModelWrapper extends DefaultTreeSelectionModel
Modifier and Type | Class and Description |
---|---|
(package private) class |
JXTreeTable.ListToTreeSelectionModelWrapper.ListSelectionHandler
Class responsible for calling updateSelectedPathsFromSelectedRows
when the selection of the list changse.
|
Modifier and Type | Field and Description |
---|---|
protected boolean |
updatingListSelectionModel
Set to true when we are updating the ListSelectionModel.
|
changeSupport, leadIndex, leadPath, leadRow, listenerList, listSelectionModel, rowMapper, selection, SELECTION_MODE_PROPERTY, selectionMode
CONTIGUOUS_TREE_SELECTION, DISCONTIGUOUS_TREE_SELECTION, SINGLE_TREE_SELECTION
Constructor and Description |
---|
ListToTreeSelectionModelWrapper() |
Modifier and Type | Method and Description |
---|---|
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. |
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 ListToTreeSelectionModelWrapper()
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.WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses