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.

Author:
Michael Karneim
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  void execute()
           
 IOperationPM getPresentationModel()
          Returns the PresentationModel with that this component is synchronized.
protected  void refresh()
          Configures this component depending on the target AbstractPMs attributes.
 void setPresentationModel(IOperationPM pModel)
          Sets the PresentationModel to synchronize this component with.
 
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 with that this component is synchronized.

Specified by:
getPresentationModel in interface View<IOperationPM>
Returns:
the PresentationModel

setPresentationModel

public void setPresentationModel(IOperationPM pModel)
Sets the PresentationModel to synchronize this component with.

Specified by:
setPresentationModel in interface View<IOperationPM>
Parameters:
pModel - the PresentationModel to set

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent evt)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

execute

protected void execute()
                throws java.lang.Throwable
Throws:
java.lang.Throwable

refresh

protected void refresh()
Configures this component depending on the target AbstractPMs attributes.



© 2010 by Michael Karneim, http://www.beanfabrics.org