VR - The visual root node of the UI toolkit used, e.g.
javafx.scene.Node in case of JavaFX.public class ContentBehavior<VR> extends AbstractBehavior<VR> implements java.beans.PropertyChangeListener, IDisposable
IRootPart or an
IContentPart to synchronize the list of IContentPart children
and (only in case of an IContentPart) anchorages with the list of
content children and anchored.pcsACTIVE_PROPERTY| Constructor and Description |
|---|
ContentBehavior() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
void |
deactivate() |
void |
dispose() |
protected void |
disposeIfObsolete(IContentPart<VR,? extends VR> contentPart) |
protected IContentPart<VR,? extends VR> |
findOrCreatePartFor(java.lang.Object content) |
void |
propertyChange(java.beans.PropertyChangeEvent event) |
void |
synchronizeContentAnchorages(com.google.common.collect.SetMultimap<? extends java.lang.Object,java.lang.String> contentAnchorages)
Updates the host
IVisualPart's IContentPart anchorages
(see IVisualPart.getAnchorages()) so that it is in sync with the
set of content anchorages that is passed in. |
void |
synchronizeContentChildren(java.util.List<? extends java.lang.Object> contentChildren)
Updates the host
IVisualPart's IContentPart children (see
IVisualPart.getChildren()) so that it is in sync with the set of
content children that is passed in. |
addFeedback, addFeedback, addHandles, addHandles, addPropertyChangeListener, getAdaptable, getFeedbackParts, getHandleParts, getHost, isActive, removeFeedback, removeHandles, removePropertyChangeListener, setAdaptable, switchAdaptableScopespublic void activate()
activate in interface IActivatableactivate in class AbstractBehavior<VR>public void deactivate()
deactivate in interface IActivatabledeactivate in class AbstractBehavior<VR>public void dispose()
dispose in interface IDisposableprotected void disposeIfObsolete(IContentPart<VR,? extends VR> contentPart)
protected IContentPart<VR,? extends VR> findOrCreatePartFor(java.lang.Object content)
public void propertyChange(java.beans.PropertyChangeEvent event)
propertyChange in interface java.beans.PropertyChangeListenerpublic void synchronizeContentAnchorages(com.google.common.collect.SetMultimap<? extends java.lang.Object,java.lang.String> contentAnchorages)
IVisualPart's IContentPart anchorages
(see IVisualPart.getAnchorages()) so that it is in sync with the
set of content anchorages that is passed in.contentAnchorages - * The map of content anchorages with roles to be synchronized
with the list of IContentPart anchorages (
IVisualPart.getAnchorages()).IContentPart.getContentAnchorages(),
IVisualPart.getAnchorages()public void synchronizeContentChildren(java.util.List<? extends java.lang.Object> contentChildren)
IVisualPart's IContentPart children (see
IVisualPart.getChildren()) so that it is in sync with the set of
content children that is passed in.contentChildren - The list of content children to be synchronized with the list
of IContentPart children (
IVisualPart.getChildren()).IContentPart.getContentChildren(),
IVisualPart.getChildren()Copyright (c) 2014 itemis AG and others. All rights reserved.