public interface NodeGroup extends PropFeature, java.lang.Iterable<ModelEntity>
Modifier and Type | Method and Description |
---|---|
ModelEntity |
active(boolean flag)
Makes the group members active or inactive.
|
NodeGroup |
add(java.lang.String tag)
Adds a model entity to the group.
|
NodeGroup |
add(java.lang.String type,
java.lang.String tag)
Adds a model entity to the group.
|
ModelEntity |
get(int index)
Returns the group member at the given position.
|
ModelEntity |
getAfter()
Returns the model entity which this group is placed after.
|
java.lang.String[] |
members()
Returns the tags of the group members.
|
java.lang.String[] |
members(java.lang.String type)
Returns the tags of the group members of the specified type.
|
NodeGroup |
placeAfter(java.lang.String tag)
Places the group after another entity.
|
NodeGroup |
placeAfter(java.lang.String type,
java.lang.String tag)
Places the group after another entity.
|
NodeGroup |
remove(java.lang.String tag,
boolean moveBefore)
Removes a model entity from the group.
|
NodeGroup |
remove(java.lang.String type,
java.lang.String tag,
boolean moveBefore)
Removes a model entity from the group.
|
int |
size()
Returns the number of group members.
|
getAllowedPropertyValues, getBoolean, getBoolean, getBoolean, getBooleanArray, getBooleanMatrix, getDouble, getDouble, getDouble, getDoubleArray, getDoubleMatrix, getEntryKeyIndex, getEntryKeys, getInt, getInt, getInt, getIntArray, getIntMatrix, getReferenceArray, getString, getString, getString, getString, getStringArray, getStringMatrix, getType, getValueType, hasProperty, hasSelection, move, move, properties, remove, remove, selection, set, set, set, set, set, set, set, set, set, set, set, set, setEntry, setEntry, setEntry, setEntry, setIndex, setIndex, setIndex, setIndex, setIndex, setIndex, setIndex, setIndex, setIndex, setIndex, setIndex, setIndex
selection
author, author, comments, comments, dateCreated, dateModified, docMarker, docMarker, help, help, icon, isactive, isActive, label, label, lastModifiedBy, model, model, name, name, resetAuthor, scope, tag, tag, timeCreated, timeModified, version, version
getContainer, getDisplayString
ModelEntity active(boolean flag)
active
in interface ModelEntity
flag
- true
: make active; false
: make inactive.NodeGroup add(java.lang.String tag)
tag
- The tag of the entity to add.NodeGroup add(java.lang.String type, java.lang.String tag)
type
- The model entity type.tag
- The tag of the entity to add.ModelEntity get(int index)
index
- The position among the members.ModelEntity getAfter()
null
is returned, the group is placed before the first
model entity.null
.java.lang.String[] members()
members(String)
to get the members of a
specific type.java.lang.String[] members(java.lang.String type)
type
- The model entity type.NodeGroup placeAfter(java.lang.String tag)
tag
- The tag of the entity to place the group after. To place the group
before the first entity use null
or an empty string as
tag.NodeGroup placeAfter(java.lang.String type, java.lang.String tag)
type
- The model entity type.tag
- The tag of the entity to place the group after. To place the group
before the first entity use null
or an empty string as
tag.NodeGroup remove(java.lang.String tag, boolean moveBefore)
tag
- The tag of the entity to remove.moveBefore
- Whether to move the entity before or after the other members of the
group.NodeGroup remove(java.lang.String type, java.lang.String tag, boolean moveBefore)
type
- The model entity type.tag
- The tag of the entity to remove.moveBefore
- Whether to move the entity before or after the other members of the
group.int size()