|
com.im.df.api 5.9 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public static interface DFDataTree.Vertex
The Vertex in data tree graph. Vertexes are connected by edges.
| Field Summary | |
|---|---|
static String |
PROP_EDGES
|
static String |
PROP_VALID
|
| Method Summary | |
|---|---|
DFDataTree.Edge |
addEdge(DFRelationship.Direction relationshipDir,
DFEnvironmentRW env)
Add new edge to some detail entity (starting at this vertex). |
void |
addPropertyChangeListener(PropertyChangeListener listener)
Register listener to changes in this vertex. |
DFDataTree |
getDataTree()
|
List<DFDataTree.Edge> |
getEdges()
Return all children edges starting from this vertex. |
DFEntity |
getEntity()
|
DFDataTree.Edge |
getIncomingEdge()
|
boolean |
isValid()
Get the status of this vertex. |
void |
removeEdge(DFDataTree.Edge edge,
DFEnvironmentRW env)
Remove the existing edge starting in this vertex. |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Unregister listener to changes in this vertex. |
| Field Detail |
|---|
static final String PROP_EDGES
static final String PROP_VALID
| Method Detail |
|---|
DFEntity getEntity()
DFDataTree getDataTree()
null.DFDataTree.Edge getIncomingEdge()
null
if the vertex is the root.List<DFDataTree.Edge> getEdges()
null. If there is
no edge, it just returns empty List.
DFDataTree.Edge addEdge(DFRelationship.Direction relationshipDir,
DFEnvironmentRW env)
relationshipDir - The oriented relationship from this vertex' entity
to some other entity. It's supposed that relationshipDir.getSrcField().getEntity()
is the same entity as this.getEntity(). Otherwise this method fails and can throw an exception.
void removeEdge(DFDataTree.Edge edge,
DFEnvironmentRW env)
edge - The edge to be removed.boolean isValid()
DFItem.isValid() method, because
vertex is always created as valid when added to parent (or loaded). Once it become invalid, it never goes back
to valid state. Vertex is invalidated when it is removed from its parent or when whole subtree of vertexes is removed
from DFDataTree.
void addPropertyChangeListener(PropertyChangeListener listener)
void removePropertyChangeListener(PropertyChangeListener listener)
|
com.im.df.api 5.9 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||