public interface MutableCompositeComponent<C extends ModelComponent> extends CompositeComponent
CompositeComponent.NavpanelDisplay
ModelComponent.NavpanelVisibility
Modifier and Type | Method and Description |
---|---|
boolean |
add(C comp)
Adds a component to this MutableCompositeComponent.
|
void |
addComponents(ModelComponent[] comps,
int[] indices,
int num)
Adds a set of components to this MutableCompositeComponent.
|
boolean |
remove(java.lang.Object comp)
Removes a component from this MutableCompositeComponent, returning true if the
componet was in fact found and removed.
|
void |
removeComponents(ModelComponent[] comps,
int[] indices,
int num)
Removes a set of components from this MutableCompositeComponent.
|
componentChanged, findComponent, get, get, getByNumber, getNavpanelDisplay, getNumberLimit, hierarchyContainsReferences, indexOf, numComponents, updateNameMap
connectToHierarchy, disconnectFromHierarchy, getHardReferences, getName, getNavpanelVisibility, getNumber, getParent, getSoftReferences, hasState, isFixed, isMarked, isSelected, notifyParentOfChange, postscan, scan, setFixed, setMarked, setName, setNumber, setParent, setSelected, updateReferences
getAllPropertyInfo, getProperty
getChildren, hasChildren
isWritable, write
boolean add(C comp)
comp
- component to be addetrue
if the component was actually addedvoid addComponents(ModelComponent[] comps, int[] indices, int num)
indices
is not
null, it specified the index locations at which the components should be
added. It is up to the caller to insure that the specified index values
make sense; in particular, they must not exceed the final size of the
component and no two specified indices can be the same.comps
- list of components to be addedindices
- (optional) index locations of componentsnum
- number of components to be addedboolean remove(java.lang.Object comp)
comp
- component to be addedvoid removeComponents(ModelComponent[] comps, int[] indices, int num)
indices
is not
null, it is used to return the indices where the components were located.comps
- components to be removedindices
- (optional) stores the indices of the removed componentsnum
- number of components to be removed