Class VGridLayout

  • All Implemented Interfaces:
    com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.HasVisibility, com.google.gwt.user.client.ui.HasWidgets, com.google.gwt.user.client.ui.HasWidgets.ForIsWidget, com.google.gwt.user.client.ui.IndexedPanel, com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget, com.google.gwt.user.client.ui.IsWidget, Iterable<com.google.gwt.user.client.ui.Widget>

    public class VGridLayout
    extends com.google.gwt.user.client.ui.ComplexPanel
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      class  VGridLayout.Cell
      For internal use only.
      • Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject

        com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
      • Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets

        com.google.gwt.user.client.ui.HasWidgets.ForIsWidget
      • Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.IndexedPanel

        com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget
    • Constructor Summary

      Constructors 
      Constructor Description
      VGridLayout()  
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      VGridLayout.Cell createNewCell​(int row, int col)
      Creates a new Cell with the given coordinates.
      VGridLayout.Cell getCell​(int row, int col)
      For internal use only.
      protected int[] getColumnWidths()
      Returns the column widths measured in pixels
      ComponentConnector getComponent​(com.google.gwt.dom.client.Element element)
      Returns the deepest nested child component which contains "element".
      ComponentConnector getComponent​(com.google.gwt.user.client.Element element)
      Deprecated.
      As of 7.2, call or override getComponent(Element) instead
      protected int getHorizontalSpacing()
      Returns the spacing between the cells horizontally in pixels
      protected int[] getRowHeights()
      Returns the row heights measured in pixels
      protected int getVerticalSpacing()
      Returns the spacing between the cells vertically in pixels
      boolean remove​(com.google.gwt.user.client.ui.Widget w)  
      void setCaption​(com.google.gwt.user.client.ui.Widget widget, VCaption caption)
      For internal use only.
      void setSize​(int rows, int cols)  
      void updateHeight()
      For internal use only.
      void updateMarginStyleNames​(MarginInfo marginInfo)
      For internal use only.
      void updateSpacingStyleName​(boolean spacingEnabled)
      For internal use only.
      void updateWidth()
      For internal use only.
      • Methods inherited from class com.google.gwt.user.client.ui.ComplexPanel

        add, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove
      • Methods inherited from class com.google.gwt.user.client.ui.Panel

        add, add, adopt, clear, doAttachChildren, doDetachChildren, orphan, remove
      • Methods inherited from class com.google.gwt.user.client.ui.Widget

        addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
      • Methods inherited from class com.google.gwt.user.client.ui.UIObject

        addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
    • Field Detail

      • client

        public ApplicationConnection client
        For internal use only. May be removed or replaced in the future.
      • widgetToCell

        public HashMap<com.google.gwt.user.client.ui.Widget,​VGridLayout.Cell> widgetToCell
        For internal use only. May be removed or replaced in the future.
      • columnWidths

        public int[] columnWidths
        For internal use only. May be removed or replaced in the future.
      • rowHeights

        public int[] rowHeights
        For internal use only. May be removed or replaced in the future.
      • colExpandRatioArray

        public float[] colExpandRatioArray
        For internal use only. May be removed or replaced in the future.
      • rowExpandRatioArray

        public float[] rowExpandRatioArray
        For internal use only. May be removed or replaced in the future.
      • spacingMeasureElement

        public com.google.gwt.dom.client.DivElement spacingMeasureElement
        For internal use only. May be removed or replaced in the future.
      • explicitRowRatios

        public Set<Integer> explicitRowRatios
      • explicitColRatios

        public Set<Integer> explicitColRatios
      • hideEmptyRowsAndColumns

        public boolean hideEmptyRowsAndColumns
    • Constructor Detail

      • VGridLayout

        public VGridLayout()
    • Method Detail

      • getColumnWidths

        protected int[] getColumnWidths()
        Returns the column widths measured in pixels
        Returns:
      • getRowHeights

        protected int[] getRowHeights()
        Returns the row heights measured in pixels
        Returns:
      • getHorizontalSpacing

        protected int getHorizontalSpacing()
        Returns the spacing between the cells horizontally in pixels
        Returns:
      • getVerticalSpacing

        protected int getVerticalSpacing()
        Returns the spacing between the cells vertically in pixels
        Returns:
      • updateHeight

        public void updateHeight()
        For internal use only. May be removed or replaced in the future.
      • updateWidth

        public void updateWidth()
        For internal use only. May be removed or replaced in the future.
      • getCell

        public VGridLayout.Cell getCell​(int row,
                                        int col)
        For internal use only. May be removed or replaced in the future.
      • createNewCell

        public VGridLayout.Cell createNewCell​(int row,
                                              int col)
        Creates a new Cell with the given coordinates.

        For internal use only. May be removed or replaced in the future.

        Parameters:
        row -
        col -
        Returns:
      • getComponent

        @Deprecated
        public ComponentConnector getComponent​(com.google.gwt.user.client.Element element)
        Deprecated.
        As of 7.2, call or override getComponent(Element) instead
        Returns the deepest nested child component which contains "element". The child component is also returned if "element" is part of its caption.

        For internal use only. May be removed or replaced in the future.

        Parameters:
        element - An element that is a nested sub element of the root element in this layout
        Returns:
        The Paintable which the element is a part of. Null if the element belongs to the layout and not to a child.
      • getComponent

        public ComponentConnector getComponent​(com.google.gwt.dom.client.Element element)
        Returns the deepest nested child component which contains "element". The child component is also returned if "element" is part of its caption.

        For internal use only. May be removed or replaced in the future.

        Parameters:
        element - An element that is a nested sub element of the root element in this layout
        Returns:
        The Paintable which the element is a part of. Null if the element belongs to the layout and not to a child.
        Since:
        7.2
      • setCaption

        public void setCaption​(com.google.gwt.user.client.ui.Widget widget,
                               VCaption caption)
        For internal use only. May be removed or replaced in the future.
      • updateMarginStyleNames

        public void updateMarginStyleNames​(MarginInfo marginInfo)
        For internal use only. May be removed or replaced in the future.
      • updateSpacingStyleName

        public void updateSpacingStyleName​(boolean spacingEnabled)
        For internal use only. May be removed or replaced in the future.
      • setSize

        public void setSize​(int rows,
                            int cols)
      • remove

        public boolean remove​(com.google.gwt.user.client.ui.Widget w)
        Specified by:
        remove in interface com.google.gwt.user.client.ui.HasWidgets
        Overrides:
        remove in class com.google.gwt.user.client.ui.ComplexPanel