public class SpawningClosureActionListener extends Attributable implements java.awt.event.ActionListener
ActionListener.
But not hogging the UI threads cycles (used in askrmp)DEBUG| Constructor and Description |
|---|
SpawningClosureActionListener(Closure closure)
Specifies the closure to be used to handle the given action event.
|
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
void |
setActionClosure(Closure closure)
Sets the closure to be used to handle the given action event.
|
_getAttribute, _setAttribute, getAttribute, getAttributeAsBoolean, getAttributeAsByte, getAttributeAsChar, getAttributeAsClosure, getAttributeAsDouble, getAttributeAsFloat, getAttributeAsInt, getAttributeAsShort, getAttributeAsString, getKeys, getStaticAttribute, getStaticKeys, isAttribute, isStaticAttribute, removeAllAttributes, removeAllStaticAttributes, removeAttribute, removeStaticAttribute, setAttribute, setStaticAttribute, showAttributes, showAttributespublic SpawningClosureActionListener(Closure closure)
closure - the closure should be of arity two.
The first argument as usual is the this object, and the
second argument is the mouse event being handled.public void setActionClosure(Closure closure)
closure - the closure should be of arity two.
The first argument as usual is the this object, and the
second argument is the mouse event being handled.public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListener