⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 splitbar.js

📁 javascript 很酷的类库
💻 JS
📖 第 1 页 / 共 2 页
字号:
            this.canDrag = false;        }        // HACK: fixes problem where the bar can remain stuck in "over" state until the next        // mouse move, because the bar is moved out from under the mouse by the relayout that        // follows hiding our target.        this.setState("");    }};// Splitbar (Doc'd at the top of the file)isc.defineClass("Splitbar","StretchImg").addProperties({	skinImgDir:"images/Splitbar/",    imageType:"stretch",	capSize:3,    vSrc:"[SKIN]vsplit.gif",    hSrc:"[SKIN]hsplit.gif"});isc.Splitbar.addMethods(isc._SplitbarProperties, isc._SplitbarMethods);//> @class ImgSplitbar//  Subclass of the +link{class:Img} class. As with the +link{class:Splitbar} class, //  widgets of this class can be displayed as a resize-bar for widgets //  in Layouts where showResizeBar is set to true. Provides a different appearance from//  the <code>Splitbar</code> class.<br>//  To specify the resizeBar class for some layout, use the +link{layout.resizeBarClass}//  property.// @see class:Layout// @see class:Splitbar// @treeLocation Client Reference/Layout//  @visibility external//<isc.defineClass("ImgSplitbar","Img").addProperties({    //> @attr   ImgSplitbar.target     (Canvas : null : R)    // @include Splitbar.target    // @visibility external    //<      //> @attr   ImgSplitbar.vertical    (boolean : null : R)    // @include Splitbar.vertical    // @visibility external    //<        //> @attr   ImgSplitbar.canDrag    (boolean : true : IRW)    // @include Splitbar.canDrag    // @visibility external    //<        //> @attr   ImgSplitbar.canCollapse    (boolean : true : IRW)    // @include Splitbar.canCollapse    // @visibility external    //<        //> @attr   ImgSplitbar.skinImgDir    (SCImgURL : "images/SplitBar/" : IR)    // @include Canvas.skinImgDir    // @visibility external    //<    skinImgDir:"images/Splitbar/",    imageType:"center",        //> @attr   ImgSplitbar.src    (string : null : IR)    // @include Img.src    // @visibility external    //<        //> @attr   ImgSplitbar.hSrc   (string : [SKIN]hgrip.png : IR)    // Default src to display when +link{ImgSplitbar.vertical} is false,     // and +link{ImgSplitbar.src} is unset.    // @see ImgSplitbar.src    // @visibility external    //<    hSrc:"[SKIN]hgrip.png",        //> @attr   ImgSplitbar.vSrc   (boolean : [SKIN]vgrip.png : IR)    // Default src to display when +link{ImgSplitbar.vertical} is true,     // and +link{ImgSplitbar.src} is unset.    // @see ImgSplitbar.src    // @visibility external    //<    vSrc:"[SKIN]vgrip.png",        className:"splitbar",    showDown:true   // to hilite the entire bar via CSS, instead of dragging just the grip image});isc.ImgSplitbar.addMethods(isc._SplitbarProperties, isc._SplitbarMethods);// StretchImgSplitbarisc.addGlobal("StretchImgSplitbar", isc.Splitbar);// LayoutResizeBar - for backcompat only.// Note that "LayoutResizeBar" was used as the default 'resizeBarClassName' for the Layout class// for builds up to and including 5.5.1 isc.addGlobal("LayoutResizeBar", isc.Splitbar);// VSplitbar / HSplitbar// --------------------------------------------------------------------------------------------isc.defineClass("HSplitbar","Splitbar").addProperties({    vertical:false});isc.defineClass("VSplitbar","Splitbar");// Stretchbar// --------------------------------------------------------------------------------------------// This is a splitbar that only shows up on rolloverisc.defineClass("Stretchbar", "Splitbar").addProperties({    canResize:false,	skinImgDir:"images/Stretchbar/",    showRollOver:true});// HStretchbar / VStretchbar// --------------------------------------------------------------------------------------------isc.defineClass("HStretchbar", "Stretchbar").addProperties({    vertical:false,	src:"[SKIN]hsplit.gif",	defaultHeight:10});isc.defineClass("VStretchbar", "Stretchbar").addProperties({	src:"[SKIN]vsplit.gif",	defaultWidth:10});//> @class Snapbar// Subclass of the +link{class:Splitbar} class that uses the <code>grip</code> functionality// to show a stateful open / close indicator.// @see class:Splitbar// @see class:Layout// @treeLocation Client Reference/Layout//  @visibility external//<isc.defineClass("Snapbar", "Splitbar");isc.Snapbar.addProperties({    //> @attr   Snapbar.showRollOver    (boolean : true : IRW)    // Snapbars show rollover styling.    // @visibility external    //<    showRollOver:true,    //> @attr   Snapbar.showDown (boolean : true : IRW)    // Snapbars show mouse-down styling.    // @visibility external    //<        showDown:true,        //> @attr   Snapbar.showGrip    (boolean : true : IRW)    // @include Splitbar.showGrip    // @visibility external    //<    showGrip:true,        //> @attr   Snapbar.showDownGrip    (boolean : true : IRW)    // @include Splitbar.showDownGrip    // @visibility external    //<    showDownGrip:true,    //> @attr   Snapbar.showRollOverGrip   (boolean : true : IRA)    // @include Splitbar.showRollOverGrip    // @visibility external    //<    showRollOverGrip:true,        //> @attr   Snapbar.showClosedGrip   (boolean : true : IRA)    // @include splitbar.showClosedGrip    // @visibility external    // @group grip    //<    showClosedGrip:true,        //> @attr   Snapbar.gripImgSuffix (string : "snap" : IRA)    // Overridden from +link{Splitbar.gripImgSuffix} to simplify providing custom grip media    // for this widget.    // @visibility external    //<    gripImgSuffix:"snap"    });//> @class ToolStripResizer// Simple subclass of ImgSplitbar with appearance appropriate for a ToolStrip resizer.//// @treeLocation Client Reference/Layout/ToolStrip// @visibility external//<isc.defineClass("ToolStripResizer", "ImgSplitbar").addProperties({    //> @attr toolStripResizer.skinImgDir (SCImgURL : "images/ToolStrip/" : IR)    // Path to resizer image.    // @visibility external    //<    skinImgDir:"images/ToolStrip/",    //> @attr toolStripResizer.vSrc (SCImgURL : "[SKIN]resizer.png" : IRW)    // Image for resizer    // @visibility external    //<     vSrc:"[SKIN]resizer.png",    //> @attr toolStripResizer.hSrc (SCImgURL : "[SKIN]hresizer.png" : IRW)    // Image for horizontal resizer for a vertical Toolstrip    // @visibility external    //<     hSrc:"[SKIN]hresizer.png",    // prevents misalignment if ToolStrip is stretched vertically by members    layoutAlign:"center",    resizeInRealTime:true,    showDown:false,    // center the image and set imageHeight/imageWidth to avoid issues with natural sizing of    // image with IE .pngs.  Alternatively, we could stretch (commented out), which is    // imperfect (due to arrows in default image), but looks reasonable within the likely    // possible heights of a ToolStrip (~ 18 - 24)    imageLength:20, imageBreadth:14, imageType:"center",    //imageType:"stretch",    initWidget : function () {        this.imageWidth = this.vertical ? this.imageBreadth : this.imageLength;        this.imageHeight = this.vertical ? this.imageLength : this.imageBreadth;        this.Super("initWidget", arguments);    }});

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -