From xap-commits-return-1316-apmail-incubator-xap-commits-archive=incubator.apache.org@incubator.apache.org Fri Apr 13 20:18:22 2007 Return-Path: Delivered-To: apmail-incubator-xap-commits-archive@locus.apache.org Received: (qmail 29581 invoked from network); 13 Apr 2007 20:18:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Apr 2007 20:18:21 -0000 Received: (qmail 49747 invoked by uid 500); 13 Apr 2007 20:18:27 -0000 Delivered-To: apmail-incubator-xap-commits-archive@incubator.apache.org Received: (qmail 49727 invoked by uid 500); 13 Apr 2007 20:18:27 -0000 Mailing-List: contact xap-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: xap-dev@incubator.apache.org Delivered-To: mailing list xap-commits@incubator.apache.org Received: (qmail 49718 invoked by uid 99); 13 Apr 2007 20:18:27 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Apr 2007 13:18:27 -0700 X-ASF-Spam-Status: No, hits=-99.5 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Apr 2007 13:18:21 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id AD7C51A9838; Fri, 13 Apr 2007 13:18:00 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r528643 - in /incubator/xap/trunk/codebase: css/gripper_splitter_horizontal2.gif css/gripper_splitter_vertical2.gif css/xapDefault.css src/xap/bridges/dojo/VerticalSplitPaneBridge.js Date: Fri, 13 Apr 2007 20:18:00 -0000 To: xap-commits@incubator.apache.org From: jmargaris@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20070413201800.AD7C51A9838@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: jmargaris Date: Fri Apr 13 13:17:59 2007 New Revision: 528643 URL: http://svn.apache.org/viewvc?view=rev&rev=528643 Log: some visual changes for splitter Added: incubator/xap/trunk/codebase/css/gripper_splitter_horizontal2.gif (with props) incubator/xap/trunk/codebase/css/gripper_splitter_vertical2.gif (with props) Modified: incubator/xap/trunk/codebase/css/xapDefault.css incubator/xap/trunk/codebase/src/xap/bridges/dojo/VerticalSplitPaneBridge.js Added: incubator/xap/trunk/codebase/css/gripper_splitter_horizontal2.gif URL: http://svn.apache.org/viewvc/incubator/xap/trunk/codebase/css/gripper_splitter_horizontal2.gif?view=auto&rev=528643 ============================================================================== Binary file - no diff available. Propchange: incubator/xap/trunk/codebase/css/gripper_splitter_horizontal2.gif ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/xap/trunk/codebase/css/gripper_splitter_vertical2.gif URL: http://svn.apache.org/viewvc/incubator/xap/trunk/codebase/css/gripper_splitter_vertical2.gif?view=auto&rev=528643 ============================================================================== Binary file - no diff available. Propchange: incubator/xap/trunk/codebase/css/gripper_splitter_vertical2.gif ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Modified: incubator/xap/trunk/codebase/css/xapDefault.css URL: http://svn.apache.org/viewvc/incubator/xap/trunk/codebase/css/xapDefault.css?view=diff&rev=528643&r1=528642&r2=528643 ============================================================================== --- incubator/xap/trunk/codebase/css/xapDefault.css (original) +++ incubator/xap/trunk/codebase/css/xapDefault.css Fri Apr 13 13:17:59 2007 @@ -341,3 +341,19 @@ background-color: gray; cursor: default; } + + +/* Split-pane styling: */ +.xapVerticalSplitPaneSizer{ + background-image: url(gripper_splitter_vertical2.gif) ; + background-repeat: no-repeat ; + background-position: center center ; +} + +.xapHorizontalSplitPaneSizer{ + background-image: url(gripper_splitter_horizontal2.gif) ; + background-repeat: no-repeat ; + background-position: center center ; +} + + Modified: incubator/xap/trunk/codebase/src/xap/bridges/dojo/VerticalSplitPaneBridge.js URL: http://svn.apache.org/viewvc/incubator/xap/trunk/codebase/src/xap/bridges/dojo/VerticalSplitPaneBridge.js?view=diff&rev=528643&r1=528642&r2=528643 ============================================================================== --- incubator/xap/trunk/codebase/src/xap/bridges/dojo/VerticalSplitPaneBridge.js (original) +++ incubator/xap/trunk/codebase/src/xap/bridges/dojo/VerticalSplitPaneBridge.js Fri Apr 13 13:17:59 2007 @@ -58,10 +58,36 @@ xap.bridges.dojo.VerticalSplitPaneBridge.prototype.mapAllowedInitialPropertiesFromXalToDojo = function(propertyMap,attrHolder){ //fill in some good defaults propertyMap.orientation = "vertical"; - propertyMap.sizerWidth = 8; + propertyMap.sizerWidth = 7; xap.bridges.dojo.DojoWidgetBridge.prototype.mapAllowedInitialPropertiesFromXalToDojo.call(this, propertyMap, attrHolder); } + +/** + * The map that [add|remove]Class will use to + * find html dom nodes to style: +**/ +xap.bridges.dojo.VerticalSplitPaneBridge.prototype.getStylingNodesMap = function(){ + if( ! this._stylingNodeMap ){ + var peer = this.getPeer() ; + var sizerNode = peer.sizers && (peer.sizers.length>0) &&peer.sizers[0] ; + if(sizerNode){ + // We'd rather memoise the map of all the nodes we're going + // to want to style, but if they're not all there yet, do what we can. + // Note esp. that the splitter won't show up until after + // the peer has finished adding both its children. + this._stylingNodeMap = {"": this.getRootDomNode(), + "Sizer": sizerNode + } ; + } else { + return {"":this.getRootDomNode() } ; + } + } + return this._stylingNodeMap ; +} + + + /** * * @@ -115,6 +141,10 @@ xap.bridges.dojo.VerticalSplitPaneBridge.superclass.init.call(this,e) ; this._initted = true ; this.getPeer().persist = false ; + // Do this here because the splitter might not have + // been around earlier when the superclass method + // usually doing this was called: + this.setClassAttribute( this.getCssStyleName() ) ; this.adjustSplitter() ; }