public interface CompositeComponent extends ModelComponent, ComponentChangeListener, IndexedComponentList
Modifier and Type | Interface and Description |
---|---|
static class |
CompositeComponent.NavpanelDisplay
Specifies how the a composite component should be displayed in a
navigation panel.
|
ModelComponent.NavpanelVisibility
Modifier and Type | Method and Description |
---|---|
void |
componentChanged(ComponentChangeEvent e)
Notifies this composite component that a change has occured within one or
more of its descendants.
|
ModelComponent |
findComponent(java.lang.String path)
Recursively searches for a sub-component of this ModelComponent,
identified by a path of component names.
|
ModelComponent |
get(int idx)
Returns a specific sub-component of this ModelComponent, identified by
index.
|
ModelComponent |
get(java.lang.String nameOrNumber)
Returns a specific sub-component of this ModelComponent, identified by
name or string representation of the sub-component's number
|
ModelComponent |
getByNumber(int num)
Returns a specific sub-component of this ModelComponent, identified by
number.
|
CompositeComponent.NavpanelDisplay |
getNavpanelDisplay()
Returns the DisplayMode for this component.
|
int |
getNumberLimit()
Returns the current upper limit for numbers among all sub-components in
this composite.
|
boolean |
hierarchyContainsReferences()
Returns true if the component hierarchy formed by this component and its
descendents is closed with respect to references.
|
int |
indexOf(ModelComponent comp)
Returns the index of a specified sub-component, or -1 if that the
component is not present.
|
int |
numComponents()
Returns the number of components in this CompositeComponent.
|
void |
updateNameMap(java.lang.String newName,
java.lang.String oldName,
ModelComponent comp) |
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
ModelComponent get(java.lang.String nameOrNumber)
nameOrNumber
- name or number of the sub-componentModelComponent get(int idx)
get
in interface IndexedComponentList
idx
- index of the sub-componentModelComponent getByNumber(int num)
num
- number of the sub-componentint numComponents()
numComponents
in interface IndexedComponentList
int indexOf(ModelComponent comp)
comp
- component whose index is requestedModelComponent findComponent(java.lang.String path)
path
- path leading to the sub-componentint getNumberLimit()
CompositeComponent.NavpanelDisplay getNavpanelDisplay()
void componentChanged(ComponentChangeEvent e)
This method should propagate the notification up the component hierarchy
by calling notifyParentOfChange
.
componentChanged
in interface ComponentChangeListener
e
- optional argument giving specific information about the changevoid updateNameMap(java.lang.String newName, java.lang.String oldName, ModelComponent comp)
boolean hierarchyContainsReferences()
In particular, this means that one does not need to search outside the hierarchy when looking for dependencies.