incubator-xap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mtu...@apache.org
Subject svn commit: r470049 - in /incubator/xap/trunk/WebContent/examples/widgets: listbox.html listbox.xal
Date Wed, 01 Nov 2006 19:37:58 GMT
Author: mturyn
Date: Wed Nov  1 11:37:57 2006
New Revision: 470049

URL: http://svn.apache.org/viewvc?view=rev&rev=470049
Log:
Separated out from ComboBox example.

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

Added: incubator/xap/trunk/WebContent/examples/widgets/listbox.html
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/listbox.html?view=auto&rev=470049
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/listbox.html (added)
+++ incubator/xap/trunk/WebContent/examples/widgets/listbox.html Wed Nov  1 11:37:57 2006
@@ -0,0 +1,26 @@
+<html>
+<head>
+    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+    <title>ListBox</title>
+
+	<style type="text/css">
+      <!--
+          @import url(../../css/xapDefault.css);
+      -->
+    </style>
+
+	<script type="text/javascript">
+		djConfig = {
+			parseWidgets: false
+		};
+	</script>    
+	
+	<script language="JavaScript" type="text/javascript" src="../../xapcore.js"></script>
+  <script language="JavaScript" type="text/javascript" src="AttributeTester.js"></script>
+    
+ </head>
+  
+ <body onload="Xap.createAllPredefinedSessions()">
+	<div xapId="ListBoxExample" xapSrc="listbox.xal" xapToolkit="dojo" xapContext="../../"></div>
+</body>
+</html>

Added: incubator/xap/trunk/WebContent/examples/widgets/listbox.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/listbox.xal?view=auto&rev=470049
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/listbox.xal (added)
+++ incubator/xap/trunk/WebContent/examples/widgets/listbox.xal Wed Nov  1 11:37:57 2006
@@ -0,0 +1,43 @@
+<xal xmlns="http://www.openxal.org/xal" xmlns:dojo="http://www.dojotoolkit.org/">
+
+
+	<mco:mco xmlns:mco="http://www.openxal.org/mco" id="attributeSetter" src="AttributeTester"
/>
+
+
+
+	<xm:modifications xmlns:xm="http://www.openxal.org/xmodify">
+		<xm:append select="/xal">
+			<horizontalPanel>
+				<verticalPanel>
+					<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="Multiselect" onCommand="mco:attributeSetter.setAttribute(testOption1, 'selected', 'true')"
/>
+				</verticalPanel>
+				<verticalPanel>
+					<!--standard test things -->
+
+					<include href="standardButtons.xal" xmlns="http://www.openxal.org/xinclude" />
+				</verticalPanel>
+				<verticalPanel>
+
+					<listBox id="blahblah" color="green" fontWeight="bold" fontSize="16px" selectionMode="multiRow"
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)"
+						onPositionChange="mco:attributeSetter.reportEvent(event)" onSelect="mco:attributeSetter.reportEvent(event)"
onStateChange="mco:attributeSetter.reportEvent(event)">
+						<listItem id="testOption1" text="Option 1" value="Value 1" />
+						<listItem id="testOption2" text="Option 2" value="Value 2" />
+						<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" />
+						<listItem text="NO EVENTS ONLY SINGLE ROW SELECT" value="SINGLE ROW" />
+					</listBox>
+				</verticalPanel>
+			</horizontalPanel>
+		</xm:append>
+	</xm:modifications>
+</xal>



Mime
View raw message