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>
activeProperty| 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)
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 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)
IContentParts. |
activate, activeProperty, addFeedback, addHandles, deactivate, getAdaptable, getFeedbackParts, getHandleParts, getHost, isActive, removeFeedback, removeHandles, setAdaptable, switchAdaptableScopespublic 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)
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 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)
IContentParts.selected - The list of IContentParts for which feedback and
handles are removed.Copyright (c) 2014 itemis AG and others. All rights reserved.