incubator-xap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmarga...@apache.org
Subject svn commit: r482996 - in /incubator/xap/trunk: WebContent/examples/widgets/ src/xap/bridges/dojo/ src/xap/taghandling/
Date Wed, 06 Dec 2006 09:55:19 GMT
Author: jmargaris
Date: Wed Dec  6 01:55:18 2006
New Revision: 482996

URL: http://svn.apache.org/viewvc?view=rev&rev=482996
Log:
splitPane broken up into vertical/horizontal

Added:
    incubator/xap/trunk/WebContent/examples/widgets/horizontalSplitPane.html
      - copied, changed from r482807, incubator/xap/trunk/WebContent/examples/widgets/splitPane.html
    incubator/xap/trunk/WebContent/examples/widgets/horizontalSplitPane.xal
      - copied, changed from r482807, incubator/xap/trunk/WebContent/examples/widgets/splitPane.xal
    incubator/xap/trunk/WebContent/examples/widgets/verticalSplitPane.html   (with props)
    incubator/xap/trunk/WebContent/examples/widgets/verticalSplitPane.xal
    incubator/xap/trunk/src/xap/bridges/dojo/HorizontalSplitPaneBridge.js   (with props)
    incubator/xap/trunk/src/xap/bridges/dojo/VerticalSplitPaneBridge.js   (with props)
Removed:
    incubator/xap/trunk/WebContent/examples/widgets/splitPane.html
    incubator/xap/trunk/WebContent/examples/widgets/splitPane.xal
    incubator/xap/trunk/src/xap/bridges/dojo/SplitPaneBridge.js
Modified:
    incubator/xap/trunk/WebContent/examples/widgets/complexExample.xal
    incubator/xap/trunk/WebContent/examples/widgets/index.html
    incubator/xap/trunk/WebContent/examples/widgets/splitPaneExample.xal
    incubator/xap/trunk/src/xap/taghandling/plugin.xml

Modified: incubator/xap/trunk/WebContent/examples/widgets/complexExample.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/complexExample.xal?view=diff&rev=482996&r1=482995&r2=482996
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/complexExample.xal (original)
+++ incubator/xap/trunk/WebContent/examples/widgets/complexExample.xal Wed Dec  6 01:55:18
2006
@@ -15,13 +15,13 @@
 		<xal:borderPane width="100%" height="100%">
 			<xal:freePane width="100%" height="100px" backgroundColor="red" borderPosition="north"/>
 
-			<xal:splitPane>
+			<xal:horizontalSplitPane>
 				<xal:freePane backgroundColor="yellow"/>
 				<xal:tabPane>
 					<xal:tab text="Package Explorer"/>
 					<xal:tab text="JUnit"/>
 				</xal:tabPane>
-			</xal:splitPane>
+			</xal:horizontalSplitPane>
 			<xal:freePane width="100%" height="100px" backgroundColor="green" borderPosition="south"/>
 
 		</xal:borderPane >

Copied: incubator/xap/trunk/WebContent/examples/widgets/horizontalSplitPane.html (from r482807,
incubator/xap/trunk/WebContent/examples/widgets/splitPane.html)
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/horizontalSplitPane.html?view=diff&rev=482996&p1=incubator/xap/trunk/WebContent/examples/widgets/splitPane.html&r1=482807&p2=incubator/xap/trunk/WebContent/examples/widgets/horizontalSplitPane.html&r2=482996
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/splitPane.html (original)
+++ incubator/xap/trunk/WebContent/examples/widgets/horizontalSplitPane.html Wed Dec  6 01:55:18
2006
@@ -22,7 +22,7 @@
 	</head>
 	  
 	<body onload="Xap.createEmbeddedApplications();">
-		<div startPage="splitPane.xal"></div>
+		<div startPage="horizontalSplitPane.xal"></div>
 	</body>
 </html>
 

Copied: incubator/xap/trunk/WebContent/examples/widgets/horizontalSplitPane.xal (from r482807,
incubator/xap/trunk/WebContent/examples/widgets/splitPane.xal)
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/horizontalSplitPane.xal?view=diff&rev=482996&p1=incubator/xap/trunk/WebContent/examples/widgets/splitPane.xal&r1=482807&p2=incubator/xap/trunk/WebContent/examples/widgets/horizontalSplitPane.xal&r2=482996
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/splitPane.xal (original)
+++ incubator/xap/trunk/WebContent/examples/widgets/horizontalSplitPane.xal Wed Dec  6 01:55:18
2006
@@ -22,30 +22,30 @@
 					<include href="standardButtons.xal" xmlns="http://openxal.org/core/xinclude"/>
 				</verticalBoxPane>
 				<verticalBoxPane>
-					<xal:splitPane width="200px" height="100px" id="testComponent" onActiveGained="mco:attributeSetter.reportEvent(event)"
onActiveLost="mco:attributeSetter.reportEvent(event)" onBeforeActiveLost="mco:attributeSetter.reportEvent(event)"
onContextMenu="mco:attributeSetter.reportEvent(event)" onDoubleClick="mco:attributeSetter.reportEvent(event)"
onDragDrop="mco:attributeSetter.reportEvent(event)" onDragEnd="mco:attributeSetter.reportEvent(event)"
onMouseDown="mco:attributeSetter.reportEvent(event)" onDragStart="mco:attributeSetter.reportEvent(event)"
onMouseDrag="mco:attributeSetter.reportEvent(event)" onMouseMove="mco:attributeSetter.reportEvent(event)"
onMouseOut="mco:attributeSetter.reportEvent(event)" onMouseOver="mco:attributeSetter.reportEvent(event)"
onMouseUp="mco:attributeSetter.reportEvent(event)">
+					<xal:horizontalSplitPane width="200px" height="100px" id="testComponent" onActiveGained="mco:attributeSetter.reportEvent(event)"
onActiveLost="mco:attributeSetter.reportEvent(event)" onBeforeActiveLost="mco:attributeSetter.reportEvent(event)"
onContextMenu="mco:attributeSetter.reportEvent(event)" onDoubleClick="mco:attributeSetter.reportEvent(event)"
onDragDrop="mco:attributeSetter.reportEvent(event)" onDragEnd="mco:attributeSetter.reportEvent(event)"
onMouseDown="mco:attributeSetter.reportEvent(event)" onDragStart="mco:attributeSetter.reportEvent(event)"
onMouseDrag="mco:attributeSetter.reportEvent(event)" onMouseMove="mco:attributeSetter.reportEvent(event)"
onMouseOut="mco:attributeSetter.reportEvent(event)" onMouseOver="mco:attributeSetter.reportEvent(event)"
onMouseUp="mco:attributeSetter.reportEvent(event)">
 						<xal:top height="50px" backgroundColor="red" onActiveGained="mco:attributeSetter.reportEvent(event)"
onActiveLost="mco:attributeSetter.reportEvent(event)" onBeforeActiveLost="mco:attributeSetter.reportEvent(event)"
onContextMenu="mco:attributeSetter.reportEvent(event)" onDoubleClick="mco:attributeSetter.reportEvent(event)"
onDragDrop="mco:attributeSetter.reportEvent(event)" onDragEnd="mco:attributeSetter.reportEvent(event)"
onDragStart="mco:attributeSetter.reportEvent(event)" onMouseDown="mco:attributeSetter.reportEvent(event)"
onMouseDrag="mco:attributeSetter.reportEvent(event)" onMouseMove="mco:attributeSetter.reportEvent(event)"
onMouseOut="mco:attributeSetter.reportEvent(event)" onMouseOver="mco:attributeSetter.reportEvent(event)"
onMouseUp="mco:attributeSetter.reportEvent(event)">
 							<label text="foo" x="0" y="0"/>
 						</xal:top>
 						<xal:bottom height="50px" backgroundColor="blue" onActiveGained="mco:attributeSetter.reportEvent(event)"
onActiveLost="mco:attributeSetter.reportEvent(event)" onBeforeActiveLost="mco:attributeSetter.reportEvent(event)"
onContextMenu="mco:attributeSetter.reportEvent(event)" onDoubleClick="mco:attributeSetter.reportEvent(event)"
onDragDrop="mco:attributeSetter.reportEvent(event)" onDragEnd="mco:attributeSetter.reportEvent(event)"
onDragStart="mco:attributeSetter.reportEvent(event)" onMouseDown="mco:attributeSetter.reportEvent(event)"
onMouseDrag="mco:attributeSetter.reportEvent(event)" onMouseMove="mco:attributeSetter.reportEvent(event)"
onMouseOut="mco:attributeSetter.reportEvent(event)" onMouseOver="mco:attributeSetter.reportEvent(event)"
onMouseUp="mco:attributeSetter.reportEvent(event)">
 							<label text="bar" x="0" y="0"/>
 						</xal:bottom>
-					</xal:splitPane>
-					<xal:splitPane width="200px" height="100px">
+					</xal:horizontalSplitPane>
+					<xal:horizontalSplitPane width="200px" height="100px">
 						<xal:top height="100px">
 							<label text="top" width="100px"/>
 						</xal:top>
 						<xal:bottom height="100px">
 							<label text="bottom" width="100px"/>
 						</xal:bottom>				
-					</xal:splitPane>
-					<xal:splitPane width="200px" height="100px">
+					</xal:horizontalSplitPane>
+					<xal:horizontalSplitPane width="200px" height="100px">
 						<xal:left width="100px">
 							<label text="left" width="100px"/>
 						</xal:left>
 						<xal:right width="100px">
 							<label text="right" width="100px"/>
 						</xal:right>				
-					</xal:splitPane>
+					</xal:horizontalSplitPane>
 				</verticalBoxPane>
 			</horizontalBoxPane>
 		</xm:append> 	  		

Modified: incubator/xap/trunk/WebContent/examples/widgets/index.html
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/index.html?view=diff&rev=482996&r1=482995&r2=482996
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/index.html (original)
+++ incubator/xap/trunk/WebContent/examples/widgets/index.html Wed Dec  6 01:55:18 2006
@@ -13,7 +13,8 @@
 <li><a href="textArea.html">&lt;textArea&gt;</a></li>
 <li><a href="passwordField.html">&lt;passwordField&gt;</a></li>
 <li><a href="tabPane.html">&lt;tabPane&gt;</a></li>
-<li><a href="splitPane.html">&lt;splitPane&gt;</a></li>
+<li><a href="horizontalSplitPane.html">&lt;horizontalSplitPane&gt;</a></li>
+<li><a href="verticalSplitPane.html">&lt;verticalSplitPane&gt;</a></li>
 <li><a href="freePane.html">&lt;freePane&gt;</a></li>
 <li><a href="verticalBoxPane.html">&lt;verticalBoxPane&gt;</a></li>
 <li><a href="horizontalBoxPane.html">&lt;horizontalBoxPane&gt;</a></li>

Modified: incubator/xap/trunk/WebContent/examples/widgets/splitPaneExample.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/splitPaneExample.xal?view=diff&rev=482996&r1=482995&r2=482996
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/splitPaneExample.xal (original)
+++ incubator/xap/trunk/WebContent/examples/widgets/splitPaneExample.xal Wed Dec  6 01:55:18
2006
@@ -9,21 +9,21 @@
 	
 	<xm:modifications xmlns:xm="http://openxal.org/core/xmodify">
 		<xm:append select="/ui">
-			<xal:splitPane width="100%" height="400px" orientation="horizontal">
+			<xal:horizontalSplitPane width="100%" height="400px" orientation="horizontal">
 				<xal:left width="100px">
 					<xal:button text="Left"/>
 				</xal:left>
 				<xal:right width="100px">
-					<xal:splitPane width="100%" height="100%" orientation="vertical">
+					<xal:verticalSplitPane width="100%" height="100%" orientation="vertical">
 						<xal:top height="100px">
 							<xal:button text="Top"/>
 						</xal:top>
 						<xal:bottom height="100px">
 							<xal:button text="Bottom"/>
 						</xal:bottom>				
-					</xal:splitPane>	
+					</xal:verticalSplitPane>	
 				</xal:right>				
-			</xal:splitPane>
+			</xal:horizontalSplitPane>
 		</xm:append> 	  		
   	</xm:modifications>
 </xal>

Added: incubator/xap/trunk/WebContent/examples/widgets/verticalSplitPane.html
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/verticalSplitPane.html?view=auto&rev=482996
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/verticalSplitPane.html (added)
+++ incubator/xap/trunk/WebContent/examples/widgets/verticalSplitPane.html Wed Dec  6 01:55:18
2006
@@ -0,0 +1,28 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
+		"http://www.w3.org/TR/html4/loose.dtd">
+<html>
+	<head>
+	    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+	    <title>Simple XAP Widget Example</title>
+	
+		<style type="text/css">
+	      <!--
+	          @import url(../../css/xapDefault.css);
+	      -->
+	    </style>
+	    
+		<!-- Keep dojo from trying to scan this whole page for dojoType'd tags: -->
+		<script type="text/javascript">
+			djConfig = {
+				parseWidgets: false
+			};
+		</script>    
+		
+		<script language="JavaScript" type="text/javascript" src="../../xapcore.js"></script>
+	</head>
+	  
+	<body onload="Xap.createEmbeddedApplications();">
+		<div startPage="verticalSplitPane.xal"></div>
+	</body>
+</html>
+

Propchange: incubator/xap/trunk/WebContent/examples/widgets/verticalSplitPane.html
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/xap/trunk/WebContent/examples/widgets/verticalSplitPane.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/verticalSplitPane.xal?view=auto&rev=482996
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/verticalSplitPane.xal (added)
+++ incubator/xap/trunk/WebContent/examples/widgets/verticalSplitPane.xal Wed Dec  6 01:55:18
2006
@@ -0,0 +1,53 @@
+<xal xmlns="http://openxal.org/ui" xmlns:xal="http://openxal.org/ui"> 
+	
+	
+	<mco
+		xmlns="http://openxal.org/core/mco" 
+		id="attributeSetter" 
+		class="AttributeTester"
+		src="AttributeTester.js"
+	/>	
+	
+	
+	
+	<xm:modifications xmlns:xm="http://openxal.org/core/xmodify">
+		<xm:append select="/ui">
+			<horizontalBoxPane>
+				
+				
+				
+				<!--standard test things -->
+				
+				<verticalBoxPane>
+					<include href="standardButtons.xal" xmlns="http://openxal.org/core/xinclude"/>
+				</verticalBoxPane>
+				<verticalBoxPane>
+					<xal:verticalSplitPane width="200px" height="100px" id="testComponent" onActiveGained="mco:attributeSetter.reportEvent(event)"
onActiveLost="mco:attributeSetter.reportEvent(event)" onBeforeActiveLost="mco:attributeSetter.reportEvent(event)"
onContextMenu="mco:attributeSetter.reportEvent(event)" onDoubleClick="mco:attributeSetter.reportEvent(event)"
onDragDrop="mco:attributeSetter.reportEvent(event)" onDragEnd="mco:attributeSetter.reportEvent(event)"
onMouseDown="mco:attributeSetter.reportEvent(event)" onDragStart="mco:attributeSetter.reportEvent(event)"
onMouseDrag="mco:attributeSetter.reportEvent(event)" onMouseMove="mco:attributeSetter.reportEvent(event)"
onMouseOut="mco:attributeSetter.reportEvent(event)" onMouseOver="mco:attributeSetter.reportEvent(event)"
onMouseUp="mco:attributeSetter.reportEvent(event)">
+						<xal:top height="50px" backgroundColor="red" onActiveGained="mco:attributeSetter.reportEvent(event)"
onActiveLost="mco:attributeSetter.reportEvent(event)" onBeforeActiveLost="mco:attributeSetter.reportEvent(event)"
onContextMenu="mco:attributeSetter.reportEvent(event)" onDoubleClick="mco:attributeSetter.reportEvent(event)"
onDragDrop="mco:attributeSetter.reportEvent(event)" onDragEnd="mco:attributeSetter.reportEvent(event)"
onDragStart="mco:attributeSetter.reportEvent(event)" onMouseDown="mco:attributeSetter.reportEvent(event)"
onMouseDrag="mco:attributeSetter.reportEvent(event)" onMouseMove="mco:attributeSetter.reportEvent(event)"
onMouseOut="mco:attributeSetter.reportEvent(event)" onMouseOver="mco:attributeSetter.reportEvent(event)"
onMouseUp="mco:attributeSetter.reportEvent(event)">
+							<label text="foo" x="0" y="0"/>
+						</xal:top>
+						<xal:bottom height="50px" backgroundColor="blue" onActiveGained="mco:attributeSetter.reportEvent(event)"
onActiveLost="mco:attributeSetter.reportEvent(event)" onBeforeActiveLost="mco:attributeSetter.reportEvent(event)"
onContextMenu="mco:attributeSetter.reportEvent(event)" onDoubleClick="mco:attributeSetter.reportEvent(event)"
onDragDrop="mco:attributeSetter.reportEvent(event)" onDragEnd="mco:attributeSetter.reportEvent(event)"
onDragStart="mco:attributeSetter.reportEvent(event)" onMouseDown="mco:attributeSetter.reportEvent(event)"
onMouseDrag="mco:attributeSetter.reportEvent(event)" onMouseMove="mco:attributeSetter.reportEvent(event)"
onMouseOut="mco:attributeSetter.reportEvent(event)" onMouseOver="mco:attributeSetter.reportEvent(event)"
onMouseUp="mco:attributeSetter.reportEvent(event)">
+							<label text="bar" x="0" y="0"/>
+						</xal:bottom>
+					</xal:verticalSplitPane>
+					<xal:verticalSplitPane width="200px" height="100px">
+						<xal:top height="100px">
+							<label text="top" width="100px"/>
+						</xal:top>
+						<xal:bottom height="100px">
+							<label text="bottom" width="100px"/>
+						</xal:bottom>				
+					</xal:verticalSplitPane>
+					<xal:verticalSplitPane width="200px" height="100px">
+						<xal:left width="100px">
+							<label text="left" width="100px"/>
+						</xal:left>
+						<xal:right width="100px">
+							<label text="right" width="100px"/>
+						</xal:right>				
+					</xal:verticalSplitPane>
+				</verticalBoxPane>
+			</horizontalBoxPane>
+		</xm:append> 	  		
+	</xm:modifications>
+</xal>
\ No newline at end of file

Added: incubator/xap/trunk/src/xap/bridges/dojo/HorizontalSplitPaneBridge.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/bridges/dojo/HorizontalSplitPaneBridge.js?view=auto&rev=482996
==============================================================================
--- incubator/xap/trunk/src/xap/bridges/dojo/HorizontalSplitPaneBridge.js (added)
+++ incubator/xap/trunk/src/xap/bridges/dojo/HorizontalSplitPaneBridge.js Wed Dec  6 01:55:18
2006
@@ -0,0 +1,50 @@
+/*
+ * Copyright  2006 The Apache Software Foundation.
+ *
+ *  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
+ * 
+ * A bridge class that controls a dojo SplitPane peer.
+ */
+
+Xap.provide("xap.bridges.dojo.HorizontalSplitPaneBridge"); 
+
+Xap.require("xap.bridges.dojo.VerticalSplitPaneBridge"); 
+ 
+ /**
+ * @fileoverview
+ * 
+ * A bridge class with dojo toolkit button peer.
+ */
+ 
+xap.bridges.dojo.HorizontalSplitPaneBridge= function() {
+	xap.bridges.dojo.VerticalSplitPaneBridge.call(this);
+}
+
+
+Xap.setupClassAsSubclassOf(
+				"xap.bridges.dojo.HorizontalSplitPaneBridge",
+				"xap.bridges.dojo.VerticalSplitPaneBridge"						
+);
+
+
+xap.bridges.dojo.HorizontalSplitPaneBridge.prototype.mapAllowedInitialPropertiesFromXalToDojo
= function(propertyMap,attrHolder){
+	//fill in some good defaults
+	xap.bridges.dojo.VerticalSplitPaneBridge.prototype.mapAllowedInitialPropertiesFromXalToDojo.call(this,
propertyMap, attrHolder);
+	propertyMap.orientation = "horizontal";
+}
+

Propchange: incubator/xap/trunk/src/xap/bridges/dojo/HorizontalSplitPaneBridge.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/xap/trunk/src/xap/bridges/dojo/VerticalSplitPaneBridge.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/bridges/dojo/VerticalSplitPaneBridge.js?view=auto&rev=482996
==============================================================================
--- incubator/xap/trunk/src/xap/bridges/dojo/VerticalSplitPaneBridge.js (added)
+++ incubator/xap/trunk/src/xap/bridges/dojo/VerticalSplitPaneBridge.js Wed Dec  6 01:55:18
2006
@@ -0,0 +1,93 @@
+/*
+ * Copyright  2006 The Apache Software Foundation.
+ *
+ *  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
+ * 
+ * A bridge class that controls a dojo SplitPane peer.
+ */
+
+Xap.provide("xap.bridges.dojo.VerticalSplitPaneBridge"); 
+
+Xap.require("xap.bridges.dojo.DojoWidgetBridge");
+Xap.require("dojo.widget.SplitContainer"); 
+Xap.require('xap.bridges.dojo.SplitChildBridge');
+Xap.require('xap.bridges.dojo.SecondSplitChildBridge');
+
+ 
+ /**
+ * @fileoverview
+ * 
+ * A bridge class with dojo toolkit button peer.
+ */
+ 
+xap.bridges.dojo.VerticalSplitPaneBridge= function() {
+	xap.bridges.dojo.DojoWidgetBridge.call(this);
+}
+
+
+Xap.setupClassAsSubclassOf(
+				"xap.bridges.dojo.VerticalSplitPaneBridge",
+				"xap.bridges.dojo.DojoWidgetBridge"						
+);
+
+
+
+xap.bridges.dojo.VerticalSplitPaneBridge.prototype.getPeerString = function(){
+    return "SplitContainer" ;
+}
+
+
+xap.bridges.dojo.VerticalSplitPaneBridge.prototype.mapAllowedInitialPropertiesFromXalToDojo
= function(propertyMap,attrHolder){
+	//fill in some good defaults
+	propertyMap.orientation = "vertical";
+	xap.bridges.dojo.DojoWidgetBridge.prototype.mapAllowedInitialPropertiesFromXalToDojo.call(this,
propertyMap, attrHolder);
+}
+
+/**
+ * 
+ * 
+ * Attribute definitions
+ * 
+ */ 
+ 
+ 
+/**
+ * No new dynamic attributes
+ */
+xap.bridges.dojo.VerticalSplitPaneBridge.prototype.getNewAllowedAttributes = function(){
+	return [];
+}	
+
+xap.bridges.dojo.VerticalSplitPaneBridge.prototype.addChild = function(childHandler, index){
+	
+	var insertIndex = -1;
+	if (childHandler instanceof xap.bridges.dojo.SecondSplitChildBridge){
+		insertIndex = this.getPeer().children.length;
+		childHandler._splitPaneBridge = this;
+	}
+	else if (childHandler instanceof xap.bridges.dojo.SplitChildBridge){
+		insertIndex = 0;
+		childHandler._splitPaneBridge = this;
+	}
+	if (insertIndex>-1 && childHandler.getPeer()){
+		xap.bridges.dojo.DojoWidgetBridge.prototype.addChild.call(this,childHandler,insertIndex);
+	}
+	
+}
+
+

Propchange: incubator/xap/trunk/src/xap/bridges/dojo/VerticalSplitPaneBridge.js
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/xap/trunk/src/xap/taghandling/plugin.xml
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/taghandling/plugin.xml?view=diff&rev=482996&r1=482995&r2=482996
==============================================================================
--- incubator/xap/trunk/src/xap/taghandling/plugin.xml (original)
+++ incubator/xap/trunk/src/xap/taghandling/plugin.xml Wed Dec  6 01:55:18 2006
@@ -63,8 +63,8 @@
 		<mapping class="xap.bridges.xap.ListItemBridge" name="listItem"/>
 	
 		
-		
-		<mapping class="xap.bridges.dojo.SplitPaneBridge" name="splitPane"/>
+		<mapping class="xap.bridges.dojo.VerticalSplitPaneBridge" name="verticalSplitPane"/>
+		<mapping class="xap.bridges.dojo.HorizontalSplitPaneBridge" name="horizontalSplitPane"/>
 		<mapping class="xap.bridges.dojo.SplitChildBridge" name="top"/>
 		<mapping class="xap.bridges.dojo.SplitChildBridge" name="left"/>
 		<mapping class="xap.bridges.dojo.SecondSplitChildBridge" name="bottom"/>
@@ -128,7 +128,8 @@
 	
 		
 		
-		<mapping class="xap.bridges.dojo.SplitPaneBridge" name="splitPane"/>
+		<mapping class="xap.bridges.dojo.VerticalSplitPaneBridge" name="verticalSplitPane"/>
+		<mapping class="xap.bridges.dojo.HorizontalSplitPaneBridge" name="horizontalSplitPane"/>
 		<mapping class="xap.bridges.dojo.SplitChildBridge" name="top"/>
 		<mapping class="xap.bridges.dojo.SplitChildBridge" name="left"/>
 		<mapping class="xap.bridges.dojo.SecondSplitChildBridge" name="bottom"/>



Mime
View raw message