public class FXTraverseFocusOnTypePolicy extends AbstractFXInteractionPolicy implements IFXOnTypePolicy
FXTraverseFocusOnTypePolicy
implements focus traversal via
keyboard input.adaptable
adaptable
IAdaptable.Bound.Impl<T extends IAdaptable>
Constructor and Description |
---|
FXTraverseFocusOnTypePolicy() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
isTraverse(javafx.scene.input.KeyEvent event)
Returns
true if the given KeyEvent should trigger
focus traversal. |
void |
pressed(javafx.scene.input.KeyEvent event)
This callback method is invoked when the user presses a key while the
host has keyboard focus.
|
void |
released(javafx.scene.input.KeyEvent event)
This callback method is invoked when the user releases a key while the
host has keyboard focus.
|
void |
typed(javafx.scene.input.KeyEvent event)
This callback method is invoked when the user types a unicode key while
the host has keyboard focus.
|
void |
unfocus()
This callback method is invoked when the viewer loses its focus while a
key press/release gesture is running.
|
isRegistered, isRegisteredForHost
commit, init, restoreRefreshVisuals, rollback, storeAndDisableRefreshVisuals
adaptableProperty, getAdaptable, getHost, setAdaptable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
adaptableProperty, getAdaptable, setAdaptable
protected boolean isTraverse(javafx.scene.input.KeyEvent event)
true
if the given KeyEvent
should trigger
focus traversal. Otherwise returns false
. Per default
returns true
if <Tab>
is pressed..event
- The KeyEvent
in question.true
if the given KeyEvent
should trigger
focus traversal, otherwise false
.public void pressed(javafx.scene.input.KeyEvent event)
IFXOnTypePolicy
pressed
in interface IFXOnTypePolicy
event
- The original KeyEvent
.public void released(javafx.scene.input.KeyEvent event)
IFXOnTypePolicy
released
in interface IFXOnTypePolicy
event
- The original KeyEvent
.public void typed(javafx.scene.input.KeyEvent event)
IFXOnTypePolicy
typed
in interface IFXOnTypePolicy
event
- The original KeyEvent
.public void unfocus()
IFXOnTypePolicy
unfocus
in interface IFXOnTypePolicy
Copyright (c) 2014 itemis AG and others. All rights reserved.