public class ClosureItemListener extends Attributable implements java.awt.event.ItemListener
ClosureActionListener
.DEBUG
Constructor and Description |
---|
ClosureItemListener(Closure closure)
Constructs a ClosureItemListener object.
|
Modifier and Type | Method and Description |
---|---|
void |
itemStateChanged(java.awt.event.ItemEvent event) |
void |
setItemStateChangedClosure(Closure closure)
Set closure for execution when listener receives
updates about selectable item.
|
_getAttribute, _setAttribute, getAttribute, getAttributeAsBoolean, getAttributeAsByte, getAttributeAsChar, getAttributeAsClosure, getAttributeAsDouble, getAttributeAsFloat, getAttributeAsInt, getAttributeAsShort, getAttributeAsString, getKeys, getStaticAttribute, getStaticKeys, isAttribute, isStaticAttribute, removeAllAttributes, removeAllStaticAttributes, removeAttribute, removeStaticAttribute, setAttribute, setStaticAttribute, showAttributes, showAttributes
public ClosureItemListener(Closure closure)
closure
- a Closure object
The first argument as usual is the this
object, and the
second argument is the ItemEvent
object being handled.public void setItemStateChangedClosure(Closure closure)
closure
- Closure to be invoked when receiving an eventpublic void itemStateChanged(java.awt.event.ItemEvent event)
itemStateChanged
in interface java.awt.event.ItemListener