Interface ComponentContainer<T extends Component>

    • Method Detail

      • setComponentList

        void setComponentList​(ComponentList<T> components)
      • getComponents

        default <C extends TList<C> getComponents​(String... name)
      • getComponent

        default <C extends TOptional<C> getComponent​(String name)
      • add

        default ComponentContainer<T> add​(T component)
        Add a subcomponent to this component.
        Parameters:
        component - the subcomponent to add
        Returns:
        a reference to this component to support method chaining
      • remove

        default ComponentContainer<T> remove​(T component)
        Remove a subcomponent from this component.
        Parameters:
        component - the subcomponent to remove
        Returns:
        a reference to this component to support method chaining
      • replace

        default ComponentContainer<T> replace​(T component)
        Add a subcomponent to this component whilst removing all other subcomponents with the same component name.
        Parameters:
        component - the subcomponent to add
        Returns:
        a reference to the component to support method chaining