com.vaadin.ui.

Class HorizontalLayout

    • Constructor Detail

      • HorizontalLayout

        public HorizontalLayout()

        Constructs an empty HorizontalLayout.

    • Method Detail

      • getState

        protected HorizontalLayoutState 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 width of all added child components are set to 100% so that the expansion will be effective. The width 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