org.objectweb.fractal.gui.clipboard.control
Class ClipboardAction

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended byorg.objectweb.fractal.swing.AbstractAction
          extended byorg.objectweb.fractal.gui.clipboard.control.ClipboardAction
All Implemented Interfaces:
javax.swing.Action, org.objectweb.fractal.swing.ActionAttributes, java.awt.event.ActionListener, org.objectweb.fractal.api.control.AttributeController, org.objectweb.fractal.api.control.BindingController, java.lang.Cloneable, java.util.EventListener, SelectionListener, java.io.Serializable
Direct Known Subclasses:
CopyAction, CutAction, PasteAction, PasteAsSharedAction

public abstract class ClipboardAction
extends org.objectweb.fractal.swing.AbstractAction
implements SelectionListener, org.objectweb.fractal.api.control.BindingController

Super class of actions that acts on a clipboard model. This action listens to a selection model in order to enable or disable itfself when the selection changes.

See Also:
Serialized Form

Field Summary
static java.lang.String CLIPBOARD_BINDING
          A mandatory client interface bound to a clipboard model.
static java.lang.String FACTORY_BINDING
          A mandatory client interface bound to a factory.
static java.lang.String GRAPH_BINDING
          A mandatory client interface bound to a graph model.
static java.lang.String SELECTION_BINDING
          A mandatory client interface bound to a selection model.
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
ClipboardAction()
          Constructs a new ClipboardAction 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 unbindFc(java.lang.String clientItfName)
           
 
Methods inherited from class org.objectweb.fractal.swing.AbstractAction
actionPerformed, getAcceleratorKey, getIconURL, getName, getToolTipText, setAcceleratorKey, setIconURL, setName, setToolTipText
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.objectweb.fractal.gui.selection.model.SelectionListener
selectionChanged
 

Field Detail

SELECTION_BINDING

public static final java.lang.String SELECTION_BINDING
A mandatory client interface bound to a selection model. This model is used to known the component that must be cut or copied, or the component into which the clipboard's content must be pasted.

See Also:
Constant Field Values

GRAPH_BINDING

public static final java.lang.String GRAPH_BINDING
A mandatory client interface bound to a graph model. This graph model is passed as argument to the clipboard model methods by this controller component.

See Also:
Constant Field Values

FACTORY_BINDING

public static final java.lang.String FACTORY_BINDING
A mandatory client interface bound to a factory. This factory is passed as argument to the clipboard model methods by this controller component.

See Also:
Constant Field Values

CLIPBOARD_BINDING

public static final java.lang.String CLIPBOARD_BINDING
A mandatory client interface bound to a clipboard model. This is the model that is modified by this controller component.

See Also:
Constant Field Values
Constructor Detail

ClipboardAction

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