|
|||||||||||
| 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.HorizontalPanel
A panel that lays all of its widgets out in a single horizontal 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 class java.lang.Object |
typeId, typeName |
| 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 | |
HorizontalPanel()
Creates an empty horizontal panel. |
|
| Method Summary | |
boolean |
add(Widget w)
Adds a new child widget to the panel. |
HasHorizontalAlignment.HorizontalAlignmentConstant |
getHorizontalAlignment()
Gets the horizontal alignment. |
HasVerticalAlignment.VerticalAlignmentConstant |
getVerticalAlignment()
Gets the vertical alignment. |
boolean |
insert(Widget w,
int beforeIndex)
Inserts a widget into the panel |
boolean |
remove(Widget w)
Removes a widget from the panel. |
void |
setCellHeight(Widget w,
String height)
Sets the height of the cell associated with the given widget, related to the panel as a whole. |
void |
setCellHorizontalAlignment(Widget w,
HasHorizontalAlignment.HorizontalAlignmentConstant align)
Sets the horizontal alignment of the given widget within its cell |
void |
setCellVerticalAlignment(Widget w,
HasVerticalAlignment.VerticalAlignmentConstant align)
Sets the vertical alignment of the given widget within its cell |
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 |
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 |
getSpacing, getTable, setBorderWidth, setSpacing |
| Methods inherited from class com.google.gwt.user.client.ui.ComplexPanel |
clear, getWidget, getWidgetCount, getWidgetIndex, iterator |
| 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 |
public HorizontalPanel()
| Method Detail |
public boolean add(Widget w)
Panel
add in class ComplexPanelpublic HasHorizontalAlignment.HorizontalAlignmentConstant getHorizontalAlignment()
HasHorizontalAlignment
getHorizontalAlignment in interface HasHorizontalAlignmentpublic HasVerticalAlignment.VerticalAlignmentConstant getVerticalAlignment()
HasVerticalAlignment
getVerticalAlignment in interface HasVerticalAlignment
public boolean insert(Widget w,
int beforeIndex)
ComplexPanel
insert in class ComplexPanelw - the widget to be insertedbeforeIndex - the index before which it will be inserted
true on success (some panels place restrictions on
how children may be added or inserted)public boolean remove(Widget w)
Panel
remove in class ComplexPanelpublic void setHorizontalAlignment(HasHorizontalAlignment.HorizontalAlignmentConstant align)
setHorizontalAlignment in interface HasHorizontalAlignmentalign - the horizontal alignment (
HasHorizontalAlignment.ALIGN_LEFT,
HasHorizontalAlignment.ALIGN_CENTER, or
HasHorizontalAlignment.ALIGN_RIGHT).HasHorizontalAlignment#setHorizontalAlignment(HorizontalAlignmentConstant)public void setVerticalAlignment(HasVerticalAlignment.VerticalAlignmentConstant align)
setVerticalAlignment in interface HasVerticalAlignmentalign - the vertical alignment (
HasVerticalAlignment.ALIGN_TOP,
HasVerticalAlignment.ALIGN_MIDDLE, or
HasVerticalAlignment.ALIGN_BOTTOM).HasVerticalAlignment#setVerticalAlignment(VerticalAlignmentConstant)
public void setCellHorizontalAlignment(Widget w,
HasHorizontalAlignment.HorizontalAlignmentConstant align)
CellPanel
setCellHorizontalAlignment in class CellPanelw - the widget whose horizontal alignment is to be setalign - the widget's horizontal alignment, as defined in
HasHorizontalAlignment.
public void setCellVerticalAlignment(Widget w,
HasVerticalAlignment.VerticalAlignmentConstant align)
CellPanel
setCellVerticalAlignment in class CellPanelw - the widget whose vertical alignment is to be setalign - the widget's vertical alignment, as defined in
HasVerticalAlignment.
public void setCellHeight(Widget w,
String height)
CellPanel
setCellHeight in class CellPanelw - the widget whose cell height is to be setheight - the cell's height, in CSS units
public void setCellWidth(Widget w,
String width)
CellPanel
setCellWidth in class CellPanelw - the widget whose cell width is to be setwidth - the cell's width, in CSS units
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||