RemoteTabController.js
资源名称:oa.rar [点击查看]
上传用户:kimgenplus
上传日期:2016-06-05
资源大小:20877k
文件大小:3k
源码类别:
OA系统
开发平台:
Java
- /*
- Copyright (c) 2004-2006, The Dojo Foundation
- All Rights Reserved.
- Licensed under the Academic Free License version 2.1 or above OR the
- modified BSD license. For more information on Dojo licensing, see:
- http://dojotoolkit.org/community/licensing.shtml
- */
- dojo.provide("dojo.widget.RemoteTabController");
- dojo.require("dojo.widget.*");
- dojo.require("dojo.widget.TabContainer");
- dojo.require("dojo.event.*");
- dojo.deprecated("dojo.widget.RemoteTabController is slated for removal in 0.5; use PageController or TabController instead.", "0.5");
- dojo.widget.defineWidget("dojo.widget.RemoteTabController", dojo.widget.TabController, {templateCssString:".dojoRemoteTabController {ntposition: relative;n}nn.dojoRemoteTab {ntposition : relative;ntfloat : left;ntpadding-left : 9px;ntborder-bottom : 1px solid #6290d2;ntbackground : url(images/tab_left.gif) no-repeat left top;ntcursor: pointer;ntwhite-space: nowrap;ntz-index: 3;n}nn.dojoRemoteTab div {ntdisplay : block;ntpadding : 4px 15px 4px 6px;ntbackground : url(images/tab_top_right.gif) no-repeat right top;ntcolor : #333;ntfont-size : 90%;n}nn.dojoRemoteTabPaneClose {ntposition : absolute;ntbottom : 0px;ntright : 6px;ntheight : 12px;ntwidth : 12px;ntbackground : url(images/tab_close.gif) no-repeat right top;n}nn.dojoRemoteTabPaneCloseHover {ntbackground-image : url(images/tab_close_h.gif);n}nn.dojoRemoteTabClose {ntdisplay : inline-block;ntheight : 12px;ntwidth : 12px;ntpadding : 0 12px 0 0;ntmargin : 0 -10px 0 10px;ntbackground : url(images/tab_close.gif) no-repeat right top;ntcursor : default;n}nn.dojoRemoteTabCloseHover {ntbackground-image : url(images/tab_close_h.gif);n}nn.dojoRemoteTab.current {ntpadding-bottom : 1px;ntborder-bottom : 0;ntbackground-position : 0 -150px;n}nn.dojoRemoteTab.current div {ntpadding-bottom : 5px;ntmargin-bottom : -1px;ntbackground-position : 100% -150px;n}n", templateCssPath:dojo.uri.moduleUri("dojo.widget", "templates/RemoteTabControl.css"), templateString:"<div dojoAttachPoint="domNode" wairole="tablist"></div>", "class":"dojoRemoteTabController", tabContainer:"", postMixInProperties:function () {
- this.containerId = this.tabContainer;
- dojo.widget.RemoteTabController.superclass.postMixInProperties.apply(this, arguments);
- }, fillInTemplate:function () {
- dojo.html.addClass(this.domNode, this["class"]);
- if (this.tabContainer) {
- dojo.addOnLoad(dojo.lang.hitch(this, "setupTabs"));
- }
- dojo.widget.RemoteTabController.superclass.fillInTemplate.apply(this, arguments);
- }});