com.vaadin.client.ui
Class VGridLayout

java.lang.Object
  extended by ComplexPanel
      extended by com.vaadin.client.ui.VGridLayout

public class VGridLayout
extends ComplexPanel


Nested Class Summary
 class VGridLayout.Cell
          For internal use only.
 
Field Summary
static java.lang.String CLASSNAME
           
 ApplicationConnection client
          For internal use only.
 int[] colExpandRatioArray
          For internal use only.
 int[] columnWidths
          For internal use only.
 java.util.Set<java.lang.Integer> explicitColRatios
           
 java.util.Set<java.lang.Integer> explicitRowRatios
           
 boolean hideEmptyRowsAndColumns
           
 int[] rowExpandRatioArray
          For internal use only.
 int[] rowHeights
          For internal use only.
 DivElement spacingMeasureElement
          For internal use only.
 java.util.HashMap<Widget,VGridLayout.Cell> widgetToCell
          For internal use only.
 
Constructor Summary
VGridLayout()
           
 
Method Summary
 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.user.client.Element element)
          Deprecated. As of 7.2, call or override getComponent(Element) instead
 ComponentConnector getComponent(Element element)
          Returns the deepest nested child component which contains "element".
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(Widget w)
           
 void setCaption(Widget widget, VCaption caption)
          For internal use only.
 void setSize(int rows, int cols)
           
 void updateHeight()
          For internal use only.
 void updateMarginStyleNames(com.vaadin.shared.ui.MarginInfo marginInfo)
          For internal use only.
 void updateSpacingStyleName(boolean spacingEnabled)
          For internal use only.
 void updateWidth()
          For internal use only.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASSNAME

public static final java.lang.String CLASSNAME
See Also:
Constant Field Values

client

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


widgetToCell

public java.util.HashMap<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 int[] colExpandRatioArray
For internal use only. May be removed or replaced in the future.


rowExpandRatioArray

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


spacingMeasureElement

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


explicitRowRatios

public java.util.Set<java.lang.Integer> explicitRowRatios

explicitColRatios

public java.util.Set<java.lang.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(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(Widget widget,
                       VCaption caption)
For internal use only. May be removed or replaced in the future.


updateMarginStyleNames

public void updateMarginStyleNames(com.vaadin.shared.ui.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(Widget w)


Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.