public interface ComponentContainer
Modifier and Type | Method and Description |
---|---|
void |
addComponent(Component component)
Adds a component to this container.
|
default java.util.stream.Stream<Component> |
allComponents()
Gets a stream of all the components in this container.
|
java.util.stream.Stream<Component> |
components()
Gets a stream of all the first-level components in this container.
|
void |
removeComponent(Component component)
Removes a component from this container.
|
void addComponent(Component component)
component
- the component to addvoid removeComponent(Component component)
component
- the component to removejava.util.stream.Stream<Component> components()
default java.util.stream.Stream<Component> allComponents()