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/12/09 23:32:07 UTC
svn commit: r485090 - in /incubator/xap/trunk/WebContent/examples/widgets:
combobox.html combobox.xal listbox.html listbox.xal
Author: mturyn
Date: Sat Dec 9 15:32:06 2006
New Revision: 485090
URL: http://svn.apache.org/viewvc?view=rev&rev=485090
Log:
Changed xal so that we can test positioning by moving this around (using new features in AttributeTester).
Commented-out debug-"on" code; debugging can mask a bad require() structure because it reloads (or assumes it's "re") using a script tag.
Modified:
incubator/xap/trunk/WebContent/examples/widgets/combobox.html
incubator/xap/trunk/WebContent/examples/widgets/combobox.xal
incubator/xap/trunk/WebContent/examples/widgets/listbox.html
incubator/xap/trunk/WebContent/examples/widgets/listbox.xal
Modified: incubator/xap/trunk/WebContent/examples/widgets/combobox.html
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/combobox.html?view=diff&rev=485090&r1=485089&r2=485090
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/combobox.html (original)
+++ incubator/xap/trunk/WebContent/examples/widgets/combobox.html Sat Dec 9 15:32:06 2006
@@ -16,6 +16,9 @@
djConfig = {
parseWidgets: false
};
+ </script>
+
+ <!-- script language="JavaScript" type="text/javascript">
// Debug classes chosen
debug_config = {
@@ -31,13 +34,13 @@
],
_debugAll:true
} ;
- </script>
+ </script -->
<script language="JavaScript" type="text/javascript" src="../../xapcore.js"></script>
<script language="JavaScript">
<!-- must do this before we load the actual application: -->
- xap.util.Debug.loadDebuggables() ;
+ // xap.util.Debug.loadDebuggables() ;
</script>
</head>
Modified: incubator/xap/trunk/WebContent/examples/widgets/combobox.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/combobox.xal?view=diff&rev=485090&r1=485089&r2=485090
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/combobox.xal (original)
+++ incubator/xap/trunk/WebContent/examples/widgets/combobox.xal Sat Dec 9 15:32:06 2006
@@ -13,7 +13,15 @@
<xm:modifications xmlns:xm="http://openxal.org/core/xmodify">
<xm:append select="/ui">
<verticalBoxPane>
- <freePane width="1000px" height="300px">
+ <freePane backgroundColor="rgb(255,255,245)"
+ width="1000px" height="200px"
+ onDoubleClick="mco:attributeSetter.transportWidget(event)"
+ >
+
+ <label x="2px" y="2px" backgroundColor="rgb(255,245,255)"
+ text="double-click around in this pane to move the widget"
+ />
+
<comboBox
x="100px" y="20px" borderStyle="ridge" borderWidth="3px" borderColor="yellow"
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=485090&r1=485089&r2=485090
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/listbox.html (original)
+++ incubator/xap/trunk/WebContent/examples/widgets/listbox.html Sat Dec 9 15:32:06 2006
@@ -13,6 +13,9 @@
djConfig = {
parseWidgets: false
};
+ </script>
+
+ <!-- script language="JavaScript" type="text/javascript">
// Debug all classes used:
debug_config = {
_debugList:[
@@ -27,15 +30,14 @@
],
_debugAll:true
} ;
- </script>
+ </script -->
<script language="JavaScript" type="text/javascript" src="../../xapcore.js"></script>
- <script language="JavaScript" type="text/javascript" src="AttributeTester.js"></script>
<script language="JavaScript">
<!-- must do this before we load the actual application: -->
- xap.util.Debug.loadDebuggables();
+ // xap.util.Debug.loadDebuggables();
</script>
</head>
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=485090&r1=485089&r2=485090
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/listbox.xal (original)
+++ incubator/xap/trunk/WebContent/examples/widgets/listbox.xal Sat Dec 9 15:32:06 2006
@@ -13,9 +13,23 @@
<xm:append select="/ui">
<verticalBoxPane>
- <horizontalBoxPane>
+ <freePane backgroundColor="rgb(255,255,245)"
+ width="1000px" height="200px"
+ onDoubleClick="mco:attributeSetter.transportWidget(event)"
+ >
+
+ <label x="2px" y="2px" backgroundColor="rgb(255,245,255)"
+ text="double-click around in this pane to move the widget"
+ />
+ <comboBox x="200pt" y="4px" id="testComponent" selectionMode="singleRow" height="100px" onActiveGained="mco:attributeSetter.reportEvent(event)" onActiveLost="mco:attributeSetter.reportEvent(event)"
+ onBeforeActiveLost="mco:attributeSetter.reportEvent(event)" onCommand="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)" onKeyChar="mco:attributeSetter.reportEvent(event)"
+ onEdit="mco:attributeSetter.reportEvent(event)" onKeyDown="mco:attributeSetter.reportEvent(event)" onKeyUp="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)" onTextChange="mco:attributeSetter.reportEvent(event)">
- <listBox id="testComponent" color="green"
+ <listBox id="testComponentListBox" color="green"
+ x="50px" y="5px"
borderColor="yellow" borderWidth="6px" borderStyle="ridge"
fontWeight="bold" fontSize="18px"
selectionMode="multiRow" height="200px"
@@ -28,11 +42,13 @@
<listItem id="testOption2" text="Option 2" value="Value 2" />
<listItem id="testOption3" text="Option 3" value="Value 3" selected="true" />
</listBox>
+
+ </comboBox>
- <listBox id="googoo" selectionMode="singleRow" height="40px">
+ <!-- listBox id="googoo" selectionMode="singleRow" height="40px">
<listItem text="NO EVENTS ONLY SINGLE ROW SELECT" value="SINGLE ROW" />
- </listBox>
- </horizontalBoxPane>
+ </listBox -->
+ </freePane>
<horizontalBoxPane>
<button width="200px" height="50px" alignHorizontal="center" alignVertical="center" text="Remove Option 2 of ListBox via XAL DOM" onCommand="mco:attributeSetter.remove(testOption2)" />