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

Interface TreeSelectionModel

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


public interface TreeSelectionModel

TreeSelectionModel interface

Author:

Field Summary

static intCONTIGUOUS_TREE_SELECTION

static intDISCONTIGUOUS_TREE_SELECTION

static intSINGLE_TREE_SELECTION

TreeSelectionModel interface

Method Summary

voidaddPropertyChangeListener(java.beans.PropertyChangeListener listener)

voidaddSelectionPath(javax.swing.tree.TreePath path)

voidaddSelectionPaths(javax.swing.tree.TreePath[] paths)

voidaddTreeSelectionListener(javax.swing.event.TreeSelectionListener x)

voidclearSelection()

javax.swing.tree.TreePathgetLeadSelectionPath()

intgetLeadSelectionRow()

intgetMaxSelectionRow()

intgetMinSelectionRow()

javax.swing.tree.RowMappergetRowMapper()

intgetSelectionCount()

intgetSelectionMode()

javax.swing.tree.TreePathgetSelectionPath()

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

int[]getSelectionRows()

booleanisPathSelected(javax.swing.tree.TreePath path)

booleanisRowSelected(int row)

booleanisSelectionEmpty()

voidremovePropertyChangeListener(java.beans.PropertyChangeListener listener)

voidremoveSelectionPath(javax.swing.tree.TreePath path)

voidremoveSelectionPaths(javax.swing.tree.TreePath[] paths)

voidremoveTreeSelectionListener(javax.swing.event.TreeSelectionListener x)

voidresetRowSelection()

voidsetRowMapper(javax.swing.tree.RowMapper newMapper)

voidsetSelectionMode(int mode)

voidsetSelectionPath(javax.swing.tree.TreePath path)

voidsetSelectionPaths(javax.swing.tree.TreePath[] paths)

Field Details

CONTIGUOUS_TREE_SELECTION

public static final int CONTIGUOUS_TREE_SELECTION


DISCONTIGUOUS_TREE_SELECTION

public static final int DISCONTIGUOUS_TREE_SELECTION


SINGLE_TREE_SELECTION

public static final int SINGLE_TREE_SELECTION

TreeSelectionModel interface

Author:

Method Details

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)

Parameters:


addSelectionPath

public void addSelectionPath(javax.swing.tree.TreePath path)

Parameters:


addSelectionPaths

public void addSelectionPaths(javax.swing.tree.TreePath[] paths)

Parameters:


addTreeSelectionListener

public void addTreeSelectionListener(javax.swing.event.TreeSelectionListener x)

Parameters:


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(javax.swing.tree.TreePath path)

Parameters:


isRowSelected

public boolean isRowSelected(int row)

Parameters:


isSelectionEmpty

public boolean isSelectionEmpty()


removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)

Parameters:


removeSelectionPath

public void removeSelectionPath(javax.swing.tree.TreePath path)

Parameters:


removeSelectionPaths

public void removeSelectionPaths(javax.swing.tree.TreePath[] paths)

Parameters:


removeTreeSelectionListener

public void removeTreeSelectionListener(javax.swing.event.TreeSelectionListener x)

Parameters:


resetRowSelection

public void resetRowSelection()


setRowMapper

public void setRowMapper(javax.swing.tree.RowMapper newMapper)

Parameters:


setSelectionMode

public void setSelectionMode(int mode)

Parameters:


setSelectionPath

public void setSelectionPath(javax.swing.tree.TreePath path)

Parameters:


setSelectionPaths

public void setSelectionPaths(javax.swing.tree.TreePath[] paths)

Parameters: