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>
active, adapters, anchoragesUnmodifiable, anchoredsUnmodifiable, children, parent, refreshVisual
anchoragesUnmodifiable, anchoredsUnmodifiable, children, parent, refreshVisual
adapters
active
IAdaptable.Bound<A extends IAdaptable>
ANCHORAGES_PROPERTY, ANCHOREDS_PROPERTY, CHILDREN_PROPERTY, PARENT_PROPERTY, REFRESH_VISUAL_PROPERTY
ADAPTERS_PROPERTY
ACTIVE_PROPERTY
Constructor and Description |
---|
AbstractRootPart() |
Modifier and Type | Method and Description |
---|---|
protected void |
activateChildren()
Activates the children of this
AbstractVisualPart . |
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 |
deactivateChildren()
Deactivates the children of this
AbstractVisualPart . |
protected void |
detachFromAnchorageVisual(IVisualPart<VR,? extends VR> anchorage,
java.lang.String role)
Detaches this part's visual from the visual of the given anchorage.
|
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) |
protected void |
unregister(IViewer<VR> viewer)
Called when the link to the
IViewer is lost. |
activate, activeProperty, adaptersProperty, addChild, addChild, addChildren, addChildren, addChildVisual, anchoragesUnmodifiableProperty, anchoredsUnmodifiableProperty, attachAnchored, attachToAnchorage, attachToAnchorage, childrenProperty, createVisual, deactivate, detachAnchored, detachFromAnchorage, detachFromAnchorage, determineViewer, dispose, doActivate, doDeactivate, doRefreshVisual, getAdapter, getAdapter, getAdapter, getAdapters, getAdapters, getAdapters, getAnchoragesUnmodifiable, getAnchoredsUnmodifiable, getBehaviors, getChildrenUnmodifiable, getParent, getPolicies, getVisual, isActive, isRefreshVisual, parentProperty, refreshVisual, refreshVisualProperty, register, registerAtVisualPartMap, removeChild, removeChildren, removeChildVisual, reorderChild, setAdapter, setAdapter, setAdapter, setAdapter, setParent, setRefreshVisual, unregisterFromVisualPartMap, unsetAdapter
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addChild, addChild, addChildren, addChildren, anchoragesUnmodifiableProperty, anchoredsUnmodifiableProperty, attachAnchored, attachToAnchorage, attachToAnchorage, childrenProperty, detachAnchored, detachFromAnchorage, detachFromAnchorage, getAnchoragesUnmodifiable, getAnchoredsUnmodifiable, getBehaviors, getChildrenUnmodifiable, getParent, getPolicies, getVisual, isRefreshVisual, parentProperty, refreshVisual, refreshVisualProperty, removeChild, removeChildren, reorderChild, setParent, setRefreshVisual
adaptersProperty, getAdapter, getAdapter, getAdapter, getAdapters, getAdapters, getAdapters, setAdapter, setAdapter, setAdapter, setAdapter, unsetAdapter
activate, activeProperty, deactivate, isActive
dispose
protected void activateChildren()
AbstractVisualPart
AbstractVisualPart
.activateChildren
in class AbstractVisualPart<VR,V extends VR>
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 deactivateChildren()
AbstractVisualPart
AbstractVisualPart
.deactivateChildren
in class AbstractVisualPart<VR,V extends VR>
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.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>>
protected void unregister(IViewer<VR> viewer)
AbstractVisualPart
IViewer
is lost. Unregisters this
IVisualPart
for its "main" visual (i.e. the one returned by
AbstractVisualPart.getVisual()
) from the IViewer.getVisualPartMap()
of the
given IViewer
. To simplify matters, this IVisualPart
only
has to unregister itself for its "main" visual, i.e. if the "main" visual
contains a number of children visuals, it does not need to unregister
itself for those children visuals. Therefore, if the visualization
changes dynamically, the registration at the visual-part-map does not
need to be updated. Consequently, when looking up an IVisualPart
for a given visual in the visual-part-map, it is required to walk up the
visual hierarchy until a registered visual is found.unregister
in class AbstractVisualPart<VR,V extends VR>
viewer
- The IViewer
to unregister from.Copyright (c) 2014 itemis AG and others. All rights reserved.