javax.swing.tree
Interface TreeSelectionModel

All Known Implementing Classes:
DefaultTreeSelectionModel, JTree.EmptySelectionModel

public interface TreeSelectionModel

TreeSelectionModel public interface


Field Summary
static int CONTIGUOUS_TREE_SELECTION
           
static int DISCONTIGUOUS_TREE_SELECTION
           
static int SINGLE_TREE_SELECTION
           
 
Method Summary
 void addPropertyChangeListener(PropertyChangeListener listener)
           
 void addSelectionPath(TreePath path)
           
 void addSelectionPaths(TreePath[] paths)
           
 void addTreeSelectionListener(TreeSelectionListener x)
           
 void clearSelection()
           
 TreePath getLeadSelectionPath()
           
 int getLeadSelectionRow()
           
 int getMaxSelectionRow()
           
 int getMinSelectionRow()
           
 RowMapper getRowMapper()
           
 int getSelectionCount()
           
 int getSelectionMode()
           
 TreePath getSelectionPath()
           
 TreePath[] getSelectionPaths()
           
 int[] getSelectionRows()
           
 boolean isPathSelected(TreePath path)
           
 boolean isRowSelected(int row)
           
 boolean isSelectionEmpty()
           
 void removePropertyChangeListener(PropertyChangeListener listener)
           
 void removeSelectionPath(TreePath path)
           
 void removeSelectionPaths(TreePath[] paths)
           
 void removeTreeSelectionListener(TreeSelectionListener x)
           
 void resetRowSelection()
           
 void setRowMapper(RowMapper newMapper)
           
 void setSelectionMode(int mode)
           
 void setSelectionPath(TreePath path)
           
 void setSelectionPaths(TreePath[] paths)
           
 

Field Detail

SINGLE_TREE_SELECTION

static final int SINGLE_TREE_SELECTION
See Also:
Constant Field Values

CONTIGUOUS_TREE_SELECTION

static final int CONTIGUOUS_TREE_SELECTION
See Also:
Constant Field Values

DISCONTIGUOUS_TREE_SELECTION

static final int DISCONTIGUOUS_TREE_SELECTION
See Also:
Constant Field Values
Method Detail

setSelectionMode

void setSelectionMode(int mode)

getSelectionMode

int getSelectionMode()

setSelectionPath

void setSelectionPath(TreePath path)

setSelectionPaths

void setSelectionPaths(TreePath[] paths)

addSelectionPath

void addSelectionPath(TreePath path)

addSelectionPaths

void addSelectionPaths(TreePath[] paths)

removeSelectionPath

void removeSelectionPath(TreePath path)

removeSelectionPaths

void removeSelectionPaths(TreePath[] paths)

getSelectionPath

TreePath getSelectionPath()

getSelectionPaths

TreePath[] getSelectionPaths()

getSelectionCount

int getSelectionCount()

isPathSelected

boolean isPathSelected(TreePath path)

isSelectionEmpty

boolean isSelectionEmpty()

clearSelection

void clearSelection()

setRowMapper

void setRowMapper(RowMapper newMapper)

getRowMapper

RowMapper getRowMapper()

getSelectionRows

int[] getSelectionRows()

getMinSelectionRow

int getMinSelectionRow()

getMaxSelectionRow

int getMaxSelectionRow()

isRowSelected

boolean isRowSelected(int row)

resetRowSelection

void resetRowSelection()

getLeadSelectionRow

int getLeadSelectionRow()

getLeadSelectionPath

TreePath getLeadSelectionPath()

addPropertyChangeListener

void addPropertyChangeListener(PropertyChangeListener listener)

removePropertyChangeListener

void removePropertyChangeListener(PropertyChangeListener listener)

addTreeSelectionListener

void addTreeSelectionListener(TreeSelectionListener x)

removeTreeSelectionListener

void removeTreeSelectionListener(TreeSelectionListener x)