Class VerticalPanel
A panel that lays all of its widgets out in a single vertical column.

Constructors
Methods
Constructor Detail
VerticalPanel
public VerticalPanel()
Creates an empty vertical panel.
Method Detail
add
Adds a child widget to the panel. If the Widget is already attached to the
VerticalPanel, it will be moved to the end of the panel.
Parameters
- w
- the widget to be added
getHorizontalAlignment
Gets the horizontal alignment.
Return Value
the current horizontal alignment.
getVerticalAlignment
Gets the vertical alignment.
Return Value
the current vertical alignment.
insert
public void
insert(
Widget w, int beforeIndex)
Inserts a widget before the specified index. If the Widget is already
attached to the VerticalPanel, it will be moved to the specified index.
Parameters
- w
- the widget to be inserted
- beforeIndex
- the index before which it will be inserted
remove
public boolean
remove(
Widget w)
Parameters
- w
-
setHorizontalAlignment
Sets the default horizontal alignment to be used for widgets added to this
panel. It only applies to widgets added after this property is set.
Parameters
- align
-
See Also
HorizontalAlignmentConstant)
setVerticalAlignment
Sets the default vertical alignment to be used for widgets added to this
panel. It only applies to widgets added after this property is set.
Parameters
- align
-
See Also
VerticalAlignmentConstant)