javax.swing.tree

Interface TreeSelectionModel

public interface TreeSelectionModel

TreeSelectionModel public interface
Field Summary
intCONTIGUOUS_TREE_SELECTION
intDISCONTIGUOUS_TREE_SELECTION
intSINGLE_TREE_SELECTION
Method Summary
voidaddPropertyChangeListener(PropertyChangeListener listener)
voidaddSelectionPath(TreePath path)
voidaddSelectionPaths(TreePath[] paths)
voidaddTreeSelectionListener(TreeSelectionListener x)
voidclearSelection()
TreePathgetLeadSelectionPath()
intgetLeadSelectionRow()
intgetMaxSelectionRow()
intgetMinSelectionRow()
RowMappergetRowMapper()
intgetSelectionCount()
intgetSelectionMode()
TreePathgetSelectionPath()
TreePath[]getSelectionPaths()
int[]getSelectionRows()
booleanisPathSelected(TreePath path)
booleanisRowSelected(int row)
booleanisSelectionEmpty()
voidremovePropertyChangeListener(PropertyChangeListener listener)
voidremoveSelectionPath(TreePath path)
voidremoveSelectionPaths(TreePath[] paths)
voidremoveTreeSelectionListener(TreeSelectionListener x)
voidresetRowSelection()
voidsetRowMapper(RowMapper newMapper)
voidsetSelectionMode(int mode)
voidsetSelectionPath(TreePath path)
voidsetSelectionPaths(TreePath[] paths)

Field Detail

CONTIGUOUS_TREE_SELECTION

public int CONTIGUOUS_TREE_SELECTION

DISCONTIGUOUS_TREE_SELECTION

public int DISCONTIGUOUS_TREE_SELECTION

SINGLE_TREE_SELECTION

public int SINGLE_TREE_SELECTION

Method Detail

addPropertyChangeListener

public void addPropertyChangeListener(PropertyChangeListener listener)

addSelectionPath

public void addSelectionPath(TreePath path)

addSelectionPaths

public void addSelectionPaths(TreePath[] paths)

addTreeSelectionListener

public void addTreeSelectionListener(TreeSelectionListener x)

clearSelection

public void clearSelection()

getLeadSelectionPath

public TreePath getLeadSelectionPath()

getLeadSelectionRow

public int getLeadSelectionRow()

getMaxSelectionRow

public int getMaxSelectionRow()

getMinSelectionRow

public int getMinSelectionRow()

getRowMapper

public RowMapper getRowMapper()

getSelectionCount

public int getSelectionCount()

getSelectionMode

public int getSelectionMode()

getSelectionPath

public TreePath getSelectionPath()

getSelectionPaths

public TreePath[] getSelectionPaths()

getSelectionRows

public int[] getSelectionRows()

isPathSelected

public boolean isPathSelected(TreePath path)

isRowSelected

public boolean isRowSelected(int row)

isSelectionEmpty

public boolean isSelectionEmpty()

removePropertyChangeListener

public void removePropertyChangeListener(PropertyChangeListener listener)

removeSelectionPath

public void removeSelectionPath(TreePath path)

removeSelectionPaths

public void removeSelectionPaths(TreePath[] paths)

removeTreeSelectionListener

public void removeTreeSelectionListener(TreeSelectionListener x)

resetRowSelection

public void resetRowSelection()

setRowMapper

public void setRowMapper(RowMapper newMapper)

setSelectionMode

public void setSelectionMode(int mode)

setSelectionPath

public void setSelectionPath(TreePath path)

setSelectionPaths

public void setSelectionPaths(TreePath[] paths)