public class HideOnTypeHandler extends org.eclipse.gef.mvc.fx.handlers.AbstractHandler implements org.eclipse.gef.mvc.fx.handlers.IOnStrokeHandler
HideOnTypeHandler
is an IOnTypeHandler
that hides its
host
NodePart
upon the press of a
KeyCode.P
key.adaptable
adaptable
IAdaptable.Bound.Impl<T extends IAdaptable>
Constructor and Description |
---|
HideOnTypeHandler() |
Modifier and Type | Method and Description |
---|---|
void |
abortPress() |
void |
finalRelease(javafx.scene.input.KeyEvent event) |
NodePart |
getHost() |
void |
initialPress(javafx.scene.input.KeyEvent event) |
void |
press(javafx.scene.input.KeyEvent event) |
void |
release(javafx.scene.input.KeyEvent event) |
commit, execute, init, isRegistered, isRegisteredForHost, restoreRefreshVisuals, rollback, storeAndDisableRefreshVisuals
adaptableProperty, getAdaptable, setAdaptable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
adaptableProperty, getAdaptable, setAdaptable
public void abortPress()
abortPress
in interface org.eclipse.gef.mvc.fx.handlers.IOnStrokeHandler
public void finalRelease(javafx.scene.input.KeyEvent event)
finalRelease
in interface org.eclipse.gef.mvc.fx.handlers.IOnStrokeHandler
public NodePart getHost()
getHost
in interface org.eclipse.gef.mvc.fx.handlers.IHandler
getHost
in class org.eclipse.gef.mvc.fx.handlers.AbstractHandler
public void initialPress(javafx.scene.input.KeyEvent event)
initialPress
in interface org.eclipse.gef.mvc.fx.handlers.IOnStrokeHandler
public void press(javafx.scene.input.KeyEvent event)
press
in interface org.eclipse.gef.mvc.fx.handlers.IOnStrokeHandler
public void release(javafx.scene.input.KeyEvent event)
release
in interface org.eclipse.gef.mvc.fx.handlers.IOnStrokeHandler
Copyright (c) 2014 itemis AG and others. All rights reserved.