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>
| Type | Property and Description |
|---|---|
javafx.beans.property.ReadOnlyObjectProperty<IViewer<VR>> |
adaptable |
active, adapters, anchoragesUnmodifiable, anchoredsUnmodifiable, children, parent, refreshVisualanchoragesUnmodifiable, anchoredsUnmodifiable, children, parent, refreshVisualadaptersactiveIAdaptable.Bound<A extends IAdaptable>IAdaptable.Bound.Impl<T extends IAdaptable>ANCHORAGES_PROPERTY, ANCHOREDS_PROPERTY, CHILDREN_PROPERTY, PARENT_PROPERTY, REFRESH_VISUAL_PROPERTYADAPTERS_PROPERTYACTIVE_PROPERTY| Constructor and Description |
|---|
AbstractRootPart() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
activateChildren()
Activates the children of this
AbstractVisualPart. |
javafx.beans.property.ReadOnlyObjectProperty<IViewer<VR>> |
adaptableProperty() |
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()
Gets the value of the property adaptable.
|
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)
Sets the value of the property adaptable.
|
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, getAdapterKey, 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, unsetAdapterclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddChild, 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, setRefreshVisualadaptersProperty, getAdapter, getAdapter, getAdapter, getAdapterKey, getAdapters, getAdapters, getAdapters, setAdapter, setAdapter, setAdapter, setAdapter, unsetAdapteractivate, activeProperty, deactivate, isActivedisposepublic javafx.beans.property.ReadOnlyObjectProperty<IViewer<VR>> adaptableProperty
adaptableProperty in interface IAdaptable.Bound<IViewer<VR>>getAdaptable(),
setAdaptable(IViewer)protected void activateChildren()
AbstractVisualPartAbstractVisualPart.activateChildren in class AbstractVisualPart<VR,V extends VR>public javafx.beans.property.ReadOnlyObjectProperty<IViewer<VR>> adaptableProperty()
adaptableProperty in interface IAdaptable.Bound<IViewer<VR>>getAdaptable(),
setAdaptable(IViewer)protected void attachToAnchorageVisual(IVisualPart<VR,? extends VR> anchorage, java.lang.String role)
AbstractVisualPartattachToAnchorageVisual in class AbstractVisualPart<VR,V extends VR>anchorage - The anchorage IVisualPart.role - The anchorage role.protected void deactivateChildren()
AbstractVisualPartAbstractVisualPart.deactivateChildren in class AbstractVisualPart<VR,V extends VR>protected void detachFromAnchorageVisual(IVisualPart<VR,? extends VR> anchorage, java.lang.String role)
AbstractVisualPartdetachFromAnchorageVisual 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()
IRootPartIContentPart contained by this
IRootPart.getContentPartChildren in interface IRootPart<VR,V extends VR>IContentPart children.public java.util.List<IFeedbackPart<VR,? extends VR>> getFeedbackPartChildren()
IRootPartIFeedbackPart contained by this
IRootPart.getFeedbackPartChildren in interface IRootPart<VR,V extends VR>IFeedbackPart children.public java.util.List<IHandlePart<VR,? extends VR>> getHandlePartChildren()
IRootPartIHandlePart contained by this
IRootPart.getHandlePartChildren in interface IRootPart<VR,V extends VR>IHandlePart children.public IRootPart<VR,? extends VR> getRoot()
IVisualPartIRootPart. 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()
AbstractVisualPartIViewer that contains this part.public void setAdaptable(IViewer<VR> viewer)
setAdaptable in interface IAdaptable.Bound<IViewer<VR>>protected void unregister(IViewer<VR> viewer)
AbstractVisualPartIViewer 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.