com.tensegrity.palowebviewer.modules.widgets.client.tab
Class GTabPanel

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.user.client.ui.Composite
              extended by com.tensegrity.palowebviewer.modules.widgets.client.tab.GTabPanel
All Implemented Interfaces:
com.google.gwt.user.client.EventListener

public class GTabPanel
extends com.google.gwt.user.client.ui.Composite

A panel that represents a tabbed set of pages, each of which contains another widget. Its child widgets are shown as the user selects the various tabs associated with them. The tabs can contain arbitrary HTML.

Note that this widget is not a panel per se, but rather a Composite that aggregates a TabBar and a DeckPanel. It does, however, implement HasWidgets.

CSS Style Rules

Example


Constructor Summary
GTabPanel()
          Creates an empty tab panel.
 
Method Summary
 void add(ITabElement tab, boolean selected)
           
 void add(com.google.gwt.user.client.ui.Widget w)
           
 void addTabListener(TabListener listener)
           
 void changeIconTab(ITabElement tab)
           
 void changeTitleTab(ITabElement tab)
           
 ITabElement getTab(int index)
           
 int getTabsCount()
           
 int getWidgetIndex(com.google.gwt.user.client.ui.Widget widget)
           
 java.util.Iterator iterator()
           
 boolean remove(ITabElement tab)
          Removes the given widget, and its associated tab.
 void removeTabListener(TabListener listener)
           
 void selectTab(ITabElement tab)
          Programmatically selects the specified tab.
 
Methods inherited from class com.google.gwt.user.client.ui.Composite
getElement, getWidget, initWidget, isAttached, onAttach, onDetach, setWidget
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
doAttachChildren, doDetachChildren, getParent, onBrowserEvent, onLoad, onUnload, removeFromParent, setElement
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, removeStyleDependentName, removeStyleName, setHeight, setPixelSize, setSize, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkEvents, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GTabPanel

public GTabPanel()
Creates an empty tab panel.

Method Detail

add

public void add(com.google.gwt.user.client.ui.Widget w)

add

public void add(ITabElement tab,
                boolean selected)

addTabListener

public void addTabListener(TabListener listener)

getTab

public ITabElement getTab(int index)

getTabsCount

public int getTabsCount()

getWidgetIndex

public int getWidgetIndex(com.google.gwt.user.client.ui.Widget widget)

iterator

public java.util.Iterator iterator()

remove

public boolean remove(ITabElement tab)
Removes the given widget, and its associated tab.

Parameters:
widget - the widget to be removed

removeTabListener

public void removeTabListener(TabListener listener)

selectTab

public void selectTab(ITabElement tab)
Programmatically selects the specified tab.

Parameters:
index - the index of the tab to be selected

changeTitleTab

public void changeTitleTab(ITabElement tab)

changeIconTab

public void changeIconTab(ITabElement tab)