org.objectweb.fractal.gui.selection.model
Interface Selection

All Known Implementing Classes:
BasicSelection

public interface Selection

A model for the selection.


Method Summary
 void clearSelection()
          Clears the selection.
 Object getSelection()
          Returns the component or interface that is currently selected.
 void selectComponent(Component component)
          Selects the given component.
 void selectInterface(Interface itf)
          Selects the given interface.
 

Method Detail

getSelection

public Object getSelection()
Returns the component or interface that is currently selected.

Returns:
the component or interface that is currently selected. May be null if the selection is empty.

selectComponent

public void selectComponent(Component component)
Selects the given component.

Parameters:
component - the component that must be selected.

selectInterface

public void selectInterface(Interface itf)
Selects the given interface.

Parameters:
itf - the interface that must be selected.

clearSelection

public void clearSelection()
Clears the selection.