|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.AbstractAction
de.kleopatra.view.presentation.DelegateAction
Delegates the action performed to another ActionListener.
Field Summary |
Fields inherited from class javax.swing.AbstractAction |
changeSupport, enabled |
Fields inherited from interface javax.swing.Action |
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON |
Constructor Summary | |
DelegateAction()
|
|
DelegateAction(java.lang.String name)
|
Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent evt)
|
void |
addAction(javax.swing.Action action)
add action as actionListener. |
void |
addActionListener(java.awt.event.ActionListener listener)
add actionListener as delegate and set handler to null. |
void |
addActionListener(java.awt.event.ActionListener listener,
java.lang.Object handler)
add actionListener as delegate and set handler. |
java.awt.event.ActionListener[] |
getActionListeners()
|
java.lang.Object |
getHandler()
used in testing only. |
protected java.util.Map |
getValueMap()
|
void |
removeActionListener(java.awt.event.ActionListener listener)
remove actionListener and handler, if any. |
void |
setEnabled(boolean enabled)
|
java.lang.String |
toString()
convenience: returns list of properties. |
protected void |
updateEnabledFromDelegate(boolean delegateEnabled)
|
Methods inherited from class javax.swing.AbstractAction |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public DelegateAction(java.lang.String name)
public DelegateAction()
Method Detail |
public void actionPerformed(java.awt.event.ActionEvent evt)
public void setEnabled(boolean enabled)
public void addActionListener(java.awt.event.ActionListener listener, java.lang.Object handler)
PENDING: do we really need access to the handler? internally used for testing only
public void addActionListener(java.awt.event.ActionListener listener)
listener
- public void addAction(javax.swing.Action action)
guarantees synch of enabled property between this and the action.
action
- public void removeActionListener(java.awt.event.ActionListener listener)
public java.awt.event.ActionListener[] getActionListeners()
public java.lang.Object getHandler()
public java.lang.String toString()
protected void updateEnabledFromDelegate(boolean delegateEnabled)
protected java.util.Map getValueMap()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |