Class CodeContainer<D extends CodeContainerDelegate>

    • Method Detail

      • children

        public Stream<String> children()
        Description copied from interface: Container
        Get a Stream of the child IDs that this container makes publicly visible. Containers may have hidden children that can be returned from Container.getChild(java.lang.String) but are not listed here. All IDs returned should correspond to valid components, and (if provided) match the implementation of ContainerProtocol.

        A Stream is returned allowing flexibility in implementation.

        Specified by:
        children in interface Container
        Returns:
        stream of public child IDs
      • getAddress

        public ComponentAddress getAddress​(Component child)
        Description copied from interface: Container
        Get the address for the provided child component, or null if the component is not a child of this container.
        Specified by:
        getAddress in interface Container
        Parameters:
        child - component
        Returns:
        address, or null of component is not a child of this container.
      • getChild

        public Component getChild​(String id)
        Description copied from interface: Container
        Get child component with specific ID.
        Specified by:
        getChild in interface Container
        Returns:
        Component, or null if no component with that ID exists.
      • hierarchyChanged

        public void hierarchyChanged()
        Description copied from interface: Component
        Notify the component that a change has happened in its component hierarchy. For example its direct parent or an ancestor has changed. This method will be called after parentNotify() if the result of an immediate parent change.
        Specified by:
        hierarchyChanged in interface Component
        Overrides:
        hierarchyChanged in class CodeComponent<D extends CodeContainerDelegate>