All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.gwt.user.client.ui.DecoratedTabBar Maven / Gradle / Ivy

There is a newer version: 2.10.0
Show newest version
/*
 * Copyright 2008 Google Inc.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 * 
 * http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */
package com.google.gwt.user.client.ui;

/**
 * 

* A {@link 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}
  • *
*/ public class DecoratedTabBar extends TabBar { static String[] TAB_ROW_STYLES = {"tabTop", "tabMiddle"}; static final String STYLENAME_DEFAULT = "gwt-DecoratedTabBar"; /** * Creates an empty {@link DecoratedTabBar}. */ public DecoratedTabBar() { super(); setStylePrimaryName(STYLENAME_DEFAULT); } @Override protected SimplePanel createTabTextWrapper() { return new DecoratorPanel(TAB_ROW_STYLES, 1); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy