Class AbstractMutableContainer

    • Constructor Detail

      • AbstractMutableContainer

        public AbstractMutableContainer()
    • Method Detail

      • add

        public void add​(WComponent component)
        Adds the given component as a child of this component.
        Specified by:
        add in interface MutableContainer
        Parameters:
        component - the component to add.
      • add

        @Deprecated
        public void add​(WComponent component,
                        String tag)
        Deprecated.
        Use WTemplate instead
        Add the given component as a child of this component. The tag is used to identify the child in this component's velocity template.
        Parameters:
        component - the component to add.
        tag - the tag used to identify the component.
      • remove

        public void remove​(WComponent aChild)
        Removes the given component from this component.
        Specified by:
        remove in interface MutableContainer
        Parameters:
        aChild - the child component to remove
      • removeAll

        public void removeAll()
        Removes all the child components from this component.
        Specified by:
        removeAll in interface MutableContainer