org.objectweb.fractal.gui.selection.model
Class BasicSelection

java.lang.Object
  extended byorg.objectweb.fractal.gui.selection.model.BasicSelection
All Implemented Interfaces:
org.objectweb.fractal.api.control.BindingController, Selection

public class BasicSelection
extends java.lang.Object
implements Selection, org.objectweb.fractal.api.control.BindingController

Basic implementation of the Selection interface.


Field Summary
static java.lang.String SELECTION_LISTENERS_BINDING
          A collection client interface bound to the listeners of this component.
 
Constructor Summary
BasicSelection()
          Constructs a new BasicSelection component.
 
Method Summary
 void bindFc(java.lang.String clientItfName, java.lang.Object serverItf)
           
 void clearSelection()
          Clears the selection.
 java.lang.Object getSelection()
          Returns the component or interface that is currently selected.
 java.lang.String[] listFc()
           
 java.lang.Object lookupFc(java.lang.String clientItfName)
           
 void selectComponent(Component component)
          Selects the given component.
 void selectInterface(Interface itf)
          Selects the given interface.
 void unbindFc(java.lang.String clientItfName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SELECTION_LISTENERS_BINDING

public static final java.lang.String SELECTION_LISTENERS_BINDING
A collection client interface bound to the listeners of this component.

See Also:
Constant Field Values
Constructor Detail

BasicSelection

public BasicSelection()
Constructs a new BasicSelection 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

getSelection

public java.lang.Object getSelection()
Description copied from interface: Selection
Returns the component or interface that is currently selected.

Specified by:
getSelection in interface Selection
Returns:
the component or interface that is currently selected. May be null if the selection is empty.

selectComponent

public void selectComponent(Component component)
Description copied from interface: Selection
Selects the given component.

Specified by:
selectComponent in interface Selection
Parameters:
component - the component that must be selected.

selectInterface

public void selectInterface(Interface itf)
Description copied from interface: Selection
Selects the given interface.

Specified by:
selectInterface in interface Selection
Parameters:
itf - the interface that must be selected.

clearSelection

public void clearSelection()
Description copied from interface: Selection
Clears the selection.

Specified by:
clearSelection in interface Selection