public class FXSelectFocusedOnTypePolicy extends AbstractFXInteractionPolicy implements IFXOnTypePolicy
FXSelectFocusedOnTypePolicy implements (de-)selecting a focused
part via the keyboard.adaptableadaptableIAdaptable.Bound.Impl<T extends IAdaptable>| Constructor and Description |
|---|
FXSelectFocusedOnTypePolicy() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
isSelect(javafx.scene.input.KeyEvent event)
Returns
true if the given KeyEvent should trigger
selection. |
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, isRegisteredForHostcommit, init, restoreRefreshVisuals, rollback, storeAndDisableRefreshVisualsadaptableProperty, getAdaptable, getHost, setAdaptableclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadaptableProperty, getAdaptable, setAdaptableprotected boolean isSelect(javafx.scene.input.KeyEvent event)
true if the given KeyEvent should trigger
selection. Otherwise returns false. Per default returns
true if <Space> is pressed.event - The KeyEvent in question.true if the given KeyEvent should trigger
zooming, otherwise false.public void pressed(javafx.scene.input.KeyEvent event)
IFXOnTypePolicypressed in interface IFXOnTypePolicyevent - The original KeyEvent.public void released(javafx.scene.input.KeyEvent event)
IFXOnTypePolicyreleased in interface IFXOnTypePolicyevent - The original KeyEvent.public void typed(javafx.scene.input.KeyEvent event)
IFXOnTypePolicytyped in interface IFXOnTypePolicyevent - The original KeyEvent.public void unfocus()
IFXOnTypePolicyunfocus in interface IFXOnTypePolicyCopyright (c) 2014 itemis AG and others. All rights reserved.