org.objectweb.fractal.gui.menu.control
Class CreateAction
java.lang.Object
javax.swing.AbstractAction
org.objectweb.fractal.swing.AbstractAction
org.objectweb.fractal.gui.menu.control.CreateAction
- All Implemented Interfaces:
- Action, org.objectweb.fractal.swing.ActionAttributes, ActionListener, AttributeController, BindingController, Cloneable, EventListener, SelectionListener, Serializable
- Direct Known Subclasses:
- GenerateComponentAction, NewClientInterfaceAction, NewComponentAction, NewServerInterfaceAction
- public abstract class CreateAction
- extends org.objectweb.fractal.swing.AbstractAction
- implements SelectionListener, BindingController
Super classes of actions that create components or interfaces.
- See Also:
- Serialized Form
Method Summary |
void |
bindFc(String clientItfName,
Object serverItf)
Binds the client interface whose name is given to a server interface. |
String[] |
listFc()
Returns the names of the client interfaces of the component to which this
interface belongs. |
Object |
lookupFc(String clientItfName)
Returns the interface to which the given client interface is bound. |
void |
unbindFc(String clientItfName)
Unbinds the given client interface. |
Methods inherited from class org.objectweb.fractal.swing.AbstractAction |
actionPerformed, getAcceleratorKey, getIconURL, getName, getToolTipText, setAcceleratorKey, setIconURL, setName, setToolTipText |
SELECTION_BINDING
public static final String SELECTION_BINDING
- A mandatory client interface bound to a
selection
model.
This model is used to select the created components or interfaces, and
to add them to the selected component.
- See Also:
- Constant Field Values
FACTORY_BINDING
public static final String FACTORY_BINDING
- A mandatory client interface bound to a
factory
component.
This factory is used to create components or interfaces.
- See Also:
- Constant Field Values
CreateAction
public CreateAction()
listFc
public String[] listFc()
- Description copied from interface:
BindingController
- Returns the names of the client interfaces of the component to which this
interface belongs.
- Specified by:
listFc
in interface BindingController
- Returns:
- the names of the client interfaces of the component to which this
interface belongs.
lookupFc
public Object lookupFc(String clientItfName)
- Description copied from interface:
BindingController
- Returns the interface to which the given client interface is bound. More
precisely, returns the server interface to which the client interface whose
name is given is bound. This server interface is necessarily in the same
address space as the client interface (see
bindFc
).
- Specified by:
lookupFc
in interface BindingController
- Parameters:
clientItfName
- the name of a client interface of the component to
which this interface belongs.
- Returns:
- the server interface to which the given interface is bound, or
null if it is not bound.
bindFc
public void bindFc(String clientItfName,
Object serverItf)
- Description copied from interface:
BindingController
- Binds the client interface whose name is given to a server interface. More
precisely, binds the client interface of the component to which this
interface belongs, and whose name is equal to the given name, to the given
server interface. The given server interface must be in the same address
space as the client interface.
- Specified by:
bindFc
in interface BindingController
- Parameters:
clientItfName
- the name of a client interface of the component to
which this interface belongs.serverItf
- a server interface.
unbindFc
public void unbindFc(String clientItfName)
- Description copied from interface:
BindingController
- Unbinds the given client interface. More precisely, unbinds the client
interface of the component to which this interface belongs, and whose name
is equal to the given name.
- Specified by:
unbindFc
in interface BindingController
- Parameters:
clientItfName
- the name of a client interface of the component to
which this interface belongs.