Interface Container.ChildAddingStrategy

Enclosing class:
Container

public static interface Container.ChildAddingStrategy
When a container needs to add a new child Element, use a functor with this interface to create the appropriate context for the new child and to add it in place.
  • Method Summary

    Modifier and Type
    Method
    Description
    addChild(Container parent, Element child)
    Add the element in the appropriate position within the provided container.
  • Method Details

    • addChild

      @Nonnull Container addChild(@Nonnull Container parent, @Nonnull Element child)
      Add the element in the appropriate position within the provided container.
      Parameters:
      parent - container into which to add the new child
      child - child Element to add
      Returns:
      a new child Container representing the child Element