com.vaadin.ui.

Class VerticalLayout

    • Constructor Detail

      • VerticalLayout

        public VerticalLayout()

        Constructs an empty VerticalLayout.

    • Method Detail

      • getState

        protected VerticalLayoutState getState()

        Description copied from class: AbstractComponent

        Returns the shared state bean with information to be sent from the server to the client. Subclasses should override this method and set any relevant fields of the state returned by super.getState().

        Overrides:

        getState in class AbstractOrderedLayout

        Returns:

        updated component shared state

      • addComponentsAndExpand

        public void addComponentsAndExpand​(Component... components)

        Adds the given components to this layout and sets them as expanded. The height of all added child components are set to 100% so that the expansion will be effective. The height of this layout is also set to 100% if it is currently undefined.

        The components are added in the provided order to the end of this layout. Any components that are already children of this layout will be moved to new positions.

        Parameters:

        components - the components to set, not null

        Since:

        8.0