javax.swing.tree
Interface TreeSelectionModel
- All Known Implementing Classes:
- DefaultTreeSelectionModel, JTree.EmptySelectionModel
public interface TreeSelectionModel
TreeSelectionModel public interface
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
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)