| stateChanged |
(ChangeEvent event) |
yoix.event |
| |
The
stateChanged
event handler is a special user-defined
Function
that can be added to a
JButton
(and related buttons),
JColorChooser,
JProgressBar,
JSlider
or
JTabbedPane
component when it is created
and that will be called automatically with a single
ChangeEvent
argument when a state change, as described below, occurs within the component.
A
stateChanged
event handler can only be added via
addEventHandler
after a component is created,
but an existing
stateChanged
event handler can be assigned new values.
Assigning
NULL
to
stateChanged
disables its functionality until a
non-NULL
value is assigned to it.
A state change means different things in different components as
indicated in the following:
| JButton |
state changes occur when the button
armed,
enabled,
pressed,
rollover
or
state(or selected)
fields are changed.
| | JColorChooser |
state changes occur whenever a new color is viewed in the preview panel.
| | JProgressBar |
state changes occur when the progressbar
maximum,
minimum
or
value
fields are changed.
| | JSlider |
state changes occur when the slider
extent,
maximum,
minimum
or
value
fields are changed.
| | JTabbedPane |
state changes occur when the tabbedpane
selected
field is changed.
|
| |
| Return: |
none
| | |
| See Also: |
actionPerformed,
addEventHandler,
adjustmentValueChanged,
caretUpdate,
ChangeEvent,
componentHidden,
componentMoved,
componentResized,
componentShown,
dragDropEnd,
dragEnter,
dragExit,
dragGestureRecognized,
dragMouseMoved,
dragOver,
drop,
dropActionChanged,
Event,
focusGained,
focusLost,
hyperlinkActivated,
hyperlinkEntered,
hyperlinkExited,
invocationAction,
invocationBrowse,
invocationChange,
invocationEdit,
invocationEditKey,
invocationRun,
invocationSelection,
itemStateChanged,
keyPressed,
keyReleased,
keyTyped,
mouseClicked,
mouseDragged,
mouseEntered,
mouseExited,
mouseMoved,
mousePressed,
mouseReleased,
mouseWheelMoved,
removeEventHandler,
textValueChanged,
valueChanged,
windowActivated,
windowClosed,
windowClosing,
windowDeactivated,
windowDeiconified,
windowIconified,
windowOpened
|
|
Yoix is a registered trademark of AT&T Inc.
|
|