org.beanfabrics.swing
Class BnMouseClickAction

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

public class BnMouseClickAction
extends BnAction
implements java.awt.event.MouseListener

The BnMouseClickAction is a MouseListener 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
BnMouseClickAction()
          Constructs a BnMouseClickAction.
BnMouseClickAction(IModelProvider provider)
          Constructs a BnMouseClickAction and subscribes it for the model at the root level provided by the given provider.
BnMouseClickAction(IModelProvider provider, Path path)
          Constructs a BnMouseClickAction and subscribes it for the model at the specified Path provided by the given provider.
BnMouseClickAction(IOperationPM pModel)
          Constructs a BnMouseClickAction and binds it to the specified model.
 
Method Summary
 int getClickCount()
           
 void mouseClicked(java.awt.event.MouseEvent e)
           
 void mouseEntered(java.awt.event.MouseEvent e)
           
 void mouseExited(java.awt.event.MouseEvent e)
           
 void mousePressed(java.awt.event.MouseEvent e)
           
 void mouseReleased(java.awt.event.MouseEvent e)
           
 void setClickCount(int aClickCount)
           
 
Methods inherited from class org.beanfabrics.swing.BnAction
getModelProvider, getPath, setModelProvider, setPath
 
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

BnMouseClickAction

public BnMouseClickAction()
Constructs a BnMouseClickAction.


BnMouseClickAction

public BnMouseClickAction(IOperationPM pModel)
Constructs a BnMouseClickAction and binds it to the specified model.

Parameters:
pModel - the model

BnMouseClickAction

public BnMouseClickAction(IModelProvider provider,
                          Path path)
Constructs a BnMouseClickAction 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

BnMouseClickAction

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

Parameters:
provider - the ModelProvider to set initially
Method Detail

setClickCount

public void setClickCount(int aClickCount)

getClickCount

public int getClickCount()

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
Specified by:
mouseClicked in interface java.awt.event.MouseListener

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent e)
Specified by:
mouseEntered in interface java.awt.event.MouseListener

mouseExited

public void mouseExited(java.awt.event.MouseEvent e)
Specified by:
mouseExited in interface java.awt.event.MouseListener

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
Specified by:
mousePressed in interface java.awt.event.MouseListener

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
Specified by:
mouseReleased in interface java.awt.event.MouseListener