Oracle Data-aware Controls Reference

oracle.dacf.control.swing
Class TreeControl.TreeControlTree.TreeControlSelectionModel

java.lang.Object
  |
  +--javax.swing.tree.DefaultTreeSelectionModel
        |
        +--oracle.dacf.control.swing.TreeControl.TreeControlTree.TreeControlSelectionModel
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable, javax.swing.tree.TreeSelectionModel
Enclosing class:
TreeControl.TreeControlTree

public class TreeControl.TreeControlTree.TreeControlSelectionModel
extends javax.swing.tree.DefaultTreeSelectionModel

See Also:
Serialized Form

Fields inherited from class javax.swing.tree.DefaultTreeSelectionModel
changeSupport, leadIndex, leadPath, leadRow, listenerList, listSelectionModel, rowMapper, selection, SELECTION_MODE_PROPERTY, selectionMode
 
Fields inherited from interface javax.swing.tree.TreeSelectionModel
CONTIGUOUS_TREE_SELECTION, DISCONTIGUOUS_TREE_SELECTION, SINGLE_TREE_SELECTION
 
Constructor Summary
TreeControl.TreeControlTree.TreeControlSelectionModel()
           
 
Method Summary
 void addSelectionPaths(javax.swing.tree.TreePath[] paths)
          Adds paths to the current selection.
protected  void fireValueChanged(javax.swing.event.TreeSelectionEvent event)
           
 void removeSelectionPaths(javax.swing.tree.TreePath[] paths)
          Removes paths from the selection.
 void setSelectionPaths(javax.swing.tree.TreePath[] pPaths)
          Sets the selection to the paths in paths.
 
Methods inherited from class javax.swing.tree.DefaultTreeSelectionModel
addPropertyChangeListener, addSelectionPath, addTreeSelectionListener, arePathsContiguous, canPathsBeAdded, canPathsBeRemoved, clearSelection, clone, getLeadSelectionPath, getLeadSelectionRow, getListeners, getMaxSelectionRow, getMinSelectionRow, getRowMapper, getSelectionCount, getSelectionMode, getSelectionPath, getSelectionPaths, getSelectionRows, insureRowContinuity, insureUniqueness, isPathSelected, isRowSelected, isSelectionEmpty, notifyPathChange, removePropertyChangeListener, removeSelectionPath, removeTreeSelectionListener, resetRowSelection, setRowMapper, setSelectionMode, setSelectionPath, toString, updateLeadIndex
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TreeControl.TreeControlTree.TreeControlSelectionModel

public TreeControl.TreeControlTree.TreeControlSelectionModel()
Method Detail

setSelectionPaths

public void setSelectionPaths(javax.swing.tree.TreePath[] pPaths)
Sets the selection to the paths in paths. If this represents a change the TreeSelectionListeners are notified. Potentially paths will be held by the reciever, in other words don't change any of the objects in the array once passed in.
Overrides:
setSelectionPaths in class javax.swing.tree.DefaultTreeSelectionModel
Parameters:
paths - new selection.

addSelectionPaths

public void addSelectionPaths(javax.swing.tree.TreePath[] paths)
Adds paths to the current selection. If any of the paths in paths are not currently in the selection the TreeSelectionListeners are notified.
Overrides:
addSelectionPaths in class javax.swing.tree.DefaultTreeSelectionModel
Parameters:
path - the new path to add to the current selection.

removeSelectionPaths

public void removeSelectionPaths(javax.swing.tree.TreePath[] paths)
Removes paths from the selection. If any of the paths in paths are in the selection the TreeSelectionListeners are notified.
Overrides:
removeSelectionPaths in class javax.swing.tree.DefaultTreeSelectionModel
Parameters:
path - the path to remove from the selection.

fireValueChanged

protected void fireValueChanged(javax.swing.event.TreeSelectionEvent event)
Overrides:
fireValueChanged in class javax.swing.tree.DefaultTreeSelectionModel

Oracle Data-aware Controls Reference