|
||||||||||
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
com.google.gwt.user.client.ui.VerticalPanel
A panel that lays all of its widgets out in a single vertical column.
Nested Class Summary |
Nested classes inherited from class com.google.gwt.user.client.ui.HasHorizontalAlignment |
HasHorizontalAlignment.HorizontalAlignmentConstant |
Nested classes inherited from class com.google.gwt.user.client.ui.HasVerticalAlignment |
HasVerticalAlignment.VerticalAlignmentConstant |
Field Summary |
Fields inherited from interface com.google.gwt.user.client.ui.HasHorizontalAlignment |
ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT |
Fields inherited from interface com.google.gwt.user.client.ui.HasVerticalAlignment |
ALIGN_BOTTOM, ALIGN_MIDDLE, ALIGN_TOP |
Constructor Summary | |
VerticalPanel()
Creates an empty vertical panel. |
Method Summary | |
void |
add(Widget w)
Adds a child widget to the panel. |
HasHorizontalAlignment.HorizontalAlignmentConstant |
getHorizontalAlignment()
Gets the horizontal alignment. |
HasVerticalAlignment.VerticalAlignmentConstant |
getVerticalAlignment()
Gets the vertical alignment. |
void |
insert(Widget w,
int beforeIndex)
Inserts a widget before the specified index. |
boolean |
remove(Widget w)
Removes a child widget. |
void |
setHorizontalAlignment(HasHorizontalAlignment.HorizontalAlignmentConstant align)
Sets the default horizontal alignment to be used for widgets added to this panel. |
void |
setVerticalAlignment(HasVerticalAlignment.VerticalAlignmentConstant align)
Sets the default vertical alignment to be used for widgets added to this panel. |
Methods inherited from class com.google.gwt.user.client.ui.CellPanel |
getBody, getSpacing, getTable, setBorderWidth, setCellHeight, setCellHorizontalAlignment, setCellVerticalAlignment, setCellWidth, setSpacing |
Methods inherited from class com.google.gwt.user.client.ui.ComplexPanel |
add, getChildren, getWidget, getWidgetCount, getWidgetIndex, insert, iterator, remove |
Methods inherited from class com.google.gwt.user.client.ui.Panel |
adopt, clear, disown, onAttach, onDetach |
Methods inherited from class com.google.gwt.user.client.ui.Widget |
getParent, isAttached, onBrowserEvent, onLoad, onUnload, removeFromParent, setElement |
Methods inherited from class com.google.gwt.user.client.ui.UIObject |
addStyleName, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getTitle, isVisible, isVisible, removeStyleName, resetStyleName, setHeight, setPixelSize, setSize, setStyleName, setStyleName, setTitle, setVisible, setVisible, setWidth, sinkEvents, toString, unsinkEvents |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public VerticalPanel()
Method Detail |
public void add(Widget w)
add
in interface HasWidgets
add
in class Panel
w
- the widget to be addedpublic HasHorizontalAlignment.HorizontalAlignmentConstant getHorizontalAlignment()
HasHorizontalAlignment
getHorizontalAlignment
in interface HasHorizontalAlignment
public HasVerticalAlignment.VerticalAlignmentConstant getVerticalAlignment()
HasVerticalAlignment
getVerticalAlignment
in interface HasVerticalAlignment
public void insert(Widget w, int beforeIndex)
w
- the widget to be insertedbeforeIndex
- the index before which it will be inserted
java.lang.IndexOutOfBoundsException
- if beforeIndex
is out of
rangepublic boolean remove(Widget w)
HasWidgets
remove
in interface HasWidgets
remove
in class ComplexPanel
public void setHorizontalAlignment(HasHorizontalAlignment.HorizontalAlignmentConstant align)
setHorizontalAlignment
in interface HasHorizontalAlignment
align
- the horizontal alignment (
HasHorizontalAlignment.ALIGN_LEFT
,
HasHorizontalAlignment.ALIGN_CENTER
, or
HasHorizontalAlignment.ALIGN_RIGHT
).HasHorizontalAlignment.setHorizontalAlignment(HasHorizontalAlignment.HorizontalAlignmentConstant)
public void setVerticalAlignment(HasVerticalAlignment.VerticalAlignmentConstant align)
setVerticalAlignment
in interface HasVerticalAlignment
align
- the vertical alignment (
HasVerticalAlignment.ALIGN_TOP
,
HasVerticalAlignment.ALIGN_MIDDLE
, or
HasVerticalAlignment.ALIGN_BOTTOM
).HasVerticalAlignment.setVerticalAlignment(HasVerticalAlignment.VerticalAlignmentConstant)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |