org.objectweb.fractal.gui.tree.model
Class BasicTreeSelectionModel

java.lang.Object
  extended byjavax.swing.tree.DefaultTreeSelectionModel
      extended byorg.objectweb.fractal.gui.tree.model.BasicTreeSelectionModel
All Implemented Interfaces:
org.objectweb.fractal.api.control.BindingController, java.lang.Cloneable, SelectionListener, java.io.Serializable, javax.swing.tree.TreeSelectionModel

public class BasicTreeSelectionModel
extends javax.swing.tree.DefaultTreeSelectionModel
implements SelectionListener, org.objectweb.fractal.api.control.BindingController

A TreeSelectionModel based on a Selection. This model makes a conversion from a Selection model to a TreeSelectionModel. It listens to the selection in order to update its state when the selection changes.

See Also:
Serialized Form

Field Summary
static java.lang.String CONFIGURATION_BINDING
          An optional client interface bound to a configuration model.
static java.lang.String SELECTION_BINDING
          A mandatory client interface bound to a selection model.
 
Fields inherited from class javax.swing.tree.DefaultTreeSelectionModel
changeSupport, leadIndex, leadPath, leadRow, listenerList, listSelectionModel, rowMapper, SELECTION_MODE_PROPERTY, selectionMode
 
Fields inherited from interface javax.swing.tree.TreeSelectionModel
CONTIGUOUS_TREE_SELECTION, DISCONTIGUOUS_TREE_SELECTION, SINGLE_TREE_SELECTION
 
Constructor Summary
BasicTreeSelectionModel()
          Constructs a new BasicTreeSelectionModel component.
 
Method Summary
 void bindFc(java.lang.String clientItfName, java.lang.Object serverItf)
           
 java.lang.String[] listFc()
           
 java.lang.Object lookupFc(java.lang.String clientItfName)
           
 void selectionChanged()
          Notifies this listener that the selection has changed.
 void setSelectionPath(javax.swing.tree.TreePath path)
           
 void unbindFc(java.lang.String clientItfName)
           
 
Methods inherited from class javax.swing.tree.DefaultTreeSelectionModel
addPropertyChangeListener, addSelectionPath, addSelectionPaths, addTreeSelectionListener, arePathsContiguous, canPathsBeAdded, canPathsBeRemoved, clearSelection, clone, fireValueChanged, getLeadSelectionPath, getLeadSelectionRow, getListeners, getMaxSelectionRow, getMinSelectionRow, getPropertyChangeListeners, getRowMapper, getSelectionCount, getSelectionMode, getSelectionPath, getSelectionPaths, getSelectionRows, getTreeSelectionListeners, insureRowContinuity, insureUniqueness, isPathSelected, isRowSelected, isSelectionEmpty, notifyPathChange, removePropertyChangeListener, removeSelectionPath, removeSelectionPaths, removeTreeSelectionListener, resetRowSelection, setRowMapper, setSelectionMode, setSelectionPaths, toString, updateLeadIndex
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CONFIGURATION_BINDING

public static final java.lang.String CONFIGURATION_BINDING
An optional client interface bound to a configuration model. The root component of this configuration is changed each time the selection is changed through this model (but not if the selection model on which this model is based changes).

See Also:
Constant Field Values

SELECTION_BINDING

public static final java.lang.String SELECTION_BINDING
A mandatory client interface bound to a selection model. This is the model on which this model is based and synchronized.

See Also:
Constant Field Values
Constructor Detail

BasicTreeSelectionModel

public BasicTreeSelectionModel()
Constructs a new BasicTreeSelectionModel component.

Method Detail

listFc

public java.lang.String[] listFc()
Specified by:
listFc in interface org.objectweb.fractal.api.control.BindingController

lookupFc

public java.lang.Object lookupFc(java.lang.String clientItfName)
Specified by:
lookupFc in interface org.objectweb.fractal.api.control.BindingController

bindFc

public void bindFc(java.lang.String clientItfName,
                   java.lang.Object serverItf)
Specified by:
bindFc in interface org.objectweb.fractal.api.control.BindingController

unbindFc

public void unbindFc(java.lang.String clientItfName)
Specified by:
unbindFc in interface org.objectweb.fractal.api.control.BindingController

selectionChanged

public void selectionChanged()
Description copied from interface: SelectionListener
Notifies this listener that the selection has changed.

Specified by:
selectionChanged in interface SelectionListener

setSelectionPath

public void setSelectionPath(javax.swing.tree.TreePath path)
Specified by:
setSelectionPath in interface javax.swing.tree.TreeSelectionModel