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 subcomponent of this ModelComponent,
identified by a path of component names.
|
ModelComponent |
get(int idx)
Returns a specific subcomponent of this ModelComponent, identified by
index.
|
ModelComponent |
get(java.lang.String nameOrNumber)
Returns a specific subcomponent of this ModelComponent, identified by
name or string representation of the subcomponent's number
|
ModelComponent |
getByNumber(int num)
Returns a specific subcomponent 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 subcomponents 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 subcomponent, 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, scan, setFixed, setMarked, setName, setNumber, setParent, setSelected, setWritable, updateReferences
getAllPropertyInfo, getProperty
getChildren, hasChildren
postscan
isWritable, write
ModelComponent get(java.lang.String nameOrNumber)
nameOrNumber
- name or number of the subcomponentModelComponent get(int idx)
get
in interface IndexedComponentList
idx
- index of the subcomponentModelComponent getByNumber(int num)
num
- number of the subcomponentint 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 subcomponentint 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.