|
|||||||||||
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.DeckPanel
A panel that displays all of its child widgets in a 'deck', where only one
can be visible at a time. It is used by
TabPanel
.
Field Summary |
Fields inherited from class java.lang.Object |
typeId, typeName |
Constructor Summary | |
DeckPanel()
Creates an empty deck panel. |
Method Summary | |
boolean |
add(Widget w)
Adds a new child widget to the panel. |
int |
getVisibleWidget()
Gets the index of the currently-visible widget. |
boolean |
insert(Widget w,
int beforeIndex)
Inserts a widget into the panel |
boolean |
remove(Widget w)
Removes a widget from the panel. |
void |
showWidget(int index)
Shows the widget at the specified index. |
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 DeckPanel()
Method Detail |
public boolean add(Widget w)
Panel
add
in class ComplexPanel
public int getVisibleWidget()
public boolean insert(Widget w, int beforeIndex)
ComplexPanel
insert
in class ComplexPanel
w
- 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 ComplexPanel
public void showWidget(int index)
index
- the index of the widget to be shown
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |