Class HtmlContainer

    • Constructor Detail

      • HtmlContainer

        protected HtmlContainer()
        Creates an empty component with the element determined by the Tag annotation of a sub class.
      • HtmlContainer

        protected HtmlContainer​(Component... components)
        Creates a component with the given child components. The element is determined by the Tag annotation of a sub class.
        Parameters:
        components - the child components
      • HtmlContainer

        public HtmlContainer​(String tagName)
        Creates a new empty component with a new element with the given tag name.
        Parameters:
        tagName - the tag name of the element to use for this component, not null
      • HtmlContainer

        public HtmlContainer​(String tagName,
                             Component... components)
        Creates a new component with the given contents and a new element with the given tag name.
        Parameters:
        tagName - the tag name of the element to use for this component, not null
        components - the child components