|
|||||||||||
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.StackPanel
A panel that stacks its children vertically, displaying only one at a time, with a header for each that the user can click to display it.
code
Field Summary |
Fields inherited from class java.lang.Object |
typeId, typeName |
Constructor Summary | |
StackPanel()
Creates an empty stack panel. |
Method Summary | |
boolean |
add(Widget w)
Adds a new child widget to the panel. |
boolean |
add(Widget w,
String stackText)
Adds a widget to the panel, along with its header. |
boolean |
add(Widget w,
String stackText,
boolean asHTML)
Adds a widget to the panel, along with its header, optionally interpreting the header as HTML. |
void |
onBrowserEvent(Event event)
Fired whenever a browser event is received. |
boolean |
remove(Widget child)
Removes a widget from the panel. |
void |
setStackText(int index,
String text)
Sets the text associated with a widget, by its index. |
void |
setStackText(int index,
String text,
boolean asHTML)
Sets the text associated with a widget, by its index. |
void |
showStack(int index)
Shows the widget at the specified index. |
Methods inherited from class com.google.gwt.user.client.ui.ComplexPanel |
clear, getWidget, getWidgetCount, getWidgetIndex, insert, 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, 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 StackPanel()
Method Detail |
public boolean add(Widget w)
Panel
add
in class ComplexPanel
public boolean add(Widget w, String stackText)
w
- the widget to be addedstackText
- the header text associated with this widget
true
if successfulpublic boolean add(Widget w, String stackText, boolean asHTML)
w
- the widget to be addedstackText
- the header text associated with this widgetasHTML
- true
to treat the specified text as HTML
true
if successfulpublic void onBrowserEvent(Event event)
EventListener
onBrowserEvent
in interface EventListener
onBrowserEvent
in class Widget
public boolean remove(Widget child)
Panel
remove
in class ComplexPanel
public void setStackText(int index, String text)
index
- the index of the widget whose text is to be settext
- the text to be associated with itpublic void setStackText(int index, String text, boolean asHTML)
index
- the index of the widget whose text is to be settext
- the text to be associated with itasHTML
- true
to treat the specified text as HTMLpublic void showStack(int index)
index
- the widget index to be shown
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |