public class HideOnTypePolicy extends AbstractInteractionPolicy<javafx.scene.Node> implements IFXOnTypePolicy
HideOnTypePolicy
is an IFXOnTypePolicy
that hides its
host
NodePart
upon the press of a
KeyCode.P
key.Constructor and Description |
---|
HideOnTypePolicy() |
Modifier and Type | Method and Description |
---|---|
NodePart |
getHost() |
void |
pressed(javafx.scene.input.KeyEvent event) |
void |
released(javafx.scene.input.KeyEvent event) |
void |
typed(javafx.scene.input.KeyEvent event) |
void |
unfocus() |
commit, init, restoreRefreshVisuals, rollback, storeAndDisableRefreshVisuals
getAdaptable, setAdaptable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAdaptable, setAdaptable
public NodePart getHost()
getHost
in interface IPolicy<javafx.scene.Node>
getHost
in class AbstractPolicy<javafx.scene.Node>
public void pressed(javafx.scene.input.KeyEvent event)
pressed
in interface IFXOnTypePolicy
public void released(javafx.scene.input.KeyEvent event)
released
in interface IFXOnTypePolicy
public void typed(javafx.scene.input.KeyEvent event)
typed
in interface IFXOnTypePolicy
public void unfocus()
unfocus
in interface IFXOnTypePolicy
Copyright (c) 2014 itemis AG and others. All rights reserved.