public class HoverIntentBehavior extends AbstractBehavior
HoverIntentBehavior
complements the HoverBehavior
w.r.t.
feedback and handle generation in response to HoverModel
changes.
While HoverBehavior
is responsible for generating feedback and
handles for the HoverModel.hoverProperty()
, the
HoverIntentBehavior
is responsible for generating feedback and
handles for the HoverModel.hoverIntentProperty()
.active, adaptable
IAdaptable.Bound.Impl<T extends IAdaptable>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
HOVER_INTENT_FEEDBACK_PART_FACTORY
The adapter role for the
IFeedbackPartFactory that is used to
generate hover feedback parts. |
static java.lang.String |
HOVER_INTENT_HANDLE_PART_FACTORY
The adapter role for the
IHandlePartFactory that is used to
generate hover handle parts. |
ACTIVE_PROPERTY
Constructor and Description |
---|
HoverIntentBehavior() |
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 |
getFeedbackPartFactory(IViewer viewer)
Returns the
IFeedbackPartFactory that should be used for feedback
creation. |
protected IHandlePartFactory |
getHandlePartFactory(IViewer viewer)
Returns the
IHandlePartFactory that should be used for handle
creation. |
protected HoverModel |
getHoverModel()
Returns the
HoverModel in the context of the host . |
protected void |
onHoverIntentChange(IContentPart<? extends javafx.scene.Node> oldHoverIntent,
IContentPart<? extends javafx.scene.Node> newHoverIntent)
Callback method that is invoked when the
HoverModel.hoverIntentProperty() changes. |
activate, activeProperty, adaptableProperty, addAnchoreds, addAnchoreds, addFeedback, addFeedback, addHandles, addHandles, clearFeedback, clearHandles, deactivate, getAdaptable, getFeedback, getFeedback, getFeedbackPartFactory, getFeedbackPerTargetSet, getHandlePartFactory, getHandles, getHandles, getHandlesPerTargetSet, getHost, hasFeedback, hasFeedback, hasHandles, hasHandles, isActive, removeAnchoreds, removeFeedback, removeFeedback, removeFeedback, removeHandles, removeHandles, removeHandles, setAdaptable, updateHandles, updateHandles
public static final java.lang.String HOVER_INTENT_FEEDBACK_PART_FACTORY
IFeedbackPartFactory
that is used to
generate hover feedback parts.public static final java.lang.String HOVER_INTENT_HANDLE_PART_FACTORY
IHandlePartFactory
that is used to
generate hover handle parts.protected void doActivate()
AbstractBehavior
AbstractBehavior.activate()
hook that may be overwritten to e.g. register
listeners.doActivate
in class AbstractBehavior
protected void doDeactivate()
AbstractBehavior
AbstractBehavior.deactivate()
hook that may be overwritten to e.g. unregister
listeners.doDeactivate
in class AbstractBehavior
protected IFeedbackPartFactory getFeedbackPartFactory(IViewer viewer)
AbstractBehavior
IFeedbackPartFactory
that should be used for feedback
creation.getFeedbackPartFactory
in class AbstractBehavior
viewer
- The IViewer
for which to determine the
IFeedbackPartFactory
for this IBehavior
.IFeedbackPartFactory
that should be used for feedback
creation.protected IHandlePartFactory getHandlePartFactory(IViewer viewer)
AbstractBehavior
IHandlePartFactory
that should be used for handle
creation.getHandlePartFactory
in class AbstractBehavior
viewer
- The IViewer
for which to determine the
IHandlePartFactory
for this IBehavior
.IHandlePartFactory
that should be used for feedback
creation.protected HoverModel getHoverModel()
HoverModel
in the context of the host
.HoverModel
in the context of the host
.protected void onHoverIntentChange(IContentPart<? extends javafx.scene.Node> oldHoverIntent, IContentPart<? extends javafx.scene.Node> newHoverIntent)
HoverModel.hoverIntentProperty()
changes. Triggers
generation/removal of feedback and handles.oldHoverIntent
- The previous hover intent IContentPart
.newHoverIntent
- The new hover intent IContentPart
.Copyright (c) 2014, 2016 itemis AG and others. All rights reserved.