You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xap-commits@incubator.apache.org by mt...@apache.org on 2006/09/27 17:50:46 UTC
svn commit: r450520 - in /incubator/xap/trunk/WebContent/examples/widgets:
combobox.html combobox.xal
Author: mturyn
Date: Wed Sep 27 10:50:45 2006
New Revision: 450520
URL: http://svn.apache.org/viewvc?view=rev&rev=450520
Log:
new combobox
Added:
incubator/xap/trunk/WebContent/examples/widgets/combobox.html
incubator/xap/trunk/WebContent/examples/widgets/combobox.xal
Added: incubator/xap/trunk/WebContent/examples/widgets/combobox.html
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/combobox.html?view=auto&rev=450520
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/combobox.html (added)
+++ incubator/xap/trunk/WebContent/examples/widgets/combobox.html Wed Sep 27 10:50:45 2006
@@ -0,0 +1,26 @@
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+ <title>ComboBox</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="ComboBoxExample" xapSrc="combobox.xal" xapToolkit="dojo" xapContext="../../"></div>
+</body>
+</html>
Added: incubator/xap/trunk/WebContent/examples/widgets/combobox.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/combobox.xal?view=auto&rev=450520
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/combobox.xal (added)
+++ incubator/xap/trunk/WebContent/examples/widgets/combobox.xal Wed Sep 27 10:50:45 2006
@@ -0,0 +1,54 @@
+<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">
+
+
+ <comboBox id="testComponent" selectionMode="singleRow" height="100px" onTextChange="mco:attributeSetter.reportEvent(event)">
+ <listBox id="testComponentListBox" selectionMode="singleRow" color="#ccccff" width="300px" fontWeight="bold" fontSize="24px" >
+ <listItem text="Option 1" value="Value 1"/>
+ <listItem text="Option 2" value="Value 2" selected="true"/>
+ <listItem text="Option 3" value="Value 3"/>
+ </listBox>
+ </comboBox>
+
+
+ <listBox id="blahblah" color="green" fontWeight="bold" fontSize="16px" selectionMode="multiRow" onStateChange="mco:attributeSetter.reportEvent(event)">
+ <listItem 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>
+
+
+ <button width="200px" height="50px" alignHorizontal="center" alignVertical="center" text="Print"
+ onCommand="mco:attributeSetter.printElement(testComponent)" />
+
+ <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.append(testComponentListBox)" />
+
+
+ <!--standard test things -->
+
+ <include href="standardButtons.xal" xmlns="http://www.openxal.org/xinclude"/>
+
+
+ </xm:append>
+ </xm:modifications>
+</xal>
\ No newline at end of file