Groovy Documentation

griffon.swing
[Java] Class SwingAction

java.lang.Object
  javax.swing.AbstractAction
      griffon.swing.SwingAction

public class SwingAction
extends AbstractAction

An action implementation that relies on a closure to handle events.

Authors:
Andres Almiray
Since:
0.9.3


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

runnable

private final Runnable runnable


 
Constructor Detail

SwingAction

public SwingAction(Runnable runnable)


 
Method Detail

action

public static SwingAction.ActionBuilder action()


action

public static SwingAction.ActionBuilder action(Action action)


action

public static SwingAction.ActionBuilder action(String name)


actionPerformed

public final void actionPerformed(ActionEvent evt)


 

Groovy Documentation