org.beanfabrics.swing
Class BnMouseClickAction
java.lang.Object
javax.swing.AbstractAction
org.beanfabrics.swing.internal.OperationPMAction
org.beanfabrics.swing.BnAction
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.
- Author:
- Michael Karneim
- 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 |
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 initiallypath - 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
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
© 2010 by Michael Karneim, http://www.beanfabrics.org