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, adaptable
IAdaptable.Bound.Impl<T extends IAdaptable>
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
SelectionBehavior to obtain an IHandlePartFactory . |
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)
IContentPart s. |
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 IHandlePartFactory<VR> |
getHandlePartFactory()
Returns the
IHandlePartFactory that was injected into this
SelectionBehavior . |
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)
IContentPart s. |
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, updateHandles
public static final java.lang.String PART_FACTORIES_BINDING_NAME
SelectionBehavior
to obtain an IHandlePartFactory
.protected void addFeedbackAndHandles(java.util.List<? extends IContentPart<VR,? extends VR>> selected)
IContentPart
s.selected
- The list of IContentPart
s for which feedback and
handles are created.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 IHandlePartFactory<VR> getHandlePartFactory()
IHandlePartFactory
that was injected into this
SelectionBehavior
.IHandlePartFactory
that was injected into this
SelectionBehavior
.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)
IContentPart
s.selected
- The list of IContentPart
s 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.