VR - The visual root node of the UI toolkit this IContentPart
is used in, e.g. javafx.scene.Node in case of JavaFX.V - The visual node used by this IContentPart.public interface IContentPart<VR,V extends VR> extends IVisualPart<VR,V>
IVisualPart that visualizes an underlying content element.AbstractContentPart should be sub-classed.IAdaptable.Bound<A extends IAdaptable>| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CONTENT_ANCHORAGES_PROPERTY
Property name used within
PropertyChangeEvents, which are fired
whenever the content anchorages change (
attachToContentAnchorage(Object, String) and
detachFromContentAnchorage(Object, String)). |
static java.lang.String |
CONTENT_CHILDREN_PROPERTY
Property name used within
PropertyChangeEvents, which are fired
whenever the content children change (
addContentChild(Object, int) and
removeContentChild(Object)). |
static java.lang.String |
CONTENT_PROPERTY
Property name used within
PropertyChangeEvents, which are fired
whenever the content changes. |
ANCHORAGES_PROPERTY, ANCHOREDS_PROPERTY, CHILDREN_PROPERTY, PARENT_PROPERTYADAPTERS_PROPERTYACTIVE_PROPERTY| Modifier and Type | Method and Description |
|---|---|
void |
addContentChild(java.lang.Object contentChild,
int index)
Inserts the given contentChild as a child to this part's content,
so that it will be returned by subsequent calls to
getContentChildren(). |
void |
attachToContentAnchorage(java.lang.Object contentAnchorage,
java.lang.String role)
Attaches this part's content to the given contentAnchorage under
the specified role, so that it will be returned by subsequent
calls to
getContentAnchorages(). |
void |
detachFromContentAnchorage(java.lang.Object contentAnchorage,
java.lang.String role)
Detaches this part's content from the given contentAnchorage under
the specified role, so that it will no longer be returned by
subsequent calls to
getContentAnchorages(). |
java.lang.Object |
getContent()
Returns this part's content.
|
com.google.common.collect.SetMultimap<? extends java.lang.Object,java.lang.String> |
getContentAnchorages()
Returns the content objects that are to be regarded as anchorages of this
IContentPart's content (getContent()) with an (optional)
role qualifier for each anchorage-anchored link that has to be
established. |
java.util.List<? extends java.lang.Object> |
getContentChildren()
Returns a
List of all of this part's content children. |
void |
removeContentChild(java.lang.Object contentChild)
Removes the given contentChild from this part's content children,
so that it will no longer be returned by subsequent calls to
getContentChildren(). |
void |
reorderContentChild(java.lang.Object contentChild,
int newIndex)
Rearranges the given contentChild to the new index position.
|
void |
setContent(java.lang.Object content)
Sets this part's content to the given
value. |
addChild, addChild, addChildren, addChildren, attachAnchored, attachToAnchorage, attachToAnchorage, detachAnchored, detachFromAnchorage, detachFromAnchorage, getAnchorages, getAnchoreds, getBehaviors, getChildren, getParent, getPolicies, getRoot, getVisual, isRefreshVisual, refreshVisual, removeChild, removeChildren, reorderChild, setParent, setRefreshVisualgetAdapter, getAdapter, getAdapter, getAdapters, getAdapters, setAdapter, setAdapter, setAdapter, setAdapter, unsetAdapteractivate, deactivate, isActiveaddPropertyChangeListener, removePropertyChangeListenerdisposestatic final java.lang.String CONTENT_PROPERTY
PropertyChangeEvents, which are fired
whenever the content changes.static final java.lang.String CONTENT_CHILDREN_PROPERTY
PropertyChangeEvents, which are fired
whenever the content children change (
addContentChild(Object, int) and
removeContentChild(Object)).static final java.lang.String CONTENT_ANCHORAGES_PROPERTY
PropertyChangeEvents, which are fired
whenever the content anchorages change (
attachToContentAnchorage(Object, String) and
detachFromContentAnchorage(Object, String)).void addContentChild(java.lang.Object contentChild,
int index)
getContentChildren(). Fires property change events using
CONTENT_CHILDREN_PROPERTY as
property name.contentChild - An Object which should be added as a child to this
part's content.index - The index at which the contentChild should be added.void attachToContentAnchorage(java.lang.Object contentAnchorage,
java.lang.String role)
getContentAnchorages(). Fires property change events
using CONTENT_ANCHORAGES_PROPERTY as
property name.contentAnchorage - An Object to which this part's content should be
attached to.role - The role under which the attachment is to be established.void detachFromContentAnchorage(java.lang.Object contentAnchorage,
java.lang.String role)
getContentAnchorages(). Fires property
change events using CONTENT_ANCHORAGES_PROPERTY as
property name.contentAnchorage - An Object from which this part's content should be
detached from.role - The role under which the attachment is established.java.lang.Object getContent()
com.google.common.collect.SetMultimap<? extends java.lang.Object,java.lang.String> getContentAnchorages()
IContentPart's content (getContent()) with an (optional)
role qualifier for each anchorage-anchored link that has to be
established.
In case of a connection, one anchorage could have the "START" role, and another the "END" role. Using the role mechanism, the same anchorage may also have both roles, which can, for instance, be used for self connections.
SetMultimap of the content anchorages with a role to
qualify each anchorage-anchored link. If there is only a single
anchorage-anchored link to a respective anchorage, its role may
be left undefined (i.e. the map will contain an entry of the form
(anchorage, null)).java.util.List<? extends java.lang.Object> getContentChildren()
List of all of this part's content children.List of all of this part's content children.void removeContentChild(java.lang.Object contentChild)
getContentChildren(). Fires property change events using
CONTENT_CHILDREN_PROPERTY as
property name.contentChild - An Object which should be removed from this part's
content children.void reorderContentChild(java.lang.Object contentChild,
int newIndex)
CONTENT_CHILDREN_PROPERTY as
property name.contentChild - The Object which is to be reordered.newIndex - The index to which the content child is to be reordered.void setContent(java.lang.Object content)
value. Fires
property change events using CONTENT_PROPERTY as property name.content - The new content for this part.Copyright (c) 2014 itemis AG and others. All rights reserved.