com.imagero.swing.actions
Class ProxyAction
java.lang.Object
com.imagero.swing.actions.ProxyAction
- All Implemented Interfaces:
- javax.swing.Action, java.awt.event.ActionListener, java.util.EventListener
- public class ProxyAction
- extends java.lang.Object
- implements javax.swing.Action
Gives the possibility to change Action
a) without notifying.
b) for any number of buttons
|
Field Summary |
protected javax.swing.Action |
action
|
| Fields inherited from interface javax.swing.Action |
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
action
protected javax.swing.Action action
ProxyAction
public ProxyAction(javax.swing.Action a)
getValue
public java.lang.Object getValue(java.lang.String key)
- Specified by:
getValue in interface javax.swing.Action
putValue
public void putValue(java.lang.String key,
java.lang.Object value)
- Specified by:
putValue in interface javax.swing.Action
setEnabled
public void setEnabled(boolean b)
- Specified by:
setEnabled in interface javax.swing.Action
isEnabled
public boolean isEnabled()
- Specified by:
isEnabled in interface javax.swing.Action
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
actionPerformed in interface java.awt.event.ActionListener
addPropertyChangeListener
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
- Specified by:
addPropertyChangeListener in interface javax.swing.Action
removePropertyChangeListener
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
- Specified by:
removePropertyChangeListener in interface javax.swing.Action
equals
public boolean equals(java.lang.Object obj)
getAction
public javax.swing.Action getAction()
setAction
public void setAction(javax.swing.Action action)