public class VGridLayout
extends com.google.gwt.user.client.ui.ComplexPanel
Modifier and Type | Class and Description |
---|---|
class |
VGridLayout.Cell
For internal use only.
|
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
Modifier and Type | Field and Description |
---|---|
static String |
CLASSNAME |
ApplicationConnection |
client
For internal use only.
|
float[] |
colExpandRatioArray
For internal use only.
|
int[] |
columnWidths
For internal use only.
|
Set<Integer> |
explicitColRatios |
Set<Integer> |
explicitRowRatios |
boolean |
hideEmptyRowsAndColumns |
float[] |
rowExpandRatioArray
For internal use only.
|
int[] |
rowHeights
For internal use only.
|
com.google.gwt.dom.client.DivElement |
spacingMeasureElement
For internal use only.
|
HashMap<com.google.gwt.user.client.ui.Widget,VGridLayout.Cell> |
widgetToCell
For internal use only.
|
Constructor and Description |
---|
VGridLayout() |
Modifier and Type | Method and 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.user.client.Element element)
Deprecated.
As of 7.2, call or override
getComponent(Element)
instead |
ComponentConnector |
getComponent(com.google.gwt.dom.client.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(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.
|
add, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove
add, add, adopt, clear, doAttachChildren, doDetachChildren, orphan, remove
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public static final String CLASSNAME
public ApplicationConnection client
public HashMap<com.google.gwt.user.client.ui.Widget,VGridLayout.Cell> widgetToCell
public int[] columnWidths
public int[] rowHeights
public float[] colExpandRatioArray
public float[] rowExpandRatioArray
public com.google.gwt.dom.client.DivElement spacingMeasureElement
public boolean hideEmptyRowsAndColumns
protected int[] getColumnWidths()
protected int[] getRowHeights()
protected int getHorizontalSpacing()
protected int getVerticalSpacing()
public void updateHeight()
public void updateWidth()
public VGridLayout.Cell getCell(int row, int col)
public VGridLayout.Cell createNewCell(int row, int col)
For internal use only. May be removed or replaced in the future.
row
- col
- @Deprecated public ComponentConnector getComponent(com.google.gwt.user.client.Element element)
getComponent(Element)
insteadFor internal use only. May be removed or replaced in the future.
element
- An element that is a nested sub element of the root element in
this layoutpublic ComponentConnector getComponent(com.google.gwt.dom.client.Element element)
For internal use only. May be removed or replaced in the future.
element
- An element that is a nested sub element of the root element in
this layoutpublic void setCaption(com.google.gwt.user.client.ui.Widget widget, VCaption caption)
public void updateMarginStyleNames(MarginInfo marginInfo)
public void updateSpacingStyleName(boolean spacingEnabled)
public void setSize(int rows, int cols)
public boolean remove(com.google.gwt.user.client.ui.Widget w)
remove
in interface com.google.gwt.user.client.ui.HasWidgets
remove
in class com.google.gwt.user.client.ui.ComplexPanel
Copyright © 2019 Vaadin Ltd. All rights reserved.