public class FXTypeTool extends AbstractTool<javafx.scene.Node>
FXTypeTool is an AbstractTool that handles keyboard
input.active, adaptableIAdaptable.Bound.Impl<T extends IAdaptable>| Modifier and Type | Field and Description |
|---|---|
static java.lang.Class<IFXOnTypePolicy> |
ON_TYPE_POLICY_KEY
The type of the policy that has to be supported by target parts.
|
ACTIVE_PROPERTY| Constructor and Description |
|---|
FXTypeTool() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<? extends IFXOnTypePolicy> |
getActivePolicies(IViewer<javafx.scene.Node> viewer)
Returns an (unmodifiable) list containing the
interaction
policies that are currently active within this tool for the given
IViewer, i.e. the target policies of this tool that get notified
about events within the given IViewer. |
protected void |
registerListeners()
This method is called when a valid
IDomain is attached to this
tool so that you can register event listeners for various inputs
(keyboard, mouse) or model changes (selection, scroll offset / viewport). |
protected void |
unregisterListeners()
This method is called when the attached
IDomain is reset to
null so that you can unregister previously registered event
listeners. |
activate, activeProperty, adaptableProperty, clearActivePolicies, deactivate, getAdaptable, getDomain, isActive, setActivePolicies, setAdaptablepublic static final java.lang.Class<IFXOnTypePolicy> ON_TYPE_POLICY_KEY
public java.util.List<? extends IFXOnTypePolicy> getActivePolicies(IViewer<javafx.scene.Node> viewer)
IToolinteraction
policies that are currently active within this tool for the given
IViewer, i.e. the target policies of this tool that get notified
about events within the given IViewer.getActivePolicies in interface ITool<javafx.scene.Node>getActivePolicies in class AbstractTool<javafx.scene.Node>viewer - The IViewer for which to return the active policies.interaction
policies that are currently active within this tool.protected void registerListeners()
AbstractToolIDomain is attached to this
tool so that you can register event listeners for various inputs
(keyboard, mouse) or model changes (selection, scroll offset / viewport).registerListeners in class AbstractTool<javafx.scene.Node>protected void unregisterListeners()
AbstractToolIDomain is reset to
null so that you can unregister previously registered event
listeners.unregisterListeners in class AbstractTool<javafx.scene.Node>Copyright (c) 2014 itemis AG and others. All rights reserved.