javax.swing.tree
Class DefaultTreeSelectionModel
java.lang.Object
|
+--javax.swing.tree.DefaultTreeSelectionModel
All Implemented Interfaces:
Cloneable, Serializable, TreeSelectionModel
DefaultTreeSelectionModel
Author:SELECTION_MODE_PROPERTY
public static final String SELECTION_MODE_PROPERTY
SELECTION_MODE_PROPERTY
changeSupport
protected SwingPropertyChangeSupport changeSupport
changeSupport
leadIndex
protected int leadIndex
leadIndex
leadPath
protected TreePath leadPath
leadPath
leadRow
protected int leadRow
leadRow
listSelectionModel
protected DefaultListSelectionModel listSelectionModel
listSelectionModel
listenerList
protected EventListenerList listenerList
listenerList
rowMapper
protected transient RowMapper rowMapper
rowMapper
selection
protected TreePath[] selection
selection
selectionMode
protected int selectionMode
selectionMode
DefaultTreeSelectionModel
public DefaultTreeSelectionModel()
Constructor DefaultTreeSelectionModel
addPropertyChangeListener
public synchronized void addPropertyChangeListener(java.beans.PropertyChangeListener value0)
addPropertyChangeListener
Parameters:
addSelectionPath
public void addSelectionPath(javax.swing.tree.TreePath value0)
addSelectionPath
Parameters:
addSelectionPaths
public void addSelectionPaths(javax.swing.tree.TreePath value0)
addSelectionPaths
Parameters:
addTreeSelectionListener
public void addTreeSelectionListener(javax.swing.event.TreeSelectionListener value0)
addTreeSelectionListener
Parameters:
arePathsContiguous
protected boolean arePathsContiguous(javax.swing.tree.TreePath value0)
arePathsContiguous
Parameters:
canPathsBeAdded
protected boolean canPathsBeAdded(javax.swing.tree.TreePath value0)
canPathsBeAdded
Parameters:
canPathsBeRemoved
protected boolean canPathsBeRemoved(javax.swing.tree.TreePath value0)
canPathsBeRemoved
Parameters:
clearSelection
public void clearSelection()
clearSelection
clone
public Object clone()
clone
Throws:
fireValueChanged
protected void fireValueChanged(javax.swing.event.TreeSelectionEvent value0)
fireValueChanged
Parameters:
getLeadSelectionPath
public TreePath getLeadSelectionPath()
getLeadSelectionPath
getLeadSelectionRow
public int getLeadSelectionRow()
getLeadSelectionRow
getListeners
public EventListener[] getListeners(java.lang.Class value0)
getListeners
Parameters:
getMaxSelectionRow
public int getMaxSelectionRow()
getMaxSelectionRow
getMinSelectionRow
public int getMinSelectionRow()
getMinSelectionRow
getRowMapper
public RowMapper getRowMapper()
getRowMapper
getSelectionCount
public int getSelectionCount()
getSelectionCount
getSelectionMode
public int getSelectionMode()
getSelectionMode
getSelectionPath
public TreePath getSelectionPath()
getSelectionPath
getSelectionPaths
public TreePath[] getSelectionPaths()
getSelectionPaths
getSelectionRows
public int[] getSelectionRows()
getSelectionRows
insureRowContinuity
protected void insureRowContinuity()
insureRowContinuity
insureUniqueness
protected void insureUniqueness()
insureUniqueness
isPathSelected
public boolean isPathSelected(javax.swing.tree.TreePath value0)
isPathSelected
Parameters:
isRowSelected
public boolean isRowSelected(int value0)
isRowSelected
Parameters:
isSelectionEmpty
public boolean isSelectionEmpty()
isSelectionEmpty
notifyPathChange
protected void notifyPathChange(java.util.Vector value0, javax.swing.tree.TreePath value1)
notifyPathChange
Parameters:
removePropertyChangeListener
public synchronized void removePropertyChangeListener(java.beans.PropertyChangeListener value0)
removePropertyChangeListener
Parameters:
removeSelectionPath
public void removeSelectionPath(javax.swing.tree.TreePath value0)
removeSelectionPath
Parameters:
removeSelectionPaths
public void removeSelectionPaths(javax.swing.tree.TreePath value0)
removeSelectionPaths
Parameters:
removeTreeSelectionListener
public void removeTreeSelectionListener(javax.swing.event.TreeSelectionListener value0)
removeTreeSelectionListener
Parameters:
resetRowSelection
public void resetRowSelection()
resetRowSelection
setRowMapper
public void setRowMapper(javax.swing.tree.RowMapper value0)
setRowMapper
Parameters:
setSelectionMode
public void setSelectionMode(int value0)
setSelectionMode
Parameters:
setSelectionPath
public void setSelectionPath(javax.swing.tree.TreePath value0)
setSelectionPath
Parameters:
setSelectionPaths
public void setSelectionPaths(javax.swing.tree.TreePath value0)
setSelectionPaths
Parameters:
toString
public String toString()
toString
updateLeadIndex
protected void updateLeadIndex()
updateLeadIndex