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.DockPanel |
This class is deprecated.
Use DockLayoutPanel
instead, but understand that it is
not a drop in replacement for this class. It requires standards
mode, and is most easily used under a RootLayoutPanel
(as
opposed to a RootPanel
A panel that lays its child widgets out "docked" at its outer edges, and allows its last widget to take up the remaining space in its center.
This widget will only work in quirks mode. If your application is in
Standards Mode, use DockLayoutPanel
instead.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
DockPanel.DockLayoutConstant | DockPanel layout constant, used in
add(Widget, DockPanel.DockLayoutConstant) . |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.gwt.user.client.ui.UIObject
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CENTER | Specifies that a widget be added at the center of the dock. | ||||||||||
EAST | Specifies that a widget be added at the east edge of the dock. | ||||||||||
LINE_END | Specifies that a widget be added at the end of the line direction for the layout. | ||||||||||
LINE_START | Specifies that a widget be added at the beginning of the line direction for the layout. | ||||||||||
NORTH | Specifies that a widget be added at the north edge of the dock. | ||||||||||
SOUTH | Specifies that a widget be added at the south edge of the dock. | ||||||||||
WEST | Specifies that a widget be added at the west edge of the dock. |
[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 dock panel.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds a widget to the specified edge of the dock.
| |||||||||||
Gets the horizontal alignment.
| |||||||||||
Gets the vertical alignment.
| |||||||||||
Gets the layout direction of the given child widget.
| |||||||||||
Removes a child widget.
| |||||||||||
Sets the height of the cell associated with the given widget, related to
the panel as a whole.
| |||||||||||
Sets the horizontal alignment of the given widget within its cell.
| |||||||||||
Sets the vertical alignment of the given widget within its cell.
| |||||||||||
Sets the width of the cell associated with the given widget, related to the
panel as a whole.
| |||||||||||
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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
DockPanel supports adding more than one cell in a direction, so an
integer will be appended to the end of the debug id. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.gwt.user.client.ui.CellPanel
| |||||||||||
From class
com.google.gwt.user.client.ui.ComplexPanel
| |||||||||||
From class
com.google.gwt.user.client.ui.Panel
| |||||||||||
From class
com.google.gwt.user.client.ui.Widget
| |||||||||||
From class
com.google.gwt.user.client.ui.UIObject
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface com.google.gwt.event.logical.shared.HasAttachHandlers | |||||||||||
From interface com.google.gwt.event.shared.HasHandlers | |||||||||||
From interface
com.google.gwt.user.client.EventListener
| |||||||||||
From interface
com.google.gwt.user.client.ui.HasHorizontalAlignment
| |||||||||||
From interface
com.google.gwt.user.client.ui.HasVerticalAlignment
| |||||||||||
From interface
com.google.gwt.user.client.ui.HasWidgets
| |||||||||||
From interface
com.google.gwt.user.client.ui.HasWidgets.ForIsWidget
| |||||||||||
From interface
com.google.gwt.user.client.ui.IndexedPanel
| |||||||||||
From interface
com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget
| |||||||||||
From interface
com.google.gwt.user.client.ui.IsWidget
| |||||||||||
From interface
java.lang.Iterable
|
Specifies that a widget be added at the center of the dock.
Specifies that a widget be added at the east edge of the dock.
Specifies that a widget be added at the end of the line direction for the layout.
Specifies that a widget be added at the beginning of the line direction for the layout.
Specifies that a widget be added at the north edge of the dock.
Specifies that a widget be added at the south edge of the dock.
Specifies that a widget be added at the west edge of the dock.
Creates an empty dock panel.
Adds a widget to the specified edge of the dock. If the widget is already a
child of this panel, this method behaves as though remove(Widget)
had already been called.
widget | the widget to be added |
---|---|
direction | the widget's direction in the dock |
IllegalArgumentException | when adding to the CENTER and
there is already a different widget there
|
---|
Gets the horizontal alignment.
ALIGN_LEFT
,
ALIGN_CENTER
,
ALIGN_RIGHT
,
ALIGN_JUSTIFY
, or
null).
Gets the vertical alignment.
Gets the layout direction of the given child widget.
w | the widget to be queried |
---|
null
if it is not
a child of this panel
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 height of the cell associated with the given widget, related to the panel as a whole.
w | the widget whose cell height is to be set |
---|---|
height | the cell's height, in CSS units |
Sets the horizontal alignment of the given widget within its cell.
w | the widget whose horizontal alignment is to be set |
---|---|
align | the widget's horizontal alignment, as defined in
HasHorizontalAlignment .
|
Sets the vertical alignment of the given widget within its cell.
w | the widget whose vertical alignment is to be set |
---|---|
align | the widget's vertical alignment, as defined in
HasVerticalAlignment .
|
Sets the width of the cell associated with the given widget, related to the panel as a whole.
w | the widget whose cell width is to be set |
---|---|
width | the cell's width, in CSS units |
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 ).
|
---|
DockPanel
supports adding more than one cell in a direction, so an
integer will be appended to the end of the debug id. For example, the first
north cell is labeled "north1", the second is "north2", and the third is
"north3".
This widget recreates its structure every time a Widget
is added,
so you must call this method after adding a new Widget
or all debug
IDs will be lost.
Affected Elements:
baseID | the base ID used by the main element |
---|