|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.inet.editor.ActionExecutor
public class ActionExecutor
This is basically an action proxy. Calling actionPerformed an this action will not run the encapsuled action, instead the internal action will be dispatched. That way this action can be attached to a button and run even in a secure applet mode.
Field Summary |
---|
Fields inherited from interface javax.swing.Action |
---|
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON |
Constructor Summary | |
---|---|
ActionExecutor(int code,
char chr,
int modifiers,
javax.swing.JComponent targetComponent)
Creates the action wrapper |
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
|
java.lang.Object |
getValue(java.lang.String key)
|
boolean |
isEnabled()
|
void |
putValue(java.lang.String key,
java.lang.Object value)
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
|
void |
setEnabled(boolean b)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ActionExecutor(int code, char chr, int modifiers, javax.swing.JComponent targetComponent)
code
- the key code of the key pressedchr
- the character pressedmodifiers
- the key modifierstargetComponent
- the target component to execute the action onMethod Detail |
---|
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
addPropertyChangeListener
in interface javax.swing.Action
public java.lang.Object getValue(java.lang.String key)
getValue
in interface javax.swing.Action
public boolean isEnabled()
isEnabled
in interface javax.swing.Action
public void putValue(java.lang.String key, java.lang.Object value)
putValue
in interface javax.swing.Action
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
removePropertyChangeListener
in interface javax.swing.Action
public void setEnabled(boolean b)
setEnabled
in interface javax.swing.Action
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |