Node. When the Node receives
an input event from the system, it passes this event in to the InputMap where
the InputMap can check all installed
mappings to see if there is any
suitable mapping, and if so, fire the provided EventHandler.
| Modifier and Type | Class and Description |
|---|---|
| public static class | InputMap.
The KeyMapping class provides API to specify
|
| public static class | InputMap.
Convenience class that can act as an keyboard input interceptor, either at a
|
| public abstract static class | InputMap.
The type of T extends Event>Event the mapping represents.Abstract base class for all input mappings as used by the
|
| public static class | InputMap.
The MouseMapping class provides API to specify
|
| public static class | InputMap.
Convenience class that can act as a mouse input interceptor, either at a
|
| Modifier and Type | Field and Description |
|---|---|
| private final ObservableList | |
| private final Map | |
| private final Map | |
| private ObjectProperty | interceptor
The role of the interceptor is to block the InputMap on which it is
set from executing any mappings (contained within itself, or within a
|
| private final ObservableList | |
| private final N | node
* Private fields * * |
| private ReadOnlyObjectWrapper | parentInputMap
* Properties * * |
| Access | Constructor and Description |
|---|---|
| public | InputMap(N
The Node for which this InputMap is attached. node)Creates the new InputMap instance which is related specifically to the given Node. |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | |
| public void | dispose()
Disposes all child InputMaps, removes all event handlers from the Node, and clears the mappings list. |
| public ObservableList | |
| public final Predicate | |
| public ObservableList | |
| public final N | |
| private final InputMap | |
| private InputMap | |
| public void | handle(Event e)
Implements javafx. Invoked when a specific event of the type for which this handler is registered happens. |
| public final ObjectProperty | |
| private List | |
| public Optional | lookupMapping(Object mappingKey)
Looks up the most specific mapping given the input, ignoring all interceptors. |
| private List | |
| private List | |
| private final ReadOnlyObjectProperty | |
| private void | |
| private void | |
| private void | |
| private int | |
| public final void | |
| private final void | |
| private boolean |