|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjavax.swing.AbstractAction
griffon.swing.SwingAction
public class SwingAction extends AbstractAction
An action implementation that relies on a closure to handle events.
| Nested Class Summary | |
|---|---|
static class |
SwingAction.ActionBuilder
A builder for actions. |
| Field Summary | |
|---|---|
private Runnable |
runnable
|
| Fields inherited from class AbstractAction | |
|---|---|
| DEFAULT, NAME, SHORT_DESCRIPTION, LONG_DESCRIPTION, SMALL_ICON, ACTION_COMMAND_KEY, ACCELERATOR_KEY, MNEMONIC_KEY, SELECTED_KEY, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY |
| Constructor Summary | |
SwingAction(Runnable runnable)
|
|
| Method Summary | |
|---|---|
static SwingAction.ActionBuilder
|
action()
|
static SwingAction.ActionBuilder
|
action(Action action)
|
static SwingAction.ActionBuilder
|
action(String name)
|
void
|
actionPerformed(ActionEvent evt)
|
| Methods inherited from class AbstractAction | |
|---|---|
| getValue, putValue, addPropertyChangeListener, isEnabled, setEnabled, removePropertyChangeListener, getPropertyChangeListeners, getKeys, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll, actionPerformed |
| Methods inherited from class Object | |
|---|---|
| wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
| Field Detail |
|---|
private final Runnable runnable
| Constructor Detail |
|---|
public SwingAction(Runnable runnable)
| Method Detail |
|---|
public static SwingAction.ActionBuilder action()
public static SwingAction.ActionBuilder action(Action action)
public static SwingAction.ActionBuilder action(String name)
public final void actionPerformed(ActionEvent evt)
Groovy Documentation