public class ReferenceListBase<C extends ModelComponent,R extends ReferenceComp<C>> extends ComponentList<R>
CompositeComponent.NavpanelDisplayModelComponent.FilePathSaveType, ModelComponent.NavpanelVisibility| Modifier and Type | Field and Description |
|---|---|
static PropertyList |
myProps |
DEFAULT_NAVPANEL_DISPLAYenforceUniqueCompositeNames, enforceUniqueNames, myNumber, NULL_OBJ, useCompactPathNames| Constructor and Description |
|---|
ReferenceListBase() |
ReferenceListBase(java.lang.Class<R> clazz,
java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
R |
addReference(C comp)
Adds a component reference to this list.
|
void |
addReferences(java.util.Collection<C> comps)
Adds multiple component references to this list.
|
boolean |
containsReference(C comp)
Checks if this list contains a reference to a specified component.
|
PropertyList |
getAllPropertyInfo()
Returns a list giving static information about all properties exported by
this object.
|
C |
getReference(int idx)
Returns the
idx-th referenced component in this list. |
void |
getReferences(java.util.Collection<C> comps)
Get all the referenced components in this list.
|
int |
indexOfReference(C comp)
Returns the index of the first occurance of a referenced component in
this list, or -1 no reference is present.
|
int |
numReferences()
Queries the number of references in this list.
|
void |
removeAllReferences()
Remove all references from this list.
|
boolean |
removeReference(C comp)
Remove the first reference to a specified component from this list.
|
boolean |
removeReferences(java.util.Collection<C> comps)
Removes alls references to the specified components from this list.
|
add, add, addAll, addComponents, addFixed, addNumbered, clear, clone, componentChanged, contains, contains, containsAll, copy, ensureCapacity, findComponent, get, get, getByNumber, getChildren, getMinNumber, getNavpanelDisplay, getNumberLimit, getOneBasedNumbering, getParameterType, getShortName, hasChildren, hasParameterizedType, hierarchyContainsReferences, incrementNumbering, indexOf, invalidateNumbers, isEditable, isEmpty, iterator, nextComponentNumber, numComponents, postscan, remove, remove, removeAll, removeAll, removeComponents, resetNumbersToIndices, retainAll, scan, set, setEditable, setNavpanelDisplay, setNumbered, setOneBasedNumbering, setShortName, size, toArray, toArray, updateNameMapcheckFlag, checkName, checkNameUniqueness, clearFlag, connectToHierarchy, createTempFlag, disconnectFromHierarchy, getGrandParent, getHardReferences, getName, getNameRange, getNavpanelVisibility, getNavpanelVisibility, getNumber, getParent, getProperty, getSoftReferences, hasState, isFixed, isMarked, isScanning, isSelected, isWritable, makeValidName, makeValidName, notifyParentOfChange, printReferences, recursivelyContained, recursivelyContains, removeTempFlag, setFixed, setFlag, setMarked, setName, setNavpanelVisibility, setNavpanelVisibility, setNumber, setParent, setScanning, setSelected, setWritable, updateReferences, writeequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetNameequals, hashCode, parallelStream, removeIf, spliterator, streamrecursivelyFindconnectToHierarchy, disconnectFromHierarchy, getHardReferences, getName, getNavpanelVisibility, getNumber, getParent, getSoftReferences, hasState, isFixed, isMarked, isSelected, notifyParentOfChange, setFixed, setMarked, setName, setNumber, setParent, setSelected, setWritable, updateReferencesgetPropertyisWritable, writepublic static PropertyList myProps
public ReferenceListBase()
public ReferenceListBase(java.lang.Class<R> clazz, java.lang.String name)
public PropertyList getAllPropertyInfo()
HasPropertiesgetAllPropertyInfo in interface HasPropertiesgetAllPropertyInfo in class ComponentList<R extends ReferenceComp<C>>public R addReference(C comp)
comp - component to be referencedpublic void addReferences(java.util.Collection<C> comps)
comps - components to be referencedpublic C getReference(int idx)
idx-th referenced component in this list.idx - index of the referencepublic void getReferences(java.util.Collection<C> comps)
comps - collects all the referenced components.public int numReferences()
public boolean containsReference(C comp)
comp - component to checktrue if a reference is presentpublic int indexOfReference(C comp)
comp - component whose index is requestedpublic boolean removeReference(C comp)
comp - component whose reference is to be removedfalse if this list did not contain a reference to
comppublic boolean removeReferences(java.util.Collection<C> comps)
comps - components whose references are to be removedfalse if this list did not contain a reference to any of
the specified componentspublic void removeAllReferences()