org.beanfabrics.swing.internal
Class OperationPMAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by 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

Field Summary
 
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
 
Constructor Summary
OperationPMAction()
           
OperationPMAction(IOperationPM pModel)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent evt)
           
protected  boolean execute()
           
 IOperationPM getPresentationModel()
          Returns the PresentationModel of this view.
protected  void refresh()
          Configures this component depending on the target AbstractPMs attributes.
 void setPresentationModel(IOperationPM newModel)
          Sets the PresentationModel of this view.
 
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
 

Constructor Detail

OperationPMAction

public OperationPMAction()

OperationPMAction

public OperationPMAction(IOperationPM pModel)
Method Detail

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 AbstractPMs attributes.