org.beanfabrics.swing.internal
Class OperationPMAction
java.lang.Object
javax.swing.AbstractAction
org.beanfabrics.swing.internal.OperationPMAction
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action, View<IOperationPM>
- Direct Known Subclasses:
- BnAction
public class OperationPMAction
- extends javax.swing.AbstractAction
- implements View<IOperationPM>
The OperationPMAction
is an Action
that is a view on an
IOperationPM
.
- 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, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON |
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 |
OperationPMAction
public OperationPMAction()
OperationPMAction
public OperationPMAction(IOperationPM pModel)
getPresentationModel
public IOperationPM getPresentationModel()
- Returns the
PresentationModel
of this view.
- Specified by:
getPresentationModel
in interface View<IOperationPM>
- Returns:
- the
PresentationModel
setPresentationModel
public void setPresentationModel(IOperationPM newModel)
- Sets the
PresentationModel
of this view.
- Specified by:
setPresentationModel
in interface View<IOperationPM>
- Parameters:
newModel
- the PresentationModel
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent evt)
- Specified by:
actionPerformed
in interface java.awt.event.ActionListener
execute
protected boolean execute()
throws java.lang.Throwable
- Throws:
java.lang.Throwable
refresh
protected void refresh()
- Configures this component depending on the target
AbstractPM
s
attributes.