VR
- The visual root node of the UI toolkit this
AbstractRootPart
is used in, e.g. javafx.scene.Node in
case of JavaFX.V
- The visual node used by this AbstractRootPart
.public abstract class AbstractRootPart<VR,V extends VR> extends AbstractVisualPart<VR,V> implements IRootPart<VR,V>
IAdaptable.Bound<A extends IAdaptable>
pcs
ANCHORAGES_PROPERTY, ANCHOREDS_PROPERTY, CHILDREN_PROPERTY, PARENT_PROPERTY
ADAPTERS_PROPERTY
ACTIVE_PROPERTY
Constructor and Description |
---|
AbstractRootPart() |
Modifier and Type | Method and Description |
---|---|
protected void |
attachToAnchorageVisual(IVisualPart<VR,? extends VR> anchorage,
java.lang.String role)
Attaches this part's visual to the visual of the given anchorage.
|
protected void |
detachFromAnchorageVisual(IVisualPart<VR,? extends VR> anchorage,
java.lang.String role)
Detaches this part's visual from the visual of the given anchorage.
|
protected void |
doActivate()
Post
AbstractVisualPart.activate() hook that activates this part's children. |
protected void |
doDeactivate()
Pre
AbstractVisualPart.deactivate() hook that deactivates this part's children. |
IViewer<VR> |
getAdaptable() |
java.util.List<IContentPart<VR,? extends VR>> |
getContentPartChildren()
Returns all children of type
IContentPart contained by this
IRootPart . |
java.util.List<IFeedbackPart<VR,? extends VR>> |
getFeedbackPartChildren()
Returns all children of type
IFeedbackPart contained by this
IRootPart . |
java.util.List<IHandlePart<VR,? extends VR>> |
getHandlePartChildren()
Returns all children of type
IHandlePart contained by this
IRootPart . |
IRootPart<VR,? extends VR> |
getRoot()
Returns the
IRootPart . |
IViewer<VR> |
getViewer()
Returns the
IViewer that contains this part. |
void |
setAdaptable(IViewer<VR> viewer) |
activate, addAnchorage, addAnchorage, addAnchored, addChild, addChild, addChildren, addChildren, addChildVisual, addPropertyChangeListener, createVisual, deactivate, dispose, doRefreshVisual, getAdapter, getAdapter, getAdapter, getAdapters, getAdapters, getAnchorages, getAnchoreds, getBehaviors, getChildren, getParent, getPolicies, getVisual, isActive, isRefreshVisual, refreshVisual, register, registerAtVisualPartMap, removeAnchorage, removeAnchorage, removeAnchored, removeChild, removeChildren, removeChildVisual, removePropertyChangeListener, reorderChild, setAdapter, setAdapter, setAdapter, setAdapters, setParent, setRefreshVisual, unregister, unregisterFromVisualPartMap, unsetAdapter
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addAnchorage, addAnchorage, addAnchored, addChild, addChild, addChildren, addChildren, getAnchorages, getAnchoreds, getBehaviors, getChildren, getParent, getPolicies, getVisual, isRefreshVisual, refreshVisual, removeAnchorage, removeAnchorage, removeAnchored, removeChild, removeChildren, reorderChild, setParent, setRefreshVisual
getAdapter, getAdapter, getAdapter, getAdapters, getAdapters, setAdapter, setAdapter, setAdapter, unsetAdapter
activate, deactivate, isActive
addPropertyChangeListener, removePropertyChangeListener
dispose
protected void attachToAnchorageVisual(IVisualPart<VR,? extends VR> anchorage, java.lang.String role)
AbstractVisualPart
attachToAnchorageVisual
in class AbstractVisualPart<VR,V extends VR>
anchorage
- The anchorage IVisualPart
.role
- The anchorage role.protected void detachFromAnchorageVisual(IVisualPart<VR,? extends VR> anchorage, java.lang.String role)
AbstractVisualPart
detachFromAnchorageVisual
in class AbstractVisualPart<VR,V extends VR>
anchorage
- The anchorage IVisualPart
.role
- The anchorage role.protected void doActivate()
AbstractVisualPart
AbstractVisualPart.activate()
hook that activates this part's children.doActivate
in class AbstractVisualPart<VR,V extends VR>
protected void doDeactivate()
AbstractVisualPart
AbstractVisualPart.deactivate()
hook that deactivates this part's children.doDeactivate
in class AbstractVisualPart<VR,V extends VR>
public IViewer<VR> getAdaptable()
getAdaptable
in interface IAdaptable.Bound<IViewer<VR>>
public java.util.List<IContentPart<VR,? extends VR>> getContentPartChildren()
IRootPart
IContentPart
contained by this
IRootPart
.getContentPartChildren
in interface IRootPart<VR,V extends VR>
IContentPart
children.public java.util.List<IFeedbackPart<VR,? extends VR>> getFeedbackPartChildren()
IRootPart
IFeedbackPart
contained by this
IRootPart
.getFeedbackPartChildren
in interface IRootPart<VR,V extends VR>
IFeedbackPart
children.public java.util.List<IHandlePart<VR,? extends VR>> getHandlePartChildren()
IRootPart
IHandlePart
contained by this
IRootPart
.getHandlePartChildren
in interface IRootPart<VR,V extends VR>
IHandlePart
children.public IRootPart<VR,? extends VR> getRoot()
IVisualPart
IRootPart
. This method should only be called
internally or by helpers such as edit policies. The root can be used to
get the viewer.public IViewer<VR> getViewer()
AbstractVisualPart
IViewer
that contains this part.public void setAdaptable(IViewer<VR> viewer)
setAdaptable
in interface IAdaptable.Bound<IViewer<VR>>
Copyright (c) 2014 itemis AG and others. All rights reserved.