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 jm...@apache.org on 2006/08/30 02:41:22 UTC
svn commit: r438323 - in /incubator/xap/trunk/WebContent/examples/widgets:
horizontalPanel.html horizontalPanel.xal index.html verticalPanel.html
verticalPanel.xal
Author: jmargaris
Date: Tue Aug 29 19:41:22 2006
New Revision: 438323
URL: http://svn.apache.org/viewvc?rev=438323&view=rev
Log:
added vertical and horizontal panel
Added:
incubator/xap/trunk/WebContent/examples/widgets/horizontalPanel.html (with props)
incubator/xap/trunk/WebContent/examples/widgets/horizontalPanel.xal
incubator/xap/trunk/WebContent/examples/widgets/verticalPanel.html (with props)
incubator/xap/trunk/WebContent/examples/widgets/verticalPanel.xal
Modified:
incubator/xap/trunk/WebContent/examples/widgets/index.html
Added: incubator/xap/trunk/WebContent/examples/widgets/horizontalPanel.html
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/horizontalPanel.html?rev=438323&view=auto
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/horizontalPanel.html (added)
+++ incubator/xap/trunk/WebContent/examples/widgets/horizontalPanel.html Tue Aug 29 19:41:22 2006
@@ -0,0 +1,27 @@
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+ <title>Button</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>
+ <script language="JavaScript" type="text/javascript" src="AttributeTester.js"></script>
+
+ </head>
+
+ <body onload="Xap.createAllPredefinedSessions();">
+ <div xapId="ButtonExample" xapSrc="horizontalPanel.xal" xapToolkit="dojo" xapContext="../../"></div>
+</body>
+</html>
Propchange: incubator/xap/trunk/WebContent/examples/widgets/horizontalPanel.html
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/xap/trunk/WebContent/examples/widgets/horizontalPanel.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/horizontalPanel.xal?rev=438323&view=auto
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/horizontalPanel.xal (added)
+++ incubator/xap/trunk/WebContent/examples/widgets/horizontalPanel.xal Tue Aug 29 19:41:22 2006
@@ -0,0 +1,74 @@
+<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">
+
+ <dojo:horizontalPanel width="200px" height="200px" backgroundColor="black"
+ id="testComponent">
+ <dojo:button text="Button 1"/>
+ <dojo:button text="Button 2"/>
+ <dojo:button text="Button 3"/>
+ </dojo:horizontalPanel>
+
+
+ <!--standard test things -->
+
+
+
+ <dojo:button width="200px" height="25px"
+ text="borderWidth -> '25'"
+ onCommand="mco:attributeSetter.setAttribute(testComponent,
+ 'borderWidth' ,'25')"/>
+
+ <dojo:button width="200px" height="25px"
+ text="borderStyle -> 'solid'"
+ onCommand="mco:attributeSetter.setAttribute(testComponent,
+ 'borderStyle' ,'solid')"/>
+
+ <dojo:button width="200px" height="25px"
+ text="borderColor -> 'red'"
+ onCommand="mco:attributeSetter.setAttribute(testComponent,
+ 'borderColor' ,'red')"/>
+
+ <dojo:button width="200px" height="25px"
+ text="width -> '300px'"
+ onCommand="mco:attributeSetter.setAttribute(testComponent,
+ 'width' ,'300px')"/>
+
+ <dojo:button width="200px" height="25px"
+ text="height -> '300px'"
+ onCommand="mco:attributeSetter.setAttribute(testComponent,
+ 'height' ,'300px')"/>
+
+ <dojo:button width="200px" height="25px"
+ text="fontWeight -> 'bold'"
+ onCommand="mco:attributeSetter.setAttribute(testComponent,
+ 'fontWeight' ,'bold')"/>
+
+ <dojo:button width="200px" height="25px"
+ text="backgroundColor -> 'green'"
+ onCommand="mco:attributeSetter.setAttribute(testComponent,
+ 'backgroundColor' ,'green')"/>
+
+ <dojo:button width="200px" height="25px"
+ text="color -> 'red'"
+ onCommand="mco:attributeSetter.setAttribute(testComponent,
+ 'color' ,'red')"/>
+
+ <dojo:button width="200px" height="25px"
+ text="fontSize-> '24'"
+ onCommand="mco:attributeSetter.setAttribute(testComponent,
+ 'fontSize' ,'24')"/>
+
+ </xm:append>
+ </xm:modifications>
+</xal>
Modified: incubator/xap/trunk/WebContent/examples/widgets/index.html
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/index.html?rev=438323&r1=438322&r2=438323&view=diff
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/index.html (original)
+++ incubator/xap/trunk/WebContent/examples/widgets/index.html Tue Aug 29 19:41:22 2006
@@ -6,6 +6,8 @@
<li><a href="tabPane.html"><tabPane></a></li>
<li><a href="splitPane.html"><splitPane></a></li>
<li><a href="freePanel.html"><freePanel></a></li>
+<li><a href="verticalPanel.html"><verticalPanel></a></li>
+<li><a href="horizontalPanel.html"><horizontalPanel></a></li>
</ul>
<br>
Added: incubator/xap/trunk/WebContent/examples/widgets/verticalPanel.html
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/verticalPanel.html?rev=438323&view=auto
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/verticalPanel.html (added)
+++ incubator/xap/trunk/WebContent/examples/widgets/verticalPanel.html Tue Aug 29 19:41:22 2006
@@ -0,0 +1,27 @@
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+ <title>Button</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>
+ <script language="JavaScript" type="text/javascript" src="AttributeTester.js"></script>
+
+ </head>
+
+ <body onload="Xap.createAllPredefinedSessions();">
+ <div xapId="ButtonExample" xapSrc="verticalPanel.xal" xapToolkit="dojo" xapContext="../../"></div>
+</body>
+</html>
Propchange: incubator/xap/trunk/WebContent/examples/widgets/verticalPanel.html
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/xap/trunk/WebContent/examples/widgets/verticalPanel.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/verticalPanel.xal?rev=438323&view=auto
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/verticalPanel.xal (added)
+++ incubator/xap/trunk/WebContent/examples/widgets/verticalPanel.xal Tue Aug 29 19:41:22 2006
@@ -0,0 +1,74 @@
+<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">
+
+ <dojo:verticalPanel width="200px" height="200px" backgroundColor="black"
+ id="testComponent" orientation="horizontal">
+ <dojo:button text="Button 1"/>
+ <dojo:button text="Button 2"/>
+ <dojo:button text="Button 3"/>
+ </dojo:verticalPanel>
+
+
+ <!--standard test things -->
+
+
+
+ <dojo:button width="200px" height="25px"
+ text="borderWidth -> '25'"
+ onCommand="mco:attributeSetter.setAttribute(testComponent,
+ 'borderWidth' ,'25')"/>
+
+ <dojo:button width="200px" height="25px"
+ text="borderStyle -> 'solid'"
+ onCommand="mco:attributeSetter.setAttribute(testComponent,
+ 'borderStyle' ,'solid')"/>
+
+ <dojo:button width="200px" height="25px"
+ text="borderColor -> 'red'"
+ onCommand="mco:attributeSetter.setAttribute(testComponent,
+ 'borderColor' ,'red')"/>
+
+ <dojo:button width="200px" height="25px"
+ text="width -> '300px'"
+ onCommand="mco:attributeSetter.setAttribute(testComponent,
+ 'width' ,'300px')"/>
+
+ <dojo:button width="200px" height="25px"
+ text="height -> '300px'"
+ onCommand="mco:attributeSetter.setAttribute(testComponent,
+ 'height' ,'300px')"/>
+
+ <dojo:button width="200px" height="25px"
+ text="fontWeight -> 'bold'"
+ onCommand="mco:attributeSetter.setAttribute(testComponent,
+ 'fontWeight' ,'bold')"/>
+
+ <dojo:button width="200px" height="25px"
+ text="backgroundColor -> 'green'"
+ onCommand="mco:attributeSetter.setAttribute(testComponent,
+ 'backgroundColor' ,'green')"/>
+
+ <dojo:button width="200px" height="25px"
+ text="color -> 'red'"
+ onCommand="mco:attributeSetter.setAttribute(testComponent,
+ 'color' ,'red')"/>
+
+ <dojo:button width="200px" height="25px"
+ text="fontSize-> '24'"
+ onCommand="mco:attributeSetter.setAttribute(testComponent,
+ 'fontSize' ,'24')"/>
+
+ </xm:append>
+ </xm:modifications>
+</xal>