|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.AbstractAction
org.objectweb.fractal.swing.AbstractAction
org.objectweb.fractal.gui.menu.control.DeleteAction
An action to delete the currently selected component or interface. This action listens to the selection model in order to enable or disable itfself when the selection changes.
| Field Summary | |
static 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 | |
DeleteAction()
Constructs a new DeleteAction component. |
|
| Method Summary | |
void |
actionPerformed(ActionEvent e)
|
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 |
selectionChanged()
Notifies this listener that the selection has changed. |
void |
unbindFc(String clientItfName)
Unbinds the given client interface. |
| Methods inherited from class org.objectweb.fractal.swing.AbstractAction |
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 |
| Field Detail |
public static final String SELECTION_BINDING
selection model.
This model is used to know the component or interface to be deleted.
| Constructor Detail |
public DeleteAction()
DeleteAction component.
| Method Detail |
public String[] listFc()
BindingController
listFc in interface BindingControllerpublic Object lookupFc(String clientItfName)
BindingControllerbindFc).
lookupFc in interface BindingControllerclientItfName - the name of a client interface of the component to
which this interface belongs.
public void bindFc(String clientItfName,
Object serverItf)
BindingController
bindFc in interface BindingControllerclientItfName - the name of a client interface of the component to
which this interface belongs.serverItf - a server interface.public void unbindFc(String clientItfName)
BindingController
unbindFc in interface BindingControllerclientItfName - the name of a client interface of the component to
which this interface belongs.public void selectionChanged()
SelectionListener
selectionChanged in interface SelectionListenerpublic void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||