Interface ListMediator

    • Method Detail

      • getList

        List<Mediator> getList()
        Get the child list of mediators
        Returns:
        list of child mediators
      • getChild

        Mediator getChild​(int pos)
        Get the child from the position
        Parameters:
        pos - position of the child
        Returns:
        mediator of this position. If the position invalid null will be returned
      • removeChild

        Mediator removeChild​(int pos)
        Remove a child from this position
        Parameters:
        pos - position of the child
        Returns:
        mediator that is removed
      • removeChild

        boolean removeChild​(Mediator mediator)
        Remove this child
        Parameters:
        mediator - mediator to be removed
        Returns:
        true if the remove successful
      • addChild

        void addChild​(Mediator mediator)
        Add the child to this mediator
        Parameters:
        mediator - child mediator to be added