![]() ![]() The following statement shows the definition for the method that registers an event handler to handle the events that are generated when a key is typed, that is, when a key is pressed and released: For example, an event handler for InputEvent could be used when the event is either a keyboard event or a mouse event. The string indicates that the method accepts an event handler for event-class or an event handler for one of its super classes as the argument. event-class is the class that defines the event type, for example, KeyEvent for events related to keyboard input or MouseEvent for events related to mouse input. ![]() ![]() Item in a list, table, or tree is edited.Ĭonvenience methods for registering event handlers have the following format:Įvent-type is the type of event that the handler processes, for example, setOnKeyTyped for KEY_TYPED events or setOnMouseClicked for MOUSE_CLICKED events. Rotation gesture is performed on an objectīutton is pressed, combo box is shown or hidden, or a menu item is selected.īuttonBase, ComboBoxBase, ContextMenu, MenuItem, TextField Platform-supported drag and drop action is performed. Input from an alternate method for entering characters (typically for a foreign language) is generated, changed, removed, or committed. Mouse is moved or a button on the mouse is pressed.įull mouse press-drag-release action is performed. Table 2-1 Classes with Convenience Methods for Event Handling User Action Handling Concurrent Touch Points Independently.Additional Events Generated from Touches.Touch Point Targets and Touch Event Targets.Registering and Removing an Event Handlerĥ Working with Events from Touch-Enabled Devices.Filters for the Draggable Panels Example.Registering and Removing an Event Filter. ![]()
0 Comments
Leave a Reply. |