public class

DecoratedTabBar

extends TabBar
java.lang.Object
   ↳ com.google.gwt.user.client.ui.UIObject
     ↳ com.google.gwt.user.client.ui.Widget
       ↳ com.google.gwt.user.client.ui.Composite
         ↳ com.google.gwt.user.client.ui.TabBar
           ↳ com.google.gwt.user.client.ui.DecoratedTabBar

Class Overview

A TabBar that wraps each tab in a 2x3 grid (six box), which allows users to add rounded corners.

CSS Style Rules

  • .gwt-DecoratedTabBar { the tab bar itself }
  • .gwt-DecoratedTabBar .gwt-TabBarFirst { the left edge of the bar }
  • .gwt-DecoratedTabBar .gwt-TabBarRest { the right edge of the bar }
  • .gwt-DecoratedTabBar .gwt-TabBarItem { unselected tabs }
  • .gwt-DecoratedTabBar .gwt-TabBarItem-wrapper { table cell around tab }
  • .gwt-DecoratedTabBar .gwt-TabBarItem-selected { additional style for selected tabs }
  • .gwt-DecoratedTabBar .gwt-TabBarItem-wrapper-selected { table cell around selected tab }
  • .gwt-DecoratedTabBar .tabTopLeft { top left corner of the tab}
  • .gwt-DecoratedTabBar .tabTopLeftInner { the inner element of the cell}
  • .gwt-DecoratedTabBar .tabTopCenter { top center of the tab}
  • .gwt-DecoratedTabBar .tabTopCenterInner { the inner element of the cell}
  • .gwt-DecoratedTabBar .tabTopRight { top right corner of the tab}
  • .gwt-DecoratedTabBar .tabTopRightInner { the inner element of the cell}
  • .gwt-DecoratedTabBar .tabMiddleLeft { left side of the tab }
  • .gwt-DecoratedTabBar .tabMiddleLeftInner { the inner element of the cell}
  • .gwt-DecoratedTabBar .tabMiddleCenter { center of the tab, where the tab text or widget resides }
  • .gwt-DecoratedTabBar .tabMiddleCenterInner { the inner element of the cell}
  • .gwt-DecoratedTabBar .tabMiddleRight { right side of the tab }
  • .gwt-DecoratedTabBar .tabMiddleRightInner { the inner element of the cell}

Summary

[Expand]
Inherited Constants
From class com.google.gwt.user.client.ui.UIObject
From interface com.google.gwt.user.client.ui.KeyboardListener
Public Constructors
DecoratedTabBar()
Creates an empty DecoratedTabBar.
Protected Methods
SimplePanel createTabTextWrapper()
Create a SimplePanel that will wrap the contents in a tab.
[Expand]
Inherited Methods
From class com.google.gwt.user.client.ui.TabBar
From class com.google.gwt.user.client.ui.Composite
From class com.google.gwt.user.client.ui.Widget
From class com.google.gwt.user.client.ui.UIObject
From class java.lang.Object
From interface com.google.gwt.event.logical.shared.HasAttachHandlers
From interface com.google.gwt.event.logical.shared.HasBeforeSelectionHandlers
From interface com.google.gwt.event.logical.shared.HasSelectionHandlers
From interface com.google.gwt.event.shared.HasHandlers
From interface com.google.gwt.user.client.EventListener
From interface com.google.gwt.user.client.ui.ClickListener
From interface com.google.gwt.user.client.ui.IsWidget
From interface com.google.gwt.user.client.ui.KeyboardListener
From interface com.google.gwt.user.client.ui.SourcesTabEvents

Public Constructors

public DecoratedTabBar ()

Creates an empty DecoratedTabBar.

Protected Methods

protected SimplePanel createTabTextWrapper ()

Create a SimplePanel that will wrap the contents in a tab. Subclasses can use this method to wrap tabs in decorator panels.

Returns
  • a SimplePanel to wrap the tab contents, or null to leave tabs unwrapped