incubator-xap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mtu...@apache.org
Subject svn commit: r470654 - in /incubator/xap/trunk/WebContent/examples/widgets: listbox.html listbox.xal
Date Fri, 03 Nov 2006 04:11:33 GMT
Author: mturyn
Date: Thu Nov  2 20:11:33 2006
New Revision: 470654

URL: http://svn.apache.org/viewvc?view=rev&rev=470654
Log:
Brought in line with new start-up procedure:

Modified:
    incubator/xap/trunk/WebContent/examples/widgets/listbox.html
    incubator/xap/trunk/WebContent/examples/widgets/listbox.xal

Modified: incubator/xap/trunk/WebContent/examples/widgets/listbox.html
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/listbox.html?view=diff&rev=470654&r1=470653&r2=470654
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/listbox.html (original)
+++ incubator/xap/trunk/WebContent/examples/widgets/listbox.html Thu Nov  2 20:11:33 2006
@@ -16,11 +16,22 @@
 	</script>    
 	
 	<script language="JavaScript" type="text/javascript" src="../../xapcore.js"></script>
-  <script language="JavaScript" type="text/javascript" src="AttributeTester.js"></script>
+  	<script language="JavaScript" type="text/javascript" src="AttributeTester.js"></script>
+    
+	<script language="JavaScript">
+   		xap.util.Debug.setSourceRootDir("../../") ; 	
+		xap.util.Debug.addDebuggables(		
+							"xap.widgets.dojo.ListBox",
+							"xap.bridges.dojo.ListBoxBridge",
+							"xap.bridges.dojo.DojoWidgetBridge"															
+							) ;
+		xap.util.Debug.loadDebuggables() ;
+	</script>        
+    
     
  </head>
   
- <body onload="Xap.createAllPredefinedSessions()">
-	<div xapId="ListBoxExample" xapSrc="listbox.xal" xapToolkit="dojo" xapContext="../../"></div>
+ <body onload="Xap.createEmbeddedApplications()">
+	<div xapId="ListBoxExample" startPage="listbox.xal"      ></div>
 </body>
 </html>

Modified: incubator/xap/trunk/WebContent/examples/widgets/listbox.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/listbox.xal?view=diff&rev=470654&r1=470653&r2=470654
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/listbox.xal (original)
+++ incubator/xap/trunk/WebContent/examples/widgets/listbox.xal Thu Nov  2 20:11:33 2006
@@ -11,7 +11,10 @@
 
 				<horizontalPanel>
 
-					<listBox id="blahblah" color="green" fontWeight="bold" fontSize="16px" selectionMode="multiRow"
onActiveGained="mco:attributeSetter.reportEvent(event)" onActiveLost="mco:attributeSetter.reportEvent(event)"
+					<listBox id="testComponent" color="green" 
+						fontWeight="bold" fontSize="18px" 
+						selectionMode="multiRow"  height="25px"
+						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)"
@@ -21,8 +24,7 @@
 						<listItem id="testOption3" text="Option 3" value="Value 3" selected="true" />
 					</listBox>
 
-					<listBox id="googoo" selectionMode="singleRow">
-						<listItem text="NO EVENTS ONLY SINGLE ROW SELECT" value="SINGLE ROW" />
+					<listBox id="googoo" selectionMode="singleRow" height="40px">
 						<listItem text="NO EVENTS ONLY SINGLE ROW SELECT" value="SINGLE ROW" />
 					</listBox>
 				</horizontalPanel>
@@ -30,7 +32,7 @@
 				<horizontalPanel>
 					<button width="200px" height="50px" alignHorizontal="center" alignVertical="center"
text="Remove Option 2 of ListBox via XAL DOM" onCommand="mco:attributeSetter.remove(testOption2)"
/>
 
-					<button width="200px" height="50px" alignHorizontal="center" alignVertical="center"
text="Insert a NEW Option" onCommand="mco:attributeSetter.appendListItem(testComponentListBox)"
/>
+					<button width="200px" height="50px" alignHorizontal="center" alignVertical="center"
text="Insert a NEW Option" onCommand="mco:attributeSetter.appendListItem(testComponent)" />
 
 					<button width="200px" height="50px" alignHorizontal="center" alignVertical="center"
text="Multiselect" onCommand="mco:attributeSetter.setAttribute(testOption1, 'selected', 'true')"
/>
 				</horizontalPanel>



Mime
View raw message