itemListener
Runs onItemStateChange on the item event of a component that fires one - the components itemListener lists, over the same event source, which reports the state a component ends up in however it got there.
onItemStateChange is read when the event fires, so writing a fresh lambda on every recomposition registers nothing again.
Return
this chain with the item callback declared on it.
Parameters
receives the event, whose stateChange is ItemEvent.SELECTED or ItemEvent.DESELECTED and whose item is the value it happened to.
See also
Runs onItemStateChange on the item event of a component of type T that fires one, with that component as this.
Return
this chain with the item callback declared on it.
Parameters
read when the event fires. A parameter of the enclosing composable shadows the receiver, so reach it through this. Read the component's state through the receiver; writing a property the composition declares through it makes the second manager listener describes.
See also
Runs onItemStateChange on the item event of a component of type targetType that fires one, with that component as this. An event sourced anywhere else is refused; see listener.
Return
this chain with the item callback declared on it.
Parameters
the component type the node and every event's source are both checked against.
read when the event fires.
See also
Attaches an ItemListener (addItemListener/removeItemListener) to a component that fires item events: AbstractButton (JCheckBox, JRadioButton, JToggleButton, JCheckBoxMenuItem, JRadioButtonMenuItem), JComboBox, and the AWT Checkbox, Choice, and List.
An item listener reports the state a component ends up in, however it got there. A button that a group deselects because another member was picked never fires an action event, so the item listener is the only one deselection reaches.
Return
this chain with the item listener declared on it.
Parameters
attached by identity, so a remembered instance stays put while a fresh one on every pass is detached and re-added.