public interface ComponentContainer extends Component
Component.Alignment, Component.BelongToFrame, Component.Disposable, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.OptionsStyleProvider, Component.Wrapper
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE, UNITS_PERCENTAGE, UNITS_PIXELS
Modifier and Type | Method and Description |
---|---|
default void |
add(Component... childComponents)
Sequentially adds components to this container.
|
void |
add(Component childComponent)
Adds a component to this container.
|
default void |
focusFirstComponent()
Focuses the first
Focusable component, if present. |
Component |
getComponent(java.lang.String id)
Get component belonging to the whole components tree below this container.
|
default Component |
getComponentNN(java.lang.String id)
Get component belonging to the whole components tree below this container.
|
java.util.Collection<Component> |
getComponents()
Get all components belonging to the whole components tree below this container
|
Component |
getOwnComponent(java.lang.String id)
Get component directly owned by this container.
|
java.util.Collection<Component> |
getOwnComponents()
Get all components directly owned by this container
|
java.util.stream.Stream<Component> |
getOwnComponentsStream()
Get stream of components directly owned by this container
|
default void |
remove(Component... childComponents)
Sequentially removes components from this container.
|
void |
remove(Component childComponent)
Removes a component from this container.
|
void |
removeAll()
Removes all components from this container.
|
addStyleName, getAlignment, getHeight, getHeightSizeUnit, getHeightUnits, getId, getParent, getStyleName, getWidth, getWidthSizeUnit, getWidthUnits, isEnabled, isEnabledItself, isEnabledRecursive, isResponsive, isVisible, isVisibleItself, isVisibleRecursive, removeStyleName, requestFocus, setAlignment, setEnabled, setHeight, setHeightAuto, setHeightFull, setId, setParent, setResponsive, setSizeAuto, setSizeFull, setStyleName, setVisible, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapComposition
void add(Component childComponent)
childComponent
- a component to adddefault void add(Component... childComponents)
childComponents
- components to addvoid remove(Component childComponent)
childComponent
- a component to removedefault void remove(Component... childComponents)
childComponents
- components to removevoid removeAll()
@Nullable Component getOwnComponent(java.lang.String id)
@Nullable Component getComponent(java.lang.String id)
@Nonnull default Component getComponentNN(java.lang.String id)
java.util.Collection<Component> getOwnComponents()
java.util.stream.Stream<Component> getOwnComponentsStream()
java.util.Collection<Component> getComponents()
default void focusFirstComponent()
Focusable
component, if present.