VR - The visual root node of the UI toolkit used, e.g.
javafx.scene.Node in case of JavaFX.public class SelectionBehavior<VR> extends AbstractBehavior<VR>
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<VR,? extends VR>> selected)
Creates feedback parts and handle parts for the given list of (selected)
IContentParts. |
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 for selection feedback. |
protected IHandlePartFactory<VR> |
getHandlePartFactory()
Returns the
IHandlePartFactory for selection feedback. |
protected SelectionModel<VR> |
getSelectionModel()
Returns the
SelectionModel in the context of the
host. |
protected void |
removeFeedbackAndHandles(java.util.List<? extends IContentPart<VR,? extends VR>> selected)
Removes feedback parts and handle parts for the given list of (selected)
IContentParts. |
IHandlePart<VR,? extends VR> |
updateHandles(java.util.Comparator<IHandlePart<VR,? extends VR>> interactedWithComparator,
IHandlePart<VR,? extends VR> interactedWith)
Updates the handles of this host.
|
activate, activeProperty, adaptableProperty, addFeedback, addHandles, deactivate, getAdaptable, getFeedbackParts, getHandleParts, getHost, isActive, removeFeedback, removeHandles, setAdaptable, switchAdaptableScopes, 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<VR,? extends VR>> selected)
IContentParts.selected - The list of IContentParts for which feedback and
handles are created.protected void doActivate()
AbstractBehaviorAbstractBehavior.activate() hook that may be overwritten to e.g. register
listeners.doActivate in class AbstractBehavior<VR>protected void doDeactivate()
AbstractBehaviorAbstractBehavior.deactivate() hook that may be overwritten to e.g. unregister
listeners.doDeactivate in class AbstractBehavior<VR>protected IFeedbackPartFactory<VR> getFeedbackPartFactory()
IFeedbackPartFactory for selection feedback.IFeedbackPartFactory for selection feedback.protected IHandlePartFactory<VR> getHandlePartFactory()
IHandlePartFactory for selection feedback.IHandlePartFactory for selection feedback.protected SelectionModel<VR> getSelectionModel()
SelectionModel in the context of the
host.SelectionModel in the context of the
host.protected void removeFeedbackAndHandles(java.util.List<? extends IContentPart<VR,? extends VR>> selected)
IContentParts.selected - The list of IContentParts for which feedback and
handles are removed.public IHandlePart<VR,? extends VR> updateHandles(java.util.Comparator<IHandlePart<VR,? extends VR>> interactedWithComparator, IHandlePart<VR,? extends VR> interactedWith)
interactedWithComparator - A Comparator that can be used to identify a new handle
at the same position as the handle that is currently
interacted with. Can be null if no handle should
be preserved.interactedWith - The IHandlePart that is interacted with, or
null.IHandlePart for the position of the handle part
that is interacted with so that its information can be applied to
the preserved handle part.Copyright (c) 2014 itemis AG and others. All rights reserved.