public abstract class AbstractFXOnTypePolicy extends AbstractPolicy<javafx.scene.Node>
AbstractFXOnTypePolicy
is called upon keyboard events by the
FXTypeTool
. You can use it as an adapter on any IVisualPart
for which keyboard interaction is desired, and you can also register multiple
instances of AbstractFXOnTypePolicy
on the same IVisualPart
(with different adapter roles).Constructor and Description |
---|
AbstractFXOnTypePolicy() |
Modifier and Type | Method and Description |
---|---|
abstract void |
pressed(javafx.scene.input.KeyEvent event)
This callback method is invoked when the user presses a key while the
host has keyboard focus. |
abstract void |
released(javafx.scene.input.KeyEvent event)
This callback method is invoked when the user releases a key while the
host has keyboard focus. |
commit, disableRefreshVisuals, enableRefreshVisuals, getAdaptable, getHost, init, setAdaptable
public abstract void pressed(javafx.scene.input.KeyEvent event)
host
has keyboard focus.event
- The original KeyEvent
.public abstract void released(javafx.scene.input.KeyEvent event)
host
has keyboard focus.event
- The original KeyEvent
.Copyright (c) 2014 itemis AG and others. All rights reserved.