java.lang.Object | ||||||
↳ | com.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.HorizontalPanel |
A panel that lays all of its widgets out in a single horizontal column.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.gwt.user.client.ui.UIObject
|
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.google.gwt.user.client.ui.HasHorizontalAlignment
| |||||||||||
From interface
com.google.gwt.user.client.ui.HasVerticalAlignment
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates an empty horizontal panel.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds a child widget.
| |||||||||||
Gets the horizontal alignment.
| |||||||||||
Gets the vertical alignment.
| |||||||||||
Inserts a child widget before the specified index.
| |||||||||||
Removes a child widget.
| |||||||||||
Sets the default horizontal alignment to be used for widgets added to this
panel.
| |||||||||||
Sets the default vertical alignment to be used for widgets added to this
panel.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Affected Elements:
|
Creates an empty horizontal panel.
Adds a child widget.
How to Override this Method
There are several important things that must take place in the correct order to properly add or insert a Widget to a Panel. Not all of these steps will be relevant to every Panel, but all of the steps must be considered.
adjustIndex(Widget, int)
.removeFromParent()
on the
Widget.WidgetCollection
at the appropriate index.adopt(Widget)
to finalize the add as the
very last step.w | the widget to be added |
---|
Gets the horizontal alignment.
ALIGN_LEFT
,
ALIGN_CENTER
,
ALIGN_RIGHT
,
ALIGN_JUSTIFY
, or
null).
Gets the vertical alignment.
Inserts a child widget before the specified index. If the widget is already a child of this panel, it will be moved to the specified index.
w | the child widget to be inserted |
---|---|
beforeIndex | the index before which it will be inserted |
Removes a child widget.
How to Override this Method
There are several important things that must take place in the correct order to properly remove a Widget from a Panel. Not all of these steps will be relevant to every Panel, but all of the steps must be considered.
false
if it is not.orphan(Widget)
first while the child
Widget is still attached.WidgetCollection
.w | the widget to be removed |
---|
true
if the child was present
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.
align | the horizontal alignment (
ALIGN_LEFT ,
ALIGN_CENTER ,
ALIGN_RIGHT ,
ALIGN_JUSTIFY ,
ALIGN_LOCALE_START , or
ALIGN_LOCALE_END ).
|
---|
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.
align | the vertical alignment (
ALIGN_TOP ,
ALIGN_MIDDLE , or
ALIGN_BOTTOM ).
|
---|
Affected Elements:
baseID | the base ID used by the main element |
---|