|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Panel
com.google.gwt.user.client.ui.ComplexPanel
com.google.gwt.user.client.ui.CellPanel
A panel whose child widgets are contained within the cells of a table. Each cell's size may be set independently. Each child widget can take up a subset of its cell and can be aligned within it.
Field Summary |
Fields inherited from class java.lang.Object |
typeId, typeName |
Constructor Summary | |
protected |
CellPanel()
|
Method Summary | |
int |
getSpacing()
Gets the amount of spacing between this panel's cells. |
protected Element |
getTable()
Accessor for subclasses to get this panel's table element. |
void |
setBorderWidth(int width)
Sets the width of the border to be applied to all cells in this panel. |
abstract void |
setCellHeight(Widget w,
String height)
Sets the height of the cell associated with the given widget, related to the panel as a whole. |
abstract void |
setCellHorizontalAlignment(Widget w,
HasHorizontalAlignment.HorizontalAlignmentConstant align)
Sets the horizontal alignment of the given widget within its cell |
abstract void |
setCellVerticalAlignment(Widget w,
HasVerticalAlignment.VerticalAlignmentConstant align)
Sets the vertical alignment of the given widget within its cell |
abstract void |
setCellWidth(Widget w,
String width)
Sets the width of the cell associated with the given widget, related to the panel as a whole. |
void |
setSpacing(int spacing)
Sets the amount of spacing between this panel's cells. |
Methods inherited from class com.google.gwt.user.client.ui.ComplexPanel |
add, clear, getWidget, getWidgetCount, getWidgetIndex, insert, iterator, remove |
Methods inherited from class com.google.gwt.user.client.ui.Panel |
adopt, disown, onAttach, onDetach |
Methods inherited from class com.google.gwt.user.client.ui.Widget |
getParent, isAttached, onBrowserEvent, onLoad |
Methods inherited from class com.google.gwt.user.client.ui.UIObject |
addStyleName, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleName, isVisible, isVisible, removeStyleName, setElement, setHeight, setPixelSize, setSize, setStyleName, setStyleName, setVisible, setVisible, setWidth, sinkEvents, toString, unsinkEvents |
Methods inherited from class java.lang.Object |
equals, finalize, hashCode |
Constructor Detail |
protected CellPanel()
Method Detail |
public void setBorderWidth(int width)
width
- the width of the panel's cell borders, in pixelspublic int getSpacing()
public abstract void setCellHeight(Widget w, String height)
w
- the widget whose cell height is to be setheight
- the cell's height, in CSS unitspublic abstract void setCellHorizontalAlignment(Widget w, HasHorizontalAlignment.HorizontalAlignmentConstant align)
w
- the widget whose horizontal alignment is to be setalign
- the widget's horizontal alignment, as defined in
HasHorizontalAlignment
.public abstract void setCellVerticalAlignment(Widget w, HasVerticalAlignment.VerticalAlignmentConstant align)
w
- the widget whose vertical alignment is to be setalign
- the widget's vertical alignment, as defined in
HasVerticalAlignment
.public abstract void setCellWidth(Widget w, String width)
w
- the widget whose cell width is to be setwidth
- the cell's width, in CSS unitspublic void setSpacing(int spacing)
spacing
- the inter-cell spacing, in pixelsprotected Element getTable()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |