public interface HasComponents
Component
s that contain other Component
s.Modifier and Type | Method and Description |
---|---|
default void |
focusFirstComponent()
Focuses the first
Component.Focusable component, if present. |
Component |
getComponent(java.lang.String id)
Gets a component belonging to the whole components tree below this container.
|
default Component |
getComponentNN(java.lang.String id)
Gets a component belonging to the whole components tree below this container.
|
java.util.Collection<Component> |
getComponents()
Gets all components belonging to the whole components tree below this container.
|
Component |
getOwnComponent(java.lang.String id)
Gets component directly owned by this container.
|
java.util.Collection<Component> |
getOwnComponents()
Gets all components directly owned by this container.
|
java.util.stream.Stream<Component> |
getOwnComponentsStream()
Gets stream of all components directly owned by this container.
|
@Nullable Component getOwnComponent(java.lang.String id)
@Nullable Component getComponent(java.lang.String id)
default Component getComponentNN(java.lang.String id)
java.lang.IllegalArgumentException
- if a component with the given id is not foundjava.util.Collection<Component> getOwnComponents()
java.util.stream.Stream<Component> getOwnComponentsStream()
java.util.Collection<Component> getComponents()
default void focusFirstComponent()
Component.Focusable
component, if present.