com.vaadin.ui.

Interface SingleComponentContainer

    • Method Detail

      • getComponentCount

        int getComponentCount()

        Gets the number of children this SingleComponentContainer has. This must be symmetric with what HasComponents.iterator() returns and thus typically return 1 if the content is set, 0 otherwise.

        Returns:

        The number of child components this container has.

      • getContent

        Component getContent()

        Gets the content of this container. The content is a component that serves as the outermost item of the visual contents.

        Returns:

        a component to use as content

        See Also:

        setContent(Component)

      • setContent

        void setContent​(Component content)

        Sets the content of this container. The content is a component that serves as the outermost item of the visual contents. The content should always be set, either as a constructor parameter or by calling this method.