Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
javax.swing.tree

Class DefaultTreeSelectionModel

java.lang.Object
|
+--javax.swing.tree.DefaultTreeSelectionModel

All Implemented Interfaces:

Cloneable, Serializable, TreeSelectionModel


public class DefaultTreeSelectionModel

extends Object

implements Cloneable, Serializable, TreeSelectionModel

DefaultTreeSelectionModel

Author:

Field Summary

static java.lang.StringSELECTION_MODE_PROPERTY

SELECTION_MODE_PROPERTY
javax.swing.event.SwingPropertyChangeSupportchangeSupport

changeSupport
intleadIndex

leadIndex
javax.swing.tree.TreePathleadPath

leadPath
intleadRow

leadRow
javax.swing.DefaultListSelectionModellistSelectionModel

listSelectionModel
javax.swing.event.EventListenerListlistenerList

listenerList
transient javax.swing.tree.RowMapperrowMapper

rowMapper
javax.swing.tree.TreePath[]selection

selection
intselectionMode

selectionMode

Constructor Summary

DefaultTreeSelectionModel()

Constructor DefaultTreeSelectionModel

Method Summary

synchronized voidaddPropertyChangeListener(java.beans.PropertyChangeListener value0)

addPropertyChangeListener
voidaddSelectionPath(javax.swing.tree.TreePath value0)

addSelectionPath
voidaddSelectionPaths(javax.swing.tree.TreePath value0)

addSelectionPaths
voidaddTreeSelectionListener(javax.swing.event.TreeSelectionListener value0)

addTreeSelectionListener
booleanarePathsContiguous(javax.swing.tree.TreePath value0)

arePathsContiguous
booleancanPathsBeAdded(javax.swing.tree.TreePath value0)

canPathsBeAdded
booleancanPathsBeRemoved(javax.swing.tree.TreePath value0)

canPathsBeRemoved
voidclearSelection()

clearSelection
java.lang.Objectclone()

clone
voidfireValueChanged(javax.swing.event.TreeSelectionEvent value0)

fireValueChanged
javax.swing.tree.TreePathgetLeadSelectionPath()

getLeadSelectionPath
intgetLeadSelectionRow()

getLeadSelectionRow
java.util.EventListener[]getListeners(java.lang.Class value0)

getListeners
intgetMaxSelectionRow()

getMaxSelectionRow
intgetMinSelectionRow()

getMinSelectionRow
javax.swing.tree.RowMappergetRowMapper()

getRowMapper
intgetSelectionCount()

getSelectionCount
intgetSelectionMode()

getSelectionMode
javax.swing.tree.TreePathgetSelectionPath()

getSelectionPath
javax.swing.tree.TreePath[]getSelectionPaths()

getSelectionPaths
int[]getSelectionRows()

getSelectionRows
voidinsureRowContinuity()

insureRowContinuity
voidinsureUniqueness()

insureUniqueness
booleanisPathSelected(javax.swing.tree.TreePath value0)

isPathSelected
booleanisRowSelected(int value0)

isRowSelected
booleanisSelectionEmpty()

isSelectionEmpty
voidnotifyPathChange(java.util.Vector value0, javax.swing.tree.TreePath value1)

notifyPathChange
synchronized voidremovePropertyChangeListener(java.beans.PropertyChangeListener value0)

removePropertyChangeListener
voidremoveSelectionPath(javax.swing.tree.TreePath value0)

removeSelectionPath
voidremoveSelectionPaths(javax.swing.tree.TreePath value0)

removeSelectionPaths
voidremoveTreeSelectionListener(javax.swing.event.TreeSelectionListener value0)

removeTreeSelectionListener
voidresetRowSelection()

resetRowSelection
voidsetRowMapper(javax.swing.tree.RowMapper value0)

setRowMapper
voidsetSelectionMode(int value0)

setSelectionMode
voidsetSelectionPath(javax.swing.tree.TreePath value0)

setSelectionPath
voidsetSelectionPaths(javax.swing.tree.TreePath value0)

setSelectionPaths
java.lang.StringtoString()

toString
voidupdateLeadIndex()

updateLeadIndex

Field Details

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


Constructor Details

DefaultTreeSelectionModel

public DefaultTreeSelectionModel()

Constructor DefaultTreeSelectionModel


Method Details

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