/* * 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. */ /** * @fileoverview Tabs library for gadgets. */ /** * @class Tab class for gadgets. * You create tabs using the TabSet addTab() method. * To get Tab objects, * use the TabSet getSelectedTab() or getTabs() methods. * *
* See also: * TabSet *
* * @name gadgets.Tab * @description NOTE: CONSTRUCTOR SHOULD NOT BE DOCUMENTED */ /** * @private * @constructor */ gadgets.Tab = function() {}; /** * Returns the label of the tab as a string (may contain HTML). * @return {String} The label of the tab */ gadgets.Tab.prototype.getName = function() {}; /** * Returns the HTML element that contains the tab's label. * @return {HTMLElement} The HTML element of the tab's label */ gadgets.Tab.prototype.getNameContainer = function() {}; /** * Returns the HTML element where the tab content is rendered. * @return {HTMLElement} The HTML element of the content container */ gadgets.Tab.prototype.getContentContainer = function() {}; /** * Returns the callback function that is executed when the tab is selected. * @return {Function} The callback function of the tab */ gadgets.Tab.prototype.getCallback = function() {}; /** * Returns the tab's index. * @return {Number} The tab's index */ gadgets.Tab.prototype.getIndex = function() {}; /** * @class A class gadgets can use to make tabs. * @description Creates a new TabSet object * * @param {String} opt_moduleId Optional suffix for the ID of tab container * @param {String} opt_defaultTab Optional tab name that specifies the name of * of the tab that is selected after initialization; * if this parameter is omitted, the first tab is selected by * default * @param {HTMLElement} opt_container The HTML element to contain the tabs; if * omitted, a new div element is created and inserted at the * very top */ gadgets.TabSet = function(opt_moduleId, opt_defaultTab, opt_container) {}; /** * Adds a new tab based on the name-value pairs specified in opt_params. * The following properties are supported in opt_params: *