org.objectweb.fractal.gui.history.control
Class GoPreviousAction
java.lang.Object
javax.swing.AbstractAction
org.objectweb.fractal.swing.AbstractAction
org.objectweb.fractal.gui.history.control.GoPreviousAction
- 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, HistoryListener, java.io.Serializable
- public class GoPreviousAction
- extends org.objectweb.fractal.swing.AbstractAction
- implements HistoryListener, org.objectweb.fractal.api.control.BindingController
An action that just calls the goPrevious
method on an HistoryManager
. This action listens to the history model
in order to enable or disable itfself when the canGoPrevious
state changes.
- See Also:
- Serialized Form
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 |
Method Summary |
void |
actionPerformed(java.awt.event.ActionEvent e)
|
void |
bindFc(java.lang.String clientItfName,
java.lang.Object serverItf)
|
void |
historyStateChanged()
Notifies this listener that the state of the history model has changed. |
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 |
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 |
HISTORY_MANAGER_BINDING
public static final java.lang.String HISTORY_MANAGER_BINDING
- A mandatory client interface bound to a
history
model. This is the model modified by this controller component.
- See Also:
- Constant Field Values
GoPreviousAction
public GoPreviousAction()
- Constructs a new
GoPreviousAction
component.
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
historyStateChanged
public void historyStateChanged()
- Description copied from interface:
HistoryListener
- Notifies this listener that the state of the history model has changed.
This method is called each time the state of the history model has changed
in such a way that the result of
canGoPrevious
or canGoNext
changes.
- Specified by:
historyStateChanged
in interface HistoryListener
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
actionPerformed
in interface java.awt.event.ActionListener