VR
- The visual root node of the UI toolkit used, e.g.
javafx.scene.Node in case of JavaFX.public class HoverBehavior<VR> extends AbstractBehavior<VR>
HoverBehavior
is responsible for creating and removing selection
feedback.active
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PART_FACTORIES_BINDING_NAME
The name of the named injection that is used within this
HoverBehavior to obtain an IFeedbackPartFactory . |
ACTIVE_PROPERTY
Constructor and Description |
---|
HoverBehavior() |
Modifier and Type | Method and Description |
---|---|
protected void |
doActivate()
Post
AbstractBehavior.activate() hook that may be overwritten to e.g. register
listeners. |
protected void |
doDeactivate()
Pre
AbstractBehavior.deactivate() hook that may be overwritten to e.g. unregister
listeners. |
protected IFeedbackPartFactory<VR> |
getFeedbackPartFactory()
Returns the
IFeedbackPartFactory that was injected into this
HoverBehavior . |
protected HoverModel<VR> |
getHoverModel()
Returns the
HoverModel in the context of the host . |
protected void |
onHoverChange(IVisualPart<VR,? extends VR> oldHovered,
IVisualPart<VR,? extends VR> newHovered)
Called when the
HoverModel changes, i.e. a part is unhovered or
hovered. |
activate, activeProperty, addFeedback, addHandles, deactivate, getAdaptable, getFeedbackParts, getHandleParts, getHost, isActive, removeFeedback, removeHandles, setAdaptable, switchAdaptableScopes, updateHandles
public static final java.lang.String PART_FACTORIES_BINDING_NAME
HoverBehavior
to obtain an IFeedbackPartFactory
.protected void doActivate()
AbstractBehavior
AbstractBehavior.activate()
hook that may be overwritten to e.g. register
listeners.doActivate
in class AbstractBehavior<VR>
protected void doDeactivate()
AbstractBehavior
AbstractBehavior.deactivate()
hook that may be overwritten to e.g. unregister
listeners.doDeactivate
in class AbstractBehavior<VR>
protected IFeedbackPartFactory<VR> getFeedbackPartFactory()
IFeedbackPartFactory
that was injected into this
HoverBehavior
.IFeedbackPartFactory
that was injected into this
HoverBehavior
.protected HoverModel<VR> getHoverModel()
HoverModel
in the context of the host
.HoverModel
in the context of the host
.protected void onHoverChange(IVisualPart<VR,? extends VR> oldHovered, IVisualPart<VR,? extends VR> newHovered)
HoverModel
changes, i.e. a part is unhovered or
hovered. Adds/Removes feedback accordingly.oldHovered
- The previously hovered part, or null
.newHovered
- The newly hovered part, or null
.Copyright (c) 2014 itemis AG and others. All rights reserved.