com.vaadin.ui.

Class AbstractLayout

    • Constructor Detail

      • AbstractLayout

        public AbstractLayout()
    • Method Detail

      • getState

        protected AbstractLayoutState 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 AbstractComponentContainer

        Returns:

        updated component shared state

      • readMargin

        protected MarginInfo readMargin​(org.jsoup.nodes.Element design,
                                        MarginInfo defMargin,
                                        DesignContext context)

        Reads margin attributes from a design into a MarginInfo object. This helper method should be called from the readDesign method of layouts that implement Layout.MarginHandler.

        Parameters:

        design - the design from which to read

        defMargin - the default margin state for edges that are not set in the design

        context - the DesignContext instance used for parsing the design

        Returns:

        the margin info

        Since:

        7.5

      • writeMargin

        protected void writeMargin​(org.jsoup.nodes.Element design,
                                   MarginInfo margin,
                                   MarginInfo defMargin,
                                   DesignContext context)

        Writes margin attributes from a MarginInfo object to a design. This helper method should be called from the writeDesign method of layouts that implement Layout.MarginHandler.

        Parameters:

        design - the design to write to

        margin - the margin state to write

        defMargin - the default margin state to compare against

        context - the DesignContext instance used for parsing the design

        Since:

        7.5