public class SelectionBehavior extends AbstractBehavior
active, adaptableIAdaptable.Bound.Impl<T extends IAdaptable>| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SELECTION_FEEDBACK_PART_FACTORY
The adapter role for the
IFeedbackPartFactory that is used to
generate hover feedback parts. |
static java.lang.String |
SELECTION_HANDLE_PART_FACTORY
The adapter role for the
IHandlePartFactory that is used to
generate hover handle parts. |
ACTIVE_PROPERTY| Constructor and Description |
|---|
SelectionBehavior() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addFeedbackAndHandles(java.util.List<? extends IContentPart<? extends javafx.scene.Node>> selected) |
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 SelectionModel |
getSelectionModel()
Returns the
SelectionModel in the context of the
host. |
protected void |
removeFeedbackAndHandles(java.util.List<? extends IContentPart<? extends javafx.scene.Node>> selected) |
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, updateHandlespublic static final java.lang.String SELECTION_FEEDBACK_PART_FACTORY
IFeedbackPartFactory that is used to
generate hover feedback parts.public static final java.lang.String SELECTION_HANDLE_PART_FACTORY
IHandlePartFactory that is used to
generate hover handle parts.protected void addFeedbackAndHandles(java.util.List<? extends IContentPart<? extends javafx.scene.Node>> selected)
selected - List of IContentParts for which to add feedback and
handles.protected void doActivate()
AbstractBehaviorAbstractBehavior.activate() hook that may be overwritten to e.g. register
listeners.doActivate in class AbstractBehaviorprotected void doDeactivate()
AbstractBehaviorAbstractBehavior.deactivate() hook that may be overwritten to e.g. unregister
listeners.doDeactivate in class AbstractBehaviorprotected IFeedbackPartFactory getFeedbackPartFactory(IViewer viewer)
AbstractBehaviorIFeedbackPartFactory that should be used for feedback
creation.getFeedbackPartFactory in class AbstractBehaviorviewer - The IViewer for which to determine the
IFeedbackPartFactory for this IBehavior.IFeedbackPartFactory that should be used for feedback
creation.protected IHandlePartFactory getHandlePartFactory(IViewer viewer)
AbstractBehaviorIHandlePartFactory that should be used for handle
creation.getHandlePartFactory in class AbstractBehaviorviewer - The IViewer for which to determine the
IHandlePartFactory for this IBehavior.IHandlePartFactory that should be used for feedback
creation.protected SelectionModel getSelectionModel()
SelectionModel in the context of the
host.SelectionModel in the context of the
host.protected void removeFeedbackAndHandles(java.util.List<? extends IContentPart<? extends javafx.scene.Node>> selected)
selected - List of IContentParts for which to remove feedback and
handles.Copyright (c) 2014, 2016 itemis AG and others. All rights reserved.