Class CssFloatLayoutContainer

    • Constructor Detail

      • CssFloatLayoutContainer

        public CssFloatLayoutContainer()
        Creates a CSS float layout container with the default appearance.
      • CssFloatLayoutContainer

        public CssFloatLayoutContainer​(CssFloatLayoutContainer.CssFloatLayoutAppearance appearance)
        Creates a CSS float layout container with the specified appearance.
        Parameters:
        appearance - the appearance of the CSS float layout container
    • Method Detail

      • add

        @UiChild(tagname="child")
        public void add​(com.google.gwt.user.client.ui.IsWidget child,
                        CssFloatLayoutContainer.CssFloatData layoutData)
        Adds a widget to the CSS float layout container with the specified layout parameters.
        Parameters:
        child - the widget to add to the layout container
        layoutData - the parameters that describe how to lay out the widget
      • addScrollHandler

        public com.google.gwt.event.shared.HandlerRegistration addScrollHandler​(com.google.gwt.event.dom.client.ScrollHandler handler)
        Specified by:
        addScrollHandler in interface com.google.gwt.event.dom.client.HasScrollHandlers
      • getScrollMode

        public ScrollSupport.ScrollMode getScrollMode()
        Returns the scroll mode from the container's ScrollSupport instance.
        Returns:
        the scroll mode
      • getStyleFloat

        public com.google.gwt.dom.client.Style.Float getStyleFloat()
        Returns the value of the CSS float property.
        Returns:
        the value of the CSS float property
      • insert

        public void insert​(com.google.gwt.user.client.ui.IsWidget w,
                           int beforeIndex,
                           CssFloatLayoutContainer.CssFloatData layoutData)
        Inserts the widget at the specified index in the CSS float layout container.
        Parameters:
        w - the widget to insert in the layout container
        beforeIndex - the insert index
        layoutData - the parameters that describe how to lay out the widget
      • isAdjustForScroll

        public boolean isAdjustForScroll()
        Returns true if adjust for scroll is enabled.
        Returns:
        the adjust for scroll state
      • setAdjustForScroll

        public void setAdjustForScroll​(boolean adjustForScroll)
        True to adjust the container width calculations to account for the scroll bar (defaults to false).
        Parameters:
        adjustForScroll - the adjust for scroll state
      • setScrollMode

        public void setScrollMode​(ScrollSupport.ScrollMode scrollMode)
        Sets the scroll mode on the container's ScrollSupport instance. The scroll mode will not be preserved if setScrollSupport(ScrollSupport) is called after calling this method.
        Parameters:
        scrollMode - the scroll mode
      • setStyleFloat

        public void setStyleFloat​(com.google.gwt.dom.client.Style.Float styleFloat)
        Sets the value of the CSS float property.
        Parameters:
        styleFloat - the value of the CSS float property