org.beanfabrics.swing
Class BnAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by org.beanfabrics.swing.internal.OperationPMAction
          extended by org.beanfabrics.swing.BnAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action, org.beanfabrics.ModelSubscriber, org.beanfabrics.View<org.beanfabrics.model.IOperationPM>
Direct Known Subclasses:
BnMouseClickAction

public class BnAction
extends OperationPMAction
implements org.beanfabrics.ModelSubscriber

The BnAction is an Action that can subscribe to 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
BnAction()
          Constructs a new instance of this class.
BnAction(org.beanfabrics.IModelProvider provider)
          Constructs a BnAction and subscribes it for the model at the root level provided by the given provider.
BnAction(org.beanfabrics.IModelProvider provider, org.beanfabrics.Path path)
          Constructs a BnAction and subscribes it for the model at the specified Path provided by the given provider.
BnAction(org.beanfabrics.model.IOperationPM pModel)
          Constructs a BnAction and binds it to the specified model.
 
Method Summary
 org.beanfabrics.IModelProvider getModelProvider()
          
 org.beanfabrics.Path getPath()
          
 void setModelProvider(org.beanfabrics.IModelProvider provider)
          
 void setPath(org.beanfabrics.Path path)
          
 
Methods inherited from class org.beanfabrics.swing.internal.OperationPMAction
actionPerformed, execute, getPresentationModel, refresh, setPresentationModel
 
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

BnAction

public BnAction()
Constructs a new instance of this class.


BnAction

public BnAction(org.beanfabrics.model.IOperationPM pModel)
Constructs a BnAction and binds it to the specified model.

Parameters:
pModel - the model

BnAction

public BnAction(org.beanfabrics.IModelProvider provider,
                org.beanfabrics.Path path)
Constructs a BnAction and subscribes it for the model at the specified Path provided by the given provider.

Parameters:
provider - the ModelProvider to set initially
path - the Path to set initially

BnAction

public BnAction(org.beanfabrics.IModelProvider provider)
Constructs a BnAction and subscribes it for the model at the root level provided by the given provider.

Parameters:
provider - the ModelProvider to set initially
Method Detail

getModelProvider

public org.beanfabrics.IModelProvider getModelProvider()

Specified by:
getModelProvider in interface org.beanfabrics.ModelSubscriber

setModelProvider

public void setModelProvider(org.beanfabrics.IModelProvider provider)

Specified by:
setModelProvider in interface org.beanfabrics.ModelSubscriber

getPath

public org.beanfabrics.Path getPath()

Specified by:
getPath in interface org.beanfabrics.ModelSubscriber

setPath

public void setPath(org.beanfabrics.Path path)

Specified by:
setPath in interface org.beanfabrics.ModelSubscriber