-
- All Superinterfaces:
Component
,Lookup.Provider
- All Known Implementing Classes:
AbstractContainer
,AbstractContainer.Delegate
,AbstractRootContainer
,CodeContainer
,CodeRootContainer
,TFRoot
public interface Container extends Component, Lookup.Provider
Extension to the Component interface for components that can contain other components as children.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Stream<String>
children()
Get a Stream of the child IDs that this container makes publicly visible.ComponentAddress
getAddress(Component child)
Get the address for the provided child component, or null if the component is not a child of this container.Component
getChild(String id)
Get child component with specific ID.-
Methods inherited from interface org.praxislive.core.Component
getControl, getInfo, getParent, getPort, hierarchyChanged, parentNotify
-
Methods inherited from interface org.praxislive.core.Lookup.Provider
getLookup
-
-
-
-
Method Detail
-
getChild
Component getChild(String id)
Get child component with specific ID.- Parameters:
id
-- Returns:
- Component, or null if no component with that ID exists.
-
children
Stream<String> children()
Get a Stream of the child IDs that this container makes publicly visible. Containers may have hidden children that can be returned fromgetChild(java.lang.String)
but are not listed here. All IDs returned should correspond to valid components, and (if provided) match the implementation ofContainerProtocol
.A Stream is returned allowing flexibility in implementation.
- Returns:
- stream of public child IDs
-
getAddress
ComponentAddress getAddress(Component child)
Get the address for the provided child component, or null if the component is not a child of this container.- Parameters:
child
- component- Returns:
- address, or null of component is not a child of this container.
-
-