public class ClosureListSelectionListener extends Attributable implements javax.swing.event.ListSelectionListener
ListSelectionListener.DEBUG| Constructor and Description |
|---|
ClosureListSelectionListener() |
ClosureListSelectionListener(Closure closure)
Specifies the closure to be used to handle the given action event.
|
| Modifier and Type | Method and Description |
|---|---|
void |
setValueChangedClosure(Closure closure)
Sets the closure to be used to handle the given action event.
|
void |
valueChanged(javax.swing.event.ListSelectionEvent e) |
_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 ClosureListSelectionListener()
public ClosureListSelectionListener(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 setValueChangedClosure(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 valueChanged(javax.swing.event.ListSelectionEvent e)
valueChanged in interface javax.swing.event.ListSelectionListener