![]() ![]() ![]() | |
![]() | |
![]() | |
![]() |
Following is a list of common events broadcast by various classes. Every component should try to broadcast these events if they make sense for that component. This is not a complete list of events for all components, just ones that are likely to be reused by other components. Even though some events specify no parameters, all events have an implicit parameter: a reference to the object broadcasting the event.
Event |
Parameters |
Use |
---|---|---|
|
None |
Used by Button, or whenever a mouse click has no other meaning. |
|
|
Used by ScrollBar and by other controls that cause scrolling (scroll "bumpers" on a scrolling pop-up menu). |
|
None |
Used by List, ComboBox, and other text entry components. |
|
None |
Used when user tries to enter too many characters in text entry components. |
In addition, because of inheritance from UIComponent, all components broadcast the following events:
UIComponent event |
Description |
---|---|
|
The component is creating or loading its subobjects. |
|
The component is unloading its subobjects. |
|
The component now has the input focus. Some HTML-equivalent components (ListBox, ComboBox, Button, Text) might also emit focus, but all emit DOMFocusIn |
|
The component has lost the input focus. |
|
The component has been moved to a new location. |
|
The component has been resized. |
The following table describes common key events:
Key events |
Description |
---|---|
|
A key has been pressed. The |
|
A key has been released. |
![]() | |
![]() | |
![]() | |
![]() ![]() ![]() |