|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjavax.swing.AbstractAction
gui.JavaScriptAction
public class JavaScriptAction
Class to execute JavaScript code when a button or a menu item is clicked
| Field Summary | |
|---|---|
java.lang.String |
javascriptCode
The actual JavaScript code, that will be executed when the action is performed |
| 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 | |
|---|---|
JavaScriptAction(java.lang.String name,
java.lang.String code)
Constructor that takes the JavaScript code |
|
| Method Summary | |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent arg0)
Executes the JavaScript code |
| 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 |
| Field Detail |
|---|
public java.lang.String javascriptCode
| Constructor Detail |
|---|
public JavaScriptAction(java.lang.String name,
java.lang.String code)
| Method Detail |
|---|
public void actionPerformed(java.awt.event.ActionEvent arg0)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||