com.google.gwt.user.client.ui
Class DeckPanel

java.lang.Object
  extended bycom.google.gwt.user.client.ui.UIObject
      extended bycom.google.gwt.user.client.ui.Widget
          extended bycom.google.gwt.user.client.ui.Panel
              extended bycom.google.gwt.user.client.ui.ComplexPanel
                  extended bycom.google.gwt.user.client.ui.DeckPanel
All Implemented Interfaces:
EventListener, HasWidgets

public class DeckPanel
extends ComplexPanel

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

DeckPanel

public DeckPanel()
Creates an empty deck panel.

Method Detail

add

public boolean add(Widget w)
Description copied from class: Panel
Adds a new child widget to the panel.

Overrides:
add in class ComplexPanel

getVisibleWidget

public int getVisibleWidget()
Gets the index of the currently-visible widget.

Returns:
the visible widget's index

insert

public boolean insert(Widget w,
                      int beforeIndex)
Description copied from class: ComplexPanel
Inserts a widget into the panel

Overrides:
insert in class ComplexPanel
Parameters:
w - the widget to be inserted
beforeIndex - the index before which it will be inserted
Returns:
true on success (some panels place restrictions on how children may be added or inserted)

remove

public boolean remove(Widget w)
Description copied from class: Panel
Removes a widget from the panel.

Overrides:
remove in class ComplexPanel

showWidget

public void showWidget(int index)
Shows the widget at the specified index. This causes the currently- visible widget to be hidden.

Parameters:
index - the index of the widget to be shown


This javadoc distribution was not produced by Google. The official documentation is here.