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/06/23 16:45:23 UTC
svn commit: r416764 - in /incubator/xap/trunk/WebContent/examples:
clientside-handler/ componentEvents/ controlsAndLayoutsExample/
cssStylesExample/ example1/ example2/ google/ helloWorld/
inline-javascript/ layout/ panel/ serverside-handler/ split-pan...
Author: jmargaris
Date: Fri Jun 23 09:45:22 2006
New Revision: 416764
URL: http://svn.apache.org/viewvc?rev=416764&view=rev
Log:
added eol-style:native for xal and xm files
Modified:
incubator/xap/trunk/WebContent/examples/clientside-handler/greeting.xal (contents, props changed)
incubator/xap/trunk/WebContent/examples/clientside-handler/index.xal (contents, props changed)
incubator/xap/trunk/WebContent/examples/componentEvents/index.xal (contents, props changed)
incubator/xap/trunk/WebContent/examples/controlsAndLayoutsExample/index.xal (contents, props changed)
incubator/xap/trunk/WebContent/examples/cssStylesExample/index.xal (contents, props changed)
incubator/xap/trunk/WebContent/examples/example1/index.xal (contents, props changed)
incubator/xap/trunk/WebContent/examples/example1/index2.xal (contents, props changed)
incubator/xap/trunk/WebContent/examples/example2/addLabel.xm (contents, props changed)
incubator/xap/trunk/WebContent/examples/example2/index.xal (contents, props changed)
incubator/xap/trunk/WebContent/examples/example2/replaceButton.xm (contents, props changed)
incubator/xap/trunk/WebContent/examples/google/index.xal (contents, props changed)
incubator/xap/trunk/WebContent/examples/helloWorld/index.xal (contents, props changed)
incubator/xap/trunk/WebContent/examples/inline-javascript/index.xal (contents, props changed)
incubator/xap/trunk/WebContent/examples/layout/index.xal (contents, props changed)
incubator/xap/trunk/WebContent/examples/panel/index.xal (contents, props changed)
incubator/xap/trunk/WebContent/examples/serverside-handler/hello-world.xal (contents, props changed)
incubator/xap/trunk/WebContent/examples/serverside-handler/index.xal (contents, props changed)
incubator/xap/trunk/WebContent/examples/split-pane/index.xal (contents, props changed)
incubator/xap/trunk/WebContent/examples/tab-pane/index.xal (contents, props changed)
Modified: incubator/xap/trunk/WebContent/examples/clientside-handler/greeting.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/clientside-handler/greeting.xal?rev=416764&r1=416763&r2=416764&view=diff
==============================================================================
--- incubator/xap/trunk/WebContent/examples/clientside-handler/greeting.xal (original)
+++ incubator/xap/trunk/WebContent/examples/clientside-handler/greeting.xal Fri Jun 23 09:45:22 2006
@@ -1,7 +1,7 @@
-<xal xmlns="http://www.openxal.org/xal">
- <xm:modifications xmlns:xm="http://www.openxal.org/xmodify">
- <xm:append select="/xal">
- <label text="hello from the server" />
- </xm:append>
- </xm:modifications>
+<xal xmlns="http://www.openxal.org/xal">
+ <xm:modifications xmlns:xm="http://www.openxal.org/xmodify">
+ <xm:append select="/xal">
+ <label text="hello from the server" />
+ </xm:append>
+ </xm:modifications>
</xal>
Propchange: incubator/xap/trunk/WebContent/examples/clientside-handler/greeting.xal
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/xap/trunk/WebContent/examples/clientside-handler/index.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/clientside-handler/index.xal?rev=416764&r1=416763&r2=416764&view=diff
==============================================================================
--- incubator/xap/trunk/WebContent/examples/clientside-handler/index.xal (original)
+++ incubator/xap/trunk/WebContent/examples/clientside-handler/index.xal Fri Jun 23 09:45:22 2006
@@ -1,9 +1,9 @@
-<xal xmlns="http://www.openxal.org/xal">
-
-<mco:mco xmlns:mco="http://www.openxal.org/mco" id="handler" src="MyHandler"/>
-
-<label text="Enter your name and press return: " width="210"/>
-<textField id="name" onEdit="mco:handler.onEdit(this.text,greeting)" y="50" width="210"/>
-<label id="greeting" height="35" y="85" width="210"/>
-
+<xal xmlns="http://www.openxal.org/xal">
+
+<mco:mco xmlns:mco="http://www.openxal.org/mco" id="handler" src="MyHandler"/>
+
+<label text="Enter your name and press return: " width="210"/>
+<textField id="name" onEdit="mco:handler.onEdit(this.text,greeting)" y="50" width="210"/>
+<label id="greeting" height="35" y="85" width="210"/>
+
</xal>
Propchange: incubator/xap/trunk/WebContent/examples/clientside-handler/index.xal
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/xap/trunk/WebContent/examples/componentEvents/index.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/componentEvents/index.xal?rev=416764&r1=416763&r2=416764&view=diff
==============================================================================
--- incubator/xap/trunk/WebContent/examples/componentEvents/index.xal (original)
+++ incubator/xap/trunk/WebContent/examples/componentEvents/index.xal Fri Jun 23 09:45:22 2006
@@ -1,29 +1,29 @@
-<xal xmlns="http://www.openxal.org/xal">
- <mco:mco xmlns:mco="http://www.openxal.org/mco" id="myMco" src="EventReflector"/>
-
-
- <xm:modifications xmlns:xm="http://www.openxal.org/xmodify">
- <xm:append select="/xal">
- <button text="A top button" height="10%" onCommand="mco:myMco.onEvent(event)"/>
- <tree width="100%" y="10%" height="50%" onSelect="mco:myMco.onEvent(event)"
- onExpand="mco:myMco.onEvent(event)" onCollapse="mco:myMco.onEvent(event)" borderWidth="1"
- borderColor="black" borderStyle="solid">
- <treeItem text="Item 1"/>
- <treeItem text="Item 2">
- <treeItem text="Item 2.1"/>
- <treeItem text="Item 2.2"/>
- <treeItem text="Item 3">
- <treeItem text="Item 3.1"/>
- <treeItem text="Item 3.2"/>
- </treeItem>
- </treeItem>
- <treeItem text="Item 3"/>
- <treeItem text="Item 4"/>
- </tree>
-
- <textField text="A text field" y="60%" height="10%" onEdit="mco:myMco.onEvent(event)"/>
- <label id="eventLabel" y="70%" height="30%" text="hello<br>goodbye"/>
-
- </xm:append>
- </xm:modifications>
+<xal xmlns="http://www.openxal.org/xal">
+ <mco:mco xmlns:mco="http://www.openxal.org/mco" id="myMco" src="EventReflector"/>
+
+
+ <xm:modifications xmlns:xm="http://www.openxal.org/xmodify">
+ <xm:append select="/xal">
+ <button text="A top button" height="10%" onCommand="mco:myMco.onEvent(event)"/>
+ <tree width="100%" y="10%" height="50%" onSelect="mco:myMco.onEvent(event)"
+ onExpand="mco:myMco.onEvent(event)" onCollapse="mco:myMco.onEvent(event)" borderWidth="1"
+ borderColor="black" borderStyle="solid">
+ <treeItem text="Item 1"/>
+ <treeItem text="Item 2">
+ <treeItem text="Item 2.1"/>
+ <treeItem text="Item 2.2"/>
+ <treeItem text="Item 3">
+ <treeItem text="Item 3.1"/>
+ <treeItem text="Item 3.2"/>
+ </treeItem>
+ </treeItem>
+ <treeItem text="Item 3"/>
+ <treeItem text="Item 4"/>
+ </tree>
+
+ <textField text="A text field" y="60%" height="10%" onEdit="mco:myMco.onEvent(event)"/>
+ <label id="eventLabel" y="70%" height="30%" text="hello<br>goodbye"/>
+
+ </xm:append>
+ </xm:modifications>
</xal>
Propchange: incubator/xap/trunk/WebContent/examples/componentEvents/index.xal
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/xap/trunk/WebContent/examples/controlsAndLayoutsExample/index.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/controlsAndLayoutsExample/index.xal?rev=416764&r1=416763&r2=416764&view=diff
==============================================================================
--- incubator/xap/trunk/WebContent/examples/controlsAndLayoutsExample/index.xal (original)
+++ incubator/xap/trunk/WebContent/examples/controlsAndLayoutsExample/index.xal Fri Jun 23 09:45:22 2006
@@ -1,155 +1,155 @@
-
-<xal xmlns="http://www.openxal.org/xal">
- <mco:mco xmlns:mco="http://www.openxal.org/mco" id="myMco" src="ExampleMco"/>
- <verticalLayoutPanel id="verticalPanel">
- <label text="Xap UI Layouts and Controls" />
- <tabPane width="100%">
- <tab text="OptionNumberOne" width="100%" >
- <panel x="45px">
- <label text="Tree Control" />
- </panel>
- <panel x="45" y="30px">
- <tree width="100%" height="100%">
- <treeItem text="Item 1"/>
- <treeItem text="Item 2">
- <treeItem text="Item 2.1"/>
- <treeItem text="Item 2.2"/>
- <treeItem text="Item 3">
- <treeItem text="Item 3.1"/>
- <treeItem text="Item 3.2"/>
- </treeItem>
- </treeItem>
- <treeItem text="Item 3"/>
- <treeItem text="Item 4"/>
- </tree>
- </panel>
- </tab>
- <tab text="OptionNumberTwo" width="100%">
- <verticalLayoutPanel x="20" y="15px">
- <horizontalLayoutPanel width="20%">
- <label text="Input Form Example" />
- </horizontalLayoutPanel>
- <horizontalLayoutPanel width="50%">
- <verticalLayoutPanel>
- <label text="Input 1" />
- <label text="Input 2" />
- <label text="Input 3" />
- </verticalLayoutPanel>
- <verticalLayoutPanel>
- <textField id="theTextField" text="2" width="10%"/>
- <textField width="10%"/>
- <textField width="10%" />
- </verticalLayoutPanel>
- </horizontalLayoutPanel>
- <horizontalLayoutPanel width="100%">
- <horizontalLayoutPanel width="75%">
- <verticalLayoutPanel>
- <label/>
- </verticalLayoutPanel>
- </horizontalLayoutPanel>
- <horizontalLayoutPanel width="25%">
- <verticalLayoutPanel>
- <button text="Submit w/jsMCO" width="50%" onCommand="mco:myMco.formSubmit(event)" />
- </verticalLayoutPanel>
- </horizontalLayoutPanel>
- </horizontalLayoutPanel>
- </verticalLayoutPanel>
- </tab>
- <tab text="OptionNumberThree" width="50%">
- <verticalLayoutPanel x="45" y="15px">
- <horizontalLayoutPanel>
- <label text="Horizontal Layout Panels" />
- <textField />
- <textField />
- <textField />
- </horizontalLayoutPanel>
- <horizontalLayoutPanel>
- <label text="Horizontal Layout Panels" />
- <textField />
- <textField />
- <textField />
- </horizontalLayoutPanel>
- <horizontalLayoutPanel>
- <label text="Horizontal Layout Panels" />
- <textField />
- <textField />
- <textField />
- </horizontalLayoutPanel>
- <horizontalLayoutPanel>
- <label text="Horizontal Layout Panels" />
- <textField />
- <textField />
- <textField />
- </horizontalLayoutPanel>
- <horizontalLayoutPanel>
- <label text="Horizontal Layout Panels" />
- <textField />
- <textField />
- <textField />
- </horizontalLayoutPanel>
- <horizontalLayoutPanel>
- <label text="Horizontal Layout Panels" />
- <textField />
- <textField />
- <textField />
- </horizontalLayoutPanel>
- </verticalLayoutPanel>
- </tab>
- <tab text="OptionNumberFour" width="20%">
- <verticalLayoutPanel x="45px" y="15px">
- <label text="Vertical Layout Panel" />
- <textField width="10%" />
- <textField width="10%" />
- <textField width="10%" />
- <textField width="10%" />
- <textField width="10%" />
- <textField width="10%" />
- <textField width="10%" />
- <textField width="10%" />
- <textField width="10%" />
- <textField width="10%" />
- <textField width="10%" />
- <textField width="10%" />
- </verticalLayoutPanel>
- </tab>
- <tab text="OptionNumberFive" width="20%">
- <label text=" using X and Y values" x="40px" />
- <tabPane x="100px" y="500px">
- <tab text="tab1">
- <label text="label1" />
- </tab>
- <tab text="tab2">
- <label text="label2" />
- </tab>
- </tabPane>
- <tabPane x="500px" y="500px">
- <tab text="tab1">
- <label text="label1" />
- </tab>
- <tab text="tab2">
- <label text="label2" />
- </tab>
- </tabPane>
- <tabPane x="100px" y="100px">
- <tab text="tab1">
- <label text="label1" />
- </tab>
- <tab text="tab2">
- <label text="label2" />
- </tab>
- </tabPane>
- <tabPane x="500px" y="100px">
- <tab text="tab1">
- <label text="label1" />
- </tab>
- <tab text="tab2">
- <label text="label2" />
- </tab>
- </tabPane>
- </tab>
- </tabPane>
- </verticalLayoutPanel>
-</xal>
-
-
-
+
+<xal xmlns="http://www.openxal.org/xal">
+ <mco:mco xmlns:mco="http://www.openxal.org/mco" id="myMco" src="ExampleMco"/>
+ <verticalLayoutPanel id="verticalPanel">
+ <label text="Xap UI Layouts and Controls" />
+ <tabPane width="100%">
+ <tab text="OptionNumberOne" width="100%" >
+ <panel x="45px">
+ <label text="Tree Control" />
+ </panel>
+ <panel x="45" y="30px">
+ <tree width="100%" height="100%">
+ <treeItem text="Item 1"/>
+ <treeItem text="Item 2">
+ <treeItem text="Item 2.1"/>
+ <treeItem text="Item 2.2"/>
+ <treeItem text="Item 3">
+ <treeItem text="Item 3.1"/>
+ <treeItem text="Item 3.2"/>
+ </treeItem>
+ </treeItem>
+ <treeItem text="Item 3"/>
+ <treeItem text="Item 4"/>
+ </tree>
+ </panel>
+ </tab>
+ <tab text="OptionNumberTwo" width="100%">
+ <verticalLayoutPanel x="20" y="15px">
+ <horizontalLayoutPanel width="20%">
+ <label text="Input Form Example" />
+ </horizontalLayoutPanel>
+ <horizontalLayoutPanel width="50%">
+ <verticalLayoutPanel>
+ <label text="Input 1" />
+ <label text="Input 2" />
+ <label text="Input 3" />
+ </verticalLayoutPanel>
+ <verticalLayoutPanel>
+ <textField id="theTextField" text="2" width="10%"/>
+ <textField width="10%"/>
+ <textField width="10%" />
+ </verticalLayoutPanel>
+ </horizontalLayoutPanel>
+ <horizontalLayoutPanel width="100%">
+ <horizontalLayoutPanel width="75%">
+ <verticalLayoutPanel>
+ <label/>
+ </verticalLayoutPanel>
+ </horizontalLayoutPanel>
+ <horizontalLayoutPanel width="25%">
+ <verticalLayoutPanel>
+ <button text="Submit w/jsMCO" width="50%" onCommand="mco:myMco.formSubmit(event)" />
+ </verticalLayoutPanel>
+ </horizontalLayoutPanel>
+ </horizontalLayoutPanel>
+ </verticalLayoutPanel>
+ </tab>
+ <tab text="OptionNumberThree" width="50%">
+ <verticalLayoutPanel x="45" y="15px">
+ <horizontalLayoutPanel>
+ <label text="Horizontal Layout Panels" />
+ <textField />
+ <textField />
+ <textField />
+ </horizontalLayoutPanel>
+ <horizontalLayoutPanel>
+ <label text="Horizontal Layout Panels" />
+ <textField />
+ <textField />
+ <textField />
+ </horizontalLayoutPanel>
+ <horizontalLayoutPanel>
+ <label text="Horizontal Layout Panels" />
+ <textField />
+ <textField />
+ <textField />
+ </horizontalLayoutPanel>
+ <horizontalLayoutPanel>
+ <label text="Horizontal Layout Panels" />
+ <textField />
+ <textField />
+ <textField />
+ </horizontalLayoutPanel>
+ <horizontalLayoutPanel>
+ <label text="Horizontal Layout Panels" />
+ <textField />
+ <textField />
+ <textField />
+ </horizontalLayoutPanel>
+ <horizontalLayoutPanel>
+ <label text="Horizontal Layout Panels" />
+ <textField />
+ <textField />
+ <textField />
+ </horizontalLayoutPanel>
+ </verticalLayoutPanel>
+ </tab>
+ <tab text="OptionNumberFour" width="20%">
+ <verticalLayoutPanel x="45px" y="15px">
+ <label text="Vertical Layout Panel" />
+ <textField width="10%" />
+ <textField width="10%" />
+ <textField width="10%" />
+ <textField width="10%" />
+ <textField width="10%" />
+ <textField width="10%" />
+ <textField width="10%" />
+ <textField width="10%" />
+ <textField width="10%" />
+ <textField width="10%" />
+ <textField width="10%" />
+ <textField width="10%" />
+ </verticalLayoutPanel>
+ </tab>
+ <tab text="OptionNumberFive" width="20%">
+ <label text=" using X and Y values" x="40px" />
+ <tabPane x="100px" y="500px">
+ <tab text="tab1">
+ <label text="label1" />
+ </tab>
+ <tab text="tab2">
+ <label text="label2" />
+ </tab>
+ </tabPane>
+ <tabPane x="500px" y="500px">
+ <tab text="tab1">
+ <label text="label1" />
+ </tab>
+ <tab text="tab2">
+ <label text="label2" />
+ </tab>
+ </tabPane>
+ <tabPane x="100px" y="100px">
+ <tab text="tab1">
+ <label text="label1" />
+ </tab>
+ <tab text="tab2">
+ <label text="label2" />
+ </tab>
+ </tabPane>
+ <tabPane x="500px" y="100px">
+ <tab text="tab1">
+ <label text="label1" />
+ </tab>
+ <tab text="tab2">
+ <label text="label2" />
+ </tab>
+ </tabPane>
+ </tab>
+ </tabPane>
+ </verticalLayoutPanel>
+</xal>
+
+
+
Propchange: incubator/xap/trunk/WebContent/examples/controlsAndLayoutsExample/index.xal
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/xap/trunk/WebContent/examples/cssStylesExample/index.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/cssStylesExample/index.xal?rev=416764&r1=416763&r2=416764&view=diff
==============================================================================
--- incubator/xap/trunk/WebContent/examples/cssStylesExample/index.xal (original)
+++ incubator/xap/trunk/WebContent/examples/cssStylesExample/index.xal Fri Jun 23 09:45:22 2006
@@ -1,16 +1,16 @@
-<xal xmlns="http://www.openxal.org/xal">
- <xm:modifications xmlns:xm="http://www.openxal.org/xmodify">
- <xm:append select="/xal">
- <panel height="10%" width="50%" height="50%"
- borderColor="#FF0 #F0F #0FF #000" borderWidth="4 8 10 20"
- borderStyle="solid dashed ridge groove"
- fontSize="24" fontStyle="italic" fontWeight="bold"
- textDecoration="underline">
-
- <button text="A button"/>
- <button text="Another button" y="10%" fontSize="12" color="blue"/>
-
- </panel>
- </xm:append>
- </xm:modifications>
+<xal xmlns="http://www.openxal.org/xal">
+ <xm:modifications xmlns:xm="http://www.openxal.org/xmodify">
+ <xm:append select="/xal">
+ <panel height="10%" width="50%" height="50%"
+ borderColor="#FF0 #F0F #0FF #000" borderWidth="4 8 10 20"
+ borderStyle="solid dashed ridge groove"
+ fontSize="24" fontStyle="italic" fontWeight="bold"
+ textDecoration="underline">
+
+ <button text="A button"/>
+ <button text="Another button" y="10%" fontSize="12" color="blue"/>
+
+ </panel>
+ </xm:append>
+ </xm:modifications>
</xal>
Propchange: incubator/xap/trunk/WebContent/examples/cssStylesExample/index.xal
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/xap/trunk/WebContent/examples/example1/index.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/example1/index.xal?rev=416764&r1=416763&r2=416764&view=diff
==============================================================================
--- incubator/xap/trunk/WebContent/examples/example1/index.xal (original)
+++ incubator/xap/trunk/WebContent/examples/example1/index.xal Fri Jun 23 09:45:22 2006
@@ -1,65 +1,65 @@
-<xal
- xmlns:xal="http://www.openxal.org/xal"
- xmlns:mco="http://www.openxal.org/mco"
- xmlns:macro="http://www.openxal.org/macro"
- xmlns:xm="http://www.openxal.org/xmodify">
-
- <mco:mco id="myMco" src="ExampleMco"/>
-
- <macro:macro id="mymacro">
- <xm:modifications>
- <xm:append select="id('myPanel')">
- <xal:button text="A new button from a macro" y="60%"/>
- </xm:append>
- </xm:modifications>
- </macro:macro>
-
- <xal:button text="A top button" height="10%" width="100%" tooltipText="<h1>tooltip</h1>"/>
- <splitPane xmlns="http://www.openxal.org/xal" y="10%" width="100%" height="90%" splitPosition="300px">
- <left>
- <tabPane width="100%" height="100%">
- <tab text="Tab&nbsp;1">
- <textField text="Write here, right now." onCreate="mco:myMco.onTextFieldCreationEvent(event)" width="75%"/>
- <!-- The values for document.theButton and document.thetextField are set on
- their respective creations, and are our objects, not the HTML elements.
- -->
- <button text="What's writ?" onCreate="mco:myMco.onButtonCreationEvent(event)"
- backgroundColor="#FFFF00"
- onCommand='javascript:var obj=document.theTextField; if(obj){var s= obj.getAttribute("text");document.theButton.setAttribute("text","Now: \""+s+"\"");alert("Look for a change in the button...");document.theButton.setAttribute("text",s= obj.getAttribute("text"));;} ' y="30px"
- />
- </tab>
- <tab text="Tab&nbsp;2" backgroundColor="#FFFF00">
- <button text="mco event" height="50%" width="100%" onCommand="mco:myMco.onEvent(event)" backgroundColor="#FF0000"/>
- </tab>
- </tabPane>
- </left>
-
- <right>
- <splitPane orientation="vertical" width="100%" height="100%"
- splitPosition="500px">
- <left>
- <panel width="100%" height="100%" id="myPanel">
- <button text="url event" width="100%" height="20%" onCommand="index2.xal"/>
- <button text="macro event" width="100%" y="20%" height="20%" onCommand="macro:mymacro.execute()"/>
- </panel>
- </left>
-
- <right>
- <tree width="100%" height="100%">
- <treeItem text="Item 1"/>
- <treeItem text="Item 2">
- <treeItem text="Item 2.1"/>
- <treeItem text="Item 2.2"/>
- <treeItem text="Item 3">
- <treeItem text="Item 3.1"/>
- <treeItem text="Item 3.2"/>
- </treeItem>
- </treeItem>
- <treeItem text="Item 3"/>
- <treeItem text="Item 4"/>
- </tree>
- </right>
- </splitPane>
- </right>
- </splitPane>
+<xal
+ xmlns:xal="http://www.openxal.org/xal"
+ xmlns:mco="http://www.openxal.org/mco"
+ xmlns:macro="http://www.openxal.org/macro"
+ xmlns:xm="http://www.openxal.org/xmodify">
+
+ <mco:mco id="myMco" src="ExampleMco"/>
+
+ <macro:macro id="mymacro">
+ <xm:modifications>
+ <xm:append select="id('myPanel')">
+ <xal:button text="A new button from a macro" y="60%"/>
+ </xm:append>
+ </xm:modifications>
+ </macro:macro>
+
+ <xal:button text="A top button" height="10%" width="100%" tooltipText="<h1>tooltip</h1>"/>
+ <splitPane xmlns="http://www.openxal.org/xal" y="10%" width="100%" height="90%" splitPosition="300px">
+ <left>
+ <tabPane width="100%" height="100%">
+ <tab text="Tab&nbsp;1">
+ <textField text="Write here, right now." onCreate="mco:myMco.onTextFieldCreationEvent(event)" width="75%"/>
+ <!-- The values for document.theButton and document.thetextField are set on
+ their respective creations, and are our objects, not the HTML elements.
+ -->
+ <button text="What's writ?" onCreate="mco:myMco.onButtonCreationEvent(event)"
+ backgroundColor="#FFFF00"
+ onCommand='javascript:var obj=document.theTextField; if(obj){var s= obj.getAttribute("text");document.theButton.setAttribute("text","Now: \""+s+"\"");alert("Look for a change in the button...");document.theButton.setAttribute("text",s= obj.getAttribute("text"));;} ' y="30px"
+ />
+ </tab>
+ <tab text="Tab&nbsp;2" backgroundColor="#FFFF00">
+ <button text="mco event" height="50%" width="100%" onCommand="mco:myMco.onEvent(event)" backgroundColor="#FF0000"/>
+ </tab>
+ </tabPane>
+ </left>
+
+ <right>
+ <splitPane orientation="vertical" width="100%" height="100%"
+ splitPosition="500px">
+ <left>
+ <panel width="100%" height="100%" id="myPanel">
+ <button text="url event" width="100%" height="20%" onCommand="index2.xal"/>
+ <button text="macro event" width="100%" y="20%" height="20%" onCommand="macro:mymacro.execute()"/>
+ </panel>
+ </left>
+
+ <right>
+ <tree width="100%" height="100%">
+ <treeItem text="Item 1"/>
+ <treeItem text="Item 2">
+ <treeItem text="Item 2.1"/>
+ <treeItem text="Item 2.2"/>
+ <treeItem text="Item 3">
+ <treeItem text="Item 3.1"/>
+ <treeItem text="Item 3.2"/>
+ </treeItem>
+ </treeItem>
+ <treeItem text="Item 3"/>
+ <treeItem text="Item 4"/>
+ </tree>
+ </right>
+ </splitPane>
+ </right>
+ </splitPane>
</xal>
Propchange: incubator/xap/trunk/WebContent/examples/example1/index.xal
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/xap/trunk/WebContent/examples/example1/index2.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/example1/index2.xal?rev=416764&r1=416763&r2=416764&view=diff
==============================================================================
--- incubator/xap/trunk/WebContent/examples/example1/index2.xal (original)
+++ incubator/xap/trunk/WebContent/examples/example1/index2.xal Fri Jun 23 09:45:22 2006
@@ -1,8 +1,8 @@
-<xal xmlns="http://www.openxal.org/xal">
- <xm:modifications xmlns:xm="http://www.openxal.org/xmodify">
- <xm:append select="id('myPanel')">
- <button text="A new button" y="40%"
- onCommand="javascript:f = function(clientEvent){alert(clientEvent);}"/>
- </xm:append>
- </xm:modifications>
+<xal xmlns="http://www.openxal.org/xal">
+ <xm:modifications xmlns:xm="http://www.openxal.org/xmodify">
+ <xm:append select="id('myPanel')">
+ <button text="A new button" y="40%"
+ onCommand="javascript:f = function(clientEvent){alert(clientEvent);}"/>
+ </xm:append>
+ </xm:modifications>
</xal>
Propchange: incubator/xap/trunk/WebContent/examples/example1/index2.xal
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/xap/trunk/WebContent/examples/example2/addLabel.xm
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/example2/addLabel.xm?rev=416764&r1=416763&r2=416764&view=diff
==============================================================================
--- incubator/xap/trunk/WebContent/examples/example2/addLabel.xm (original)
+++ incubator/xap/trunk/WebContent/examples/example2/addLabel.xm Fri Jun 23 09:45:22 2006
@@ -1,15 +1,15 @@
-<xal xmlns="http://www.openxal.org/xal">
- <xm:modifications xmlns:xm="http://www.openxal.org/xmodify">
- <xm:append select="id('horizontalPanel')">
- <label
- text="(Label added via server XML page.)"
- width="60px"
- height="150px"
- backgroundColor="#F0F0CC"
- border="2px"
- borderColor="#000000"
- valign="middle"
- />
- </xm:append>
- </xm:modifications>
+<xal xmlns="http://www.openxal.org/xal">
+ <xm:modifications xmlns:xm="http://www.openxal.org/xmodify">
+ <xm:append select="id('horizontalPanel')">
+ <label
+ text="(Label added via server XML page.)"
+ width="60px"
+ height="150px"
+ backgroundColor="#F0F0CC"
+ border="2px"
+ borderColor="#000000"
+ valign="middle"
+ />
+ </xm:append>
+ </xm:modifications>
</xal>
Propchange: incubator/xap/trunk/WebContent/examples/example2/addLabel.xm
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/xap/trunk/WebContent/examples/example2/index.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/example2/index.xal?rev=416764&r1=416763&r2=416764&view=diff
==============================================================================
--- incubator/xap/trunk/WebContent/examples/example2/index.xal (original)
+++ incubator/xap/trunk/WebContent/examples/example2/index.xal Fri Jun 23 09:45:22 2006
@@ -1,79 +1,79 @@
-<xal xmlns="http://www.openxal.org/xal">
- <macro:macro id="addLabel" xmlns:macro="http://www.openxal.org/macro">
- <xm:modifications xmlns:xm="http://www.openxal.org/xmodify">
- <xm:append select="id('verticalPanel')">
- <!-- Zimbra labels seem better adapted to arbitrary images than their buttons. -->
- <label image="./label.gif"/>
- </xm:append>
- </xm:modifications>
- </macro:macro>
-
- <xm:modifications xmlns:xm="http://www.openxal.org/xmodify">
- <xm:append select="/xal">
- <splitPane width="100%" height="100%" splitPosition="200px">
- <left>
- <tabPane>
- <tab text="Tab 1">
- <tree width="100%" height="100%">
- <treeItem text="Item 1"/>
- <treeItem text="Item 2">
- <treeItem text="Item 2.1"/>
- <treeItem text="Item 2.2"/>
- <treeItem text="Item 3">
- <treeItem text="Item 3.1"/>
- <treeItem text="Item 3.2"/>
- </treeItem>
- </treeItem>
- <treeItem text="Item 3"/>
- <treeItem text="Item 4"/>
- </tree>
- </tab>
-
- <tab text="Tab 2">
- <button text="Invoke javascript directly:"
- onCommand="javascript:alert('The browser used the JavaScript\n alert()\nfunction to create this alert box.');"/>
- </tab>
- </tabPane>
- </left>
-
- <right>
- <splitPane orientation="vertical" splitPosition="250px">
- <top>
- <horizontalLayoutPanel id="horizontalPanel">
- <label text="(A horizontal layout panel.)" width="100px"/>
- <button text="Append to this panel via XML from the server:" width="100px" height="90%"
- onCommand="addLabel.xm" backgroundColor="#EE6666"
- borderWidth="3px"
- padding="4px"
- />
-
- <horizontalLayoutPanel>
- <button text="Click to replace this button using XML from the server:"
- width="100px" height="90%"
- id="selfReplacingButton"
- onCommand="replaceButton.xm"
- backgroundColor="#66EE66"
- borderWidth="3px"
- padding="4px"
- />
- </horizontalLayoutPanel>
- </horizontalLayoutPanel>
- </top>
-
- <bottom>
- <verticalLayoutPanel id="verticalPanel">
- <label text="(A vertical layout panel.)"/>
- <!-- So far, have to explicitly give width and height to
- fit image within the Zimbra button neatly:
- -->
- <button width="334px" height="68px" image="./macroAppend.gif"
- onCommand="macro:addLabel.execute()" backgroundColor="#AAAACC"/>
- </verticalLayoutPanel>
- </bottom>
- </splitPane>
- </right>
- </splitPane>
-
- </xm:append>
- </xm:modifications>
+<xal xmlns="http://www.openxal.org/xal">
+ <macro:macro id="addLabel" xmlns:macro="http://www.openxal.org/macro">
+ <xm:modifications xmlns:xm="http://www.openxal.org/xmodify">
+ <xm:append select="id('verticalPanel')">
+ <!-- Zimbra labels seem better adapted to arbitrary images than their buttons. -->
+ <label image="./label.gif"/>
+ </xm:append>
+ </xm:modifications>
+ </macro:macro>
+
+ <xm:modifications xmlns:xm="http://www.openxal.org/xmodify">
+ <xm:append select="/xal">
+ <splitPane width="100%" height="100%" splitPosition="200px">
+ <left>
+ <tabPane>
+ <tab text="Tab 1">
+ <tree width="100%" height="100%">
+ <treeItem text="Item 1"/>
+ <treeItem text="Item 2">
+ <treeItem text="Item 2.1"/>
+ <treeItem text="Item 2.2"/>
+ <treeItem text="Item 3">
+ <treeItem text="Item 3.1"/>
+ <treeItem text="Item 3.2"/>
+ </treeItem>
+ </treeItem>
+ <treeItem text="Item 3"/>
+ <treeItem text="Item 4"/>
+ </tree>
+ </tab>
+
+ <tab text="Tab 2">
+ <button text="Invoke javascript directly:"
+ onCommand="javascript:alert('The browser used the JavaScript\n alert()\nfunction to create this alert box.');"/>
+ </tab>
+ </tabPane>
+ </left>
+
+ <right>
+ <splitPane orientation="vertical" splitPosition="250px">
+ <top>
+ <horizontalLayoutPanel id="horizontalPanel">
+ <label text="(A horizontal layout panel.)" width="100px"/>
+ <button text="Append to this panel via XML from the server:" width="100px" height="90%"
+ onCommand="addLabel.xm" backgroundColor="#EE6666"
+ borderWidth="3px"
+ padding="4px"
+ />
+
+ <horizontalLayoutPanel>
+ <button text="Click to replace this button using XML from the server:"
+ width="100px" height="90%"
+ id="selfReplacingButton"
+ onCommand="replaceButton.xm"
+ backgroundColor="#66EE66"
+ borderWidth="3px"
+ padding="4px"
+ />
+ </horizontalLayoutPanel>
+ </horizontalLayoutPanel>
+ </top>
+
+ <bottom>
+ <verticalLayoutPanel id="verticalPanel">
+ <label text="(A vertical layout panel.)"/>
+ <!-- So far, have to explicitly give width and height to
+ fit image within the Zimbra button neatly:
+ -->
+ <button width="334px" height="68px" image="./macroAppend.gif"
+ onCommand="macro:addLabel.execute()" backgroundColor="#AAAACC"/>
+ </verticalLayoutPanel>
+ </bottom>
+ </splitPane>
+ </right>
+ </splitPane>
+
+ </xm:append>
+ </xm:modifications>
</xal>
Propchange: incubator/xap/trunk/WebContent/examples/example2/index.xal
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/xap/trunk/WebContent/examples/example2/replaceButton.xm
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/example2/replaceButton.xm?rev=416764&r1=416763&r2=416764&view=diff
==============================================================================
--- incubator/xap/trunk/WebContent/examples/example2/replaceButton.xm (original)
+++ incubator/xap/trunk/WebContent/examples/example2/replaceButton.xm Fri Jun 23 09:45:22 2006
@@ -1,13 +1,13 @@
-<xal xmlns="http://www.openxal.org/xal">
- <xm:modifications xmlns:xm="http://www.openxal.org/xmodify">
- <xm:replace select="id('selfReplacingButton')">
- <label
- text="(Label that replaced the button that created it.)"
- width="120px"
- height="120px"
- backgroundColor="#44EE55"
- border="5px"
- />
- </xm:replace>
- </xm:modifications>
+<xal xmlns="http://www.openxal.org/xal">
+ <xm:modifications xmlns:xm="http://www.openxal.org/xmodify">
+ <xm:replace select="id('selfReplacingButton')">
+ <label
+ text="(Label that replaced the button that created it.)"
+ width="120px"
+ height="120px"
+ backgroundColor="#44EE55"
+ border="5px"
+ />
+ </xm:replace>
+ </xm:modifications>
</xal>
Propchange: incubator/xap/trunk/WebContent/examples/example2/replaceButton.xm
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/xap/trunk/WebContent/examples/google/index.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/google/index.xal?rev=416764&r1=416763&r2=416764&view=diff
==============================================================================
--- incubator/xap/trunk/WebContent/examples/google/index.xal (original)
+++ incubator/xap/trunk/WebContent/examples/google/index.xal Fri Jun 23 09:45:22 2006
@@ -1,190 +1,190 @@
-<xal xmlns="http://www.openxal.org/xal" xmlns:mco="http://www.openxal.org/mco"
- xmlns:macro="http://www.openxal.org/macro" xmlns:xm="http://www.openxal.org/xmodify">
- <mco:mco id="myMco" src="EventMco"/>
-
- <!--
- This macro will execute a remove modification statement. By doing so it will
- remove all the markers from the gMap. The Macro could be enhanced be selecting
- only the certian set of macro or adding more modification statements.
- -->
- <macro:macro id="removeMarkers">
- <xm:modifications>
- <xm:remove-element select="/xal/splitPane/top/splitPane/right/gMap/markers/marker"/>
- </xm:modifications>
- </macro:macro>
- <!--
- Using percentages in a splitter will not work well in IE, it is better to use a
- pixel value for splitPosition.
- -->
- <splitPane orientation="vertical" splitPosition="430px" width="100%" height="100%">
- <top>
- <splitPane splitPosition="230" width="100%" height="100%">
- <left>
- <tree width="100%" height="100%" onSelect="mco:myMco.onTreeSelect(event)">
- <treeItem text="EMS System - Boston">
- <treeItem text="Fire">
- <treeItem text="District 1">
- <treeItem text="Station 5" latitude="42.37889"
- longitude="-71.030794" icon="fireIcon">
- <treeItem text="Engine 5 (2003 Pierce Enforcer 1250)"
- latitude="42.366661" longitude="-71.0164403"
- icon="fireIcon"/>
- </treeItem>
- <treeItem text="Station 56" latitude="42.387958"
- longitude="-71.003957" icon="fireIcon">
- <treeItem text="Engine 56 (1996 E-One Cyclone II)"
- latitude="42.39652340" longitude="-70.9944677"
- icon="fireIcon"/>
- </treeItem>
- </treeItem>
- <treeItem text="District 4">
- <treeItem text="Station 5" latitude="42.37889"
- longitude="-71.030794" icon="fireIcon">
- <treeItem text="Engine 7 (1999 E-One Cyclone II)"
- latitude="42.38264041147532"
- longitude="-71.0390567779541" icon="fireIcon"/>
- <treeItem
- text="Ladder 17 (2005 Pierce 95' Mid-Mounted Tower)"
- latitude="42.36669337162246"
- longitude="-71.00781440734863" icon="fireIcon"/>
- </treeItem>
- </treeItem>
- <treeItem text="District 6">
- <treeItem text="Station 39" latitude="42.33943"
- longitude="-71.050364" icon="fireIcon">
- <treeItem text="Engine 39 (1993 E-One Protector)"
- latitude="42.34579440248777"
- longitude="-71.04463577270508" icon="fireIcon"/>
- <treeItem text="Ladder 18 (2004 Pierce Dash)"
- latitude="42.33535817353786"
- longitude="-71.02360725402832" icon="fireIcon"/>
- <treeItem text="Comms Unit (1997 Chevy)"
- latitude="42.320255882747"
- longitude="-71.04918479919434" icon="fireIcon"/>
- <treeItem text="H5 Decon (1993 GMC/E-One Decon Unit)"
- latitude="42.31298899314738"
- longitude="-71.07497692108154" icon="fireIcon"/>
- </treeItem>
- </treeItem>
- </treeItem>
- <treeItem text="Hospitals">
- <treeItem text="Massachusetts Eye & Ear Infirmary"
- latitude="42.362076" longitude="-71.070613" icon="hospitalIcon" infoText="<div class="infoText"><a href="http://www.meei.harvard.edu/" target="new">Massachusetts Eye & Ear Infirmary</a><br><br>243 Charles Street<br>Boston<br>(617) 523-7900<p>Third oldest hospital in the United States and the largest in New England. It consistently ranks as one of the country's best hospitals by U.S. News and World Report.</p><br></div>"/>
-
- <treeItem text="Massachusetts General Hospital" latitude="42.362263"
- longitude="-71.069084" icon="hospitalIcon" infoText="<div class="infoText"><a href="http://www.mgh.harvard.edu/" target="new">Massachusetts General Hospital</a><br><br>32 Fruit Street<br>Boston<br>617-523-7900<br></div>"/>
- <treeItem text="Beth Israel Deaconess Medical Center"
- latitude="42.340568" longitude="-71.105257" icon="hospitalIcon" infoText="<div class="infoText"><a href="http://www.bidmc.harvard.edu/sites/bidmc/home.asp" target="new">Beth Israel Deaconess Medical Center</a><br><br>330 Brookline Avenue<br>Boston<br>(617) 667-7000<p>A Harvard University teaching and research hospital witha strong reputation for technical excellence in medicine.</p><br></div>"/>
- <treeItem text="Brigham and Women's Hospital" latitude="42.336196"
- longitude="-71.10776" icon="hospitalIcon" infoText="<div class="infoText"><a href="http://www.brighamandwomens.org/" target="new">Brigham and Women's Hospital</a><br><br>75 Francis Street<br>Boston<br>(617) 732-5500<p>A teaching hospital of Harvard Medical School, named to US News and World Report's Honor Roll of top hospitals.</p><br></div>"/>
- <treeItem text="Caritas Carney Hospital" latitude="42.2787"
- longitude="-71.066114" icon="hospitalIcon" infoText="<div class="infoText"><a href="http://www.carneyhospital.org/home/default.asp" target="new">Caritas Carney Hospital</a><br><br>2100 Dorchester Avenue<br>Boston<br></div>"/>
- <treeItem text="Children's Hospital" latitude="42.337779"
- longitude="-71.105486" icon="hospitalIcon" infoText="<div class="infoText"><a href="http://www.childrenshospital.org/" target="new">Children's Hospital</a><br><br>300 Longwood Avenue<br>Boston<br></div>"/>
- </treeItem>
- <treeItem text="Police">
- <treeItem text="District C-11" latitude="42.297771"
- longitude="-71.059457" icon="policyIcon"/>
- <treeItem text="District C-6" latitude="42.341301"
- longitude="-71.054997" icon="policyIcon"/>
- <treeItem text="District A-1" latitude="42.361704"
- longitude="-71.060281" icon="policyIcon"/>
- <treeItem text="District A-7" latitude="42.371119"
- longitude="-71.038749" icon="policyIcon"/>
- <treeItem text="District D-4" latitude="42.339292"
- longitude="-71.069435" icon="policyIcon"/>
- <treeItem text="District B-2" latitude="42.328605"
- longitude="-71.084094" icon="policyIcon"/>
- <treeItem text="District E-13" latitude="42.309687"
- longitude="-71.104541" icon="policyIcon"/>
- <treeItem text="District B-3" latitude="42.284812"
- longitude="-71.091567" icon="policyIcon"/>
- <treeItem text="District E-5" latitude="42.286963"
- longitude="-71.148511" icon="policyIcon"/>
- <treeItem text="District E-18" latitude="42.256474"
- longitude="-71.124132" icon="policyIcon"/>
- </treeItem>
- </treeItem>
- </tree>
- </left>
- <right>
- <!--
- Google maps tag uses the XAP extension points to allow developers to plugin
- any 3rd party or home grown AJAX widgets and use them interchangeably.
- -->
- <gMap xmlns="http://www.google.com" id="googleMap" center="42.37889, -71.030794" zoom="12" mapControl="large"
- zoomControl="false" mapTypeControl="true" scaleControl="false"
- mapType="G_NORMAL_MAP" onClick="mco:myMco.onMapClick(event)">
- <infoWindow latitude="42.37889"
- longitude="-71.030794"><![CDATA[This application demonstrates the plugin architecture; this allows developers to create XML syntax that can than be used within applications. In this application an XML tag called "gMap" is used to allow very simple integration with a third party component.]]></infoWindow>
- <icons>
- <icon image="images/icon_fire.png" size="12,20" shadowSize="22,20"
- iconAnchor="6,20" infoWindowAnchor="5,1" id="fireIcon"/>
- <icon image="images/icon_police.png" size="12,20" shadowSize="22,20"
- iconAnchor="6,20" infoWindowAnchor="5,1" id="policyIcon"/>
- <icon image="images/icon_hospital.png" size="12,20" shadowSize="22,20"
- iconAnchor="6,20" infoWindowAnchor="5,1" id="hospitalIcon"/>
- <icon image="images/pflag.png" size="12,20" shadowSize="22,20"
- iconAnchor="6,20" infoWindowAnchor="5,1" id="aFlagIcon"/>
- <icon image="images/dflag.png" size="12,20" shadowSize="22,20"
- iconAnchor="6,20" infoWindowAnchor="5,1" id="dFlagIcon"/>
- </icons>
- <markers id="googleMapMarkers">
- <!--
- Sample marker for the To add a marker by default uncomment the snippet of
- XML you can add any html you want to the marker and it will show up
- in a popup bubble when the marker is clicked.
-
- <marker latitude="37.4419" longitude="-90.1419">
- <![CDATA[
- <ul><li>james</li>
- <li>Bob</li>
- <li>Rob</li>
- </ul>
- ]]>
- </marker>
-
- -->
- </markers>
- </gMap>
- </right>
- </splitPane>
- </top>
- <bottom>
- <textView><![CDATA[<div style="valign:top; background-color: #EEEEEE; width: 100%; height: 100%">
- <table width="100%" height="100%" valign="top" cellPadding="" cellSpacing="10">
- <tr valign="top"><td valign="top" width="420px" style="background-color:#BBBBBB">
- <table width="400px" cellpadding="2" cellspacing="0" border="0">
- <tr><td colspan="2">
- <h1>Enter new emergency call:</h1><hr style="color:#ffffff; width:100%">
- </td></tr>
- <tr><td class="fieldName">Caller name:</td><td><input type="text" id="patient" style="width:100%"></td></tr>
- <tr height="20px">
- <td class="fieldName" height="20px">Pickup</td>
- <td height="20px"><input style="width:100%; height:20px" type="text" id="pickup" value="Click map to fill in pickup point" onfocus="setClickState('pickup');"></td>
- </tr><tr height="20px">
- <td class="fieldName">Destination</td>
- <td><input style="width:100%;" type="text" id="destination" onfocus="setClickState('destination');"></td>
- </tr>
- <tr><td colspan="2" align="right"><input type="submit" value="Create Call" onclick="handleCreateCall();"><input type="submit" value="Clear Form" onclick="handleClearForm();"></td></tr>
- </table>
- </td><td valign="top" align="left" style="background-color:#BBBBBB">
- <table width="100%">
- <tr><td>
- <table width="100%" align="left" border="0">
- <tr><td colspan="3"><h1>Last five calls:</h1><hr style="color:#ffffff; width:100%"></td></tr>
- </table>
- </td></tr>
- <tr><td>
- <div id="callLog" style="width:100%; height:100%;"> </div>
- </td></tr>
- </table>
- </td></tr>
- <tr><td colspan="2" style="background-color:#BBBBBB;"><span><div id="infoBox" style="margin-left:10px">Click tree to change show location of items.</div>
- <div align="right" id="key"><img src="images/icon_fire.png"><b>Fire Department</b> <img src="images/icon_police.png"><b>Police Department</b> <img src="images/icon_hospital.png"><b>Hospitals</b></div></span><td></tr>
- </table>
- </div>]]>
- </textView>
- </bottom>
- </splitPane>
-</xal>
+<xal xmlns="http://www.openxal.org/xal" xmlns:mco="http://www.openxal.org/mco"
+ xmlns:macro="http://www.openxal.org/macro" xmlns:xm="http://www.openxal.org/xmodify">
+ <mco:mco id="myMco" src="EventMco"/>
+
+ <!--
+ This macro will execute a remove modification statement. By doing so it will
+ remove all the markers from the gMap. The Macro could be enhanced be selecting
+ only the certian set of macro or adding more modification statements.
+ -->
+ <macro:macro id="removeMarkers">
+ <xm:modifications>
+ <xm:remove-element select="/xal/splitPane/top/splitPane/right/gMap/markers/marker"/>
+ </xm:modifications>
+ </macro:macro>
+ <!--
+ Using percentages in a splitter will not work well in IE, it is better to use a
+ pixel value for splitPosition.
+ -->
+ <splitPane orientation="vertical" splitPosition="430px" width="100%" height="100%">
+ <top>
+ <splitPane splitPosition="230" width="100%" height="100%">
+ <left>
+ <tree width="100%" height="100%" onSelect="mco:myMco.onTreeSelect(event)">
+ <treeItem text="EMS System - Boston">
+ <treeItem text="Fire">
+ <treeItem text="District 1">
+ <treeItem text="Station 5" latitude="42.37889"
+ longitude="-71.030794" icon="fireIcon">
+ <treeItem text="Engine 5 (2003 Pierce Enforcer 1250)"
+ latitude="42.366661" longitude="-71.0164403"
+ icon="fireIcon"/>
+ </treeItem>
+ <treeItem text="Station 56" latitude="42.387958"
+ longitude="-71.003957" icon="fireIcon">
+ <treeItem text="Engine 56 (1996 E-One Cyclone II)"
+ latitude="42.39652340" longitude="-70.9944677"
+ icon="fireIcon"/>
+ </treeItem>
+ </treeItem>
+ <treeItem text="District 4">
+ <treeItem text="Station 5" latitude="42.37889"
+ longitude="-71.030794" icon="fireIcon">
+ <treeItem text="Engine 7 (1999 E-One Cyclone II)"
+ latitude="42.38264041147532"
+ longitude="-71.0390567779541" icon="fireIcon"/>
+ <treeItem
+ text="Ladder 17 (2005 Pierce 95' Mid-Mounted Tower)"
+ latitude="42.36669337162246"
+ longitude="-71.00781440734863" icon="fireIcon"/>
+ </treeItem>
+ </treeItem>
+ <treeItem text="District 6">
+ <treeItem text="Station 39" latitude="42.33943"
+ longitude="-71.050364" icon="fireIcon">
+ <treeItem text="Engine 39 (1993 E-One Protector)"
+ latitude="42.34579440248777"
+ longitude="-71.04463577270508" icon="fireIcon"/>
+ <treeItem text="Ladder 18 (2004 Pierce Dash)"
+ latitude="42.33535817353786"
+ longitude="-71.02360725402832" icon="fireIcon"/>
+ <treeItem text="Comms Unit (1997 Chevy)"
+ latitude="42.320255882747"
+ longitude="-71.04918479919434" icon="fireIcon"/>
+ <treeItem text="H5 Decon (1993 GMC/E-One Decon Unit)"
+ latitude="42.31298899314738"
+ longitude="-71.07497692108154" icon="fireIcon"/>
+ </treeItem>
+ </treeItem>
+ </treeItem>
+ <treeItem text="Hospitals">
+ <treeItem text="Massachusetts Eye & Ear Infirmary"
+ latitude="42.362076" longitude="-71.070613" icon="hospitalIcon" infoText="<div class="infoText"><a href="http://www.meei.harvard.edu/" target="new">Massachusetts Eye & Ear Infirmary</a><br><br>243 Charles Street<br>Boston<br>(617) 523-7900<p>Third oldest hospital in the United States and the largest in New England. It consistently ranks as one of the country's best hospitals by U.S. News and World Report.</p><br></div>"/>
+
+ <treeItem text="Massachusetts General Hospital" latitude="42.362263"
+ longitude="-71.069084" icon="hospitalIcon" infoText="<div class="infoText"><a href="http://www.mgh.harvard.edu/" target="new">Massachusetts General Hospital</a><br><br>32 Fruit Street<br>Boston<br>617-523-7900<br></div>"/>
+ <treeItem text="Beth Israel Deaconess Medical Center"
+ latitude="42.340568" longitude="-71.105257" icon="hospitalIcon" infoText="<div class="infoText"><a href="http://www.bidmc.harvard.edu/sites/bidmc/home.asp" target="new">Beth Israel Deaconess Medical Center</a><br><br>330 Brookline Avenue<br>Boston<br>(617) 667-7000<p>A Harvard University teaching and research hospital witha strong reputation for technical excellence in medicine.</p><br></div>"/>
+ <treeItem text="Brigham and Women's Hospital" latitude="42.336196"
+ longitude="-71.10776" icon="hospitalIcon" infoText="<div class="infoText"><a href="http://www.brighamandwomens.org/" target="new">Brigham and Women's Hospital</a><br><br>75 Francis Street<br>Boston<br>(617) 732-5500<p>A teaching hospital of Harvard Medical School, named to US News and World Report's Honor Roll of top hospitals.</p><br></div>"/>
+ <treeItem text="Caritas Carney Hospital" latitude="42.2787"
+ longitude="-71.066114" icon="hospitalIcon" infoText="<div class="infoText"><a href="http://www.carneyhospital.org/home/default.asp" target="new">Caritas Carney Hospital</a><br><br>2100 Dorchester Avenue<br>Boston<br></div>"/>
+ <treeItem text="Children's Hospital" latitude="42.337779"
+ longitude="-71.105486" icon="hospitalIcon" infoText="<div class="infoText"><a href="http://www.childrenshospital.org/" target="new">Children's Hospital</a><br><br>300 Longwood Avenue<br>Boston<br></div>"/>
+ </treeItem>
+ <treeItem text="Police">
+ <treeItem text="District C-11" latitude="42.297771"
+ longitude="-71.059457" icon="policyIcon"/>
+ <treeItem text="District C-6" latitude="42.341301"
+ longitude="-71.054997" icon="policyIcon"/>
+ <treeItem text="District A-1" latitude="42.361704"
+ longitude="-71.060281" icon="policyIcon"/>
+ <treeItem text="District A-7" latitude="42.371119"
+ longitude="-71.038749" icon="policyIcon"/>
+ <treeItem text="District D-4" latitude="42.339292"
+ longitude="-71.069435" icon="policyIcon"/>
+ <treeItem text="District B-2" latitude="42.328605"
+ longitude="-71.084094" icon="policyIcon"/>
+ <treeItem text="District E-13" latitude="42.309687"
+ longitude="-71.104541" icon="policyIcon"/>
+ <treeItem text="District B-3" latitude="42.284812"
+ longitude="-71.091567" icon="policyIcon"/>
+ <treeItem text="District E-5" latitude="42.286963"
+ longitude="-71.148511" icon="policyIcon"/>
+ <treeItem text="District E-18" latitude="42.256474"
+ longitude="-71.124132" icon="policyIcon"/>
+ </treeItem>
+ </treeItem>
+ </tree>
+ </left>
+ <right>
+ <!--
+ Google maps tag uses the XAP extension points to allow developers to plugin
+ any 3rd party or home grown AJAX widgets and use them interchangeably.
+ -->
+ <gMap xmlns="http://www.google.com" id="googleMap" center="42.37889, -71.030794" zoom="12" mapControl="large"
+ zoomControl="false" mapTypeControl="true" scaleControl="false"
+ mapType="G_NORMAL_MAP" onClick="mco:myMco.onMapClick(event)">
+ <infoWindow latitude="42.37889"
+ longitude="-71.030794"><![CDATA[This application demonstrates the plugin architecture; this allows developers to create XML syntax that can than be used within applications. In this application an XML tag called "gMap" is used to allow very simple integration with a third party component.]]></infoWindow>
+ <icons>
+ <icon image="images/icon_fire.png" size="12,20" shadowSize="22,20"
+ iconAnchor="6,20" infoWindowAnchor="5,1" id="fireIcon"/>
+ <icon image="images/icon_police.png" size="12,20" shadowSize="22,20"
+ iconAnchor="6,20" infoWindowAnchor="5,1" id="policyIcon"/>
+ <icon image="images/icon_hospital.png" size="12,20" shadowSize="22,20"
+ iconAnchor="6,20" infoWindowAnchor="5,1" id="hospitalIcon"/>
+ <icon image="images/pflag.png" size="12,20" shadowSize="22,20"
+ iconAnchor="6,20" infoWindowAnchor="5,1" id="aFlagIcon"/>
+ <icon image="images/dflag.png" size="12,20" shadowSize="22,20"
+ iconAnchor="6,20" infoWindowAnchor="5,1" id="dFlagIcon"/>
+ </icons>
+ <markers id="googleMapMarkers">
+ <!--
+ Sample marker for the To add a marker by default uncomment the snippet of
+ XML you can add any html you want to the marker and it will show up
+ in a popup bubble when the marker is clicked.
+
+ <marker latitude="37.4419" longitude="-90.1419">
+ <![CDATA[
+ <ul><li>james</li>
+ <li>Bob</li>
+ <li>Rob</li>
+ </ul>
+ ]]>
+ </marker>
+
+ -->
+ </markers>
+ </gMap>
+ </right>
+ </splitPane>
+ </top>
+ <bottom>
+ <textView><![CDATA[<div style="valign:top; background-color: #EEEEEE; width: 100%; height: 100%">
+ <table width="100%" height="100%" valign="top" cellPadding="" cellSpacing="10">
+ <tr valign="top"><td valign="top" width="420px" style="background-color:#BBBBBB">
+ <table width="400px" cellpadding="2" cellspacing="0" border="0">
+ <tr><td colspan="2">
+ <h1>Enter new emergency call:</h1><hr style="color:#ffffff; width:100%">
+ </td></tr>
+ <tr><td class="fieldName">Caller name:</td><td><input type="text" id="patient" style="width:100%"></td></tr>
+ <tr height="20px">
+ <td class="fieldName" height="20px">Pickup</td>
+ <td height="20px"><input style="width:100%; height:20px" type="text" id="pickup" value="Click map to fill in pickup point" onfocus="setClickState('pickup');"></td>
+ </tr><tr height="20px">
+ <td class="fieldName">Destination</td>
+ <td><input style="width:100%;" type="text" id="destination" onfocus="setClickState('destination');"></td>
+ </tr>
+ <tr><td colspan="2" align="right"><input type="submit" value="Create Call" onclick="handleCreateCall();"><input type="submit" value="Clear Form" onclick="handleClearForm();"></td></tr>
+ </table>
+ </td><td valign="top" align="left" style="background-color:#BBBBBB">
+ <table width="100%">
+ <tr><td>
+ <table width="100%" align="left" border="0">
+ <tr><td colspan="3"><h1>Last five calls:</h1><hr style="color:#ffffff; width:100%"></td></tr>
+ </table>
+ </td></tr>
+ <tr><td>
+ <div id="callLog" style="width:100%; height:100%;"> </div>
+ </td></tr>
+ </table>
+ </td></tr>
+ <tr><td colspan="2" style="background-color:#BBBBBB;"><span><div id="infoBox" style="margin-left:10px">Click tree to change show location of items.</div>
+ <div align="right" id="key"><img src="images/icon_fire.png"><b>Fire Department</b> <img src="images/icon_police.png"><b>Police Department</b> <img src="images/icon_hospital.png"><b>Hospitals</b></div></span><td></tr>
+ </table>
+ </div>]]>
+ </textView>
+ </bottom>
+ </splitPane>
+</xal>
Propchange: incubator/xap/trunk/WebContent/examples/google/index.xal
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/xap/trunk/WebContent/examples/helloWorld/index.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/helloWorld/index.xal?rev=416764&r1=416763&r2=416764&view=diff
==============================================================================
--- incubator/xap/trunk/WebContent/examples/helloWorld/index.xal (original)
+++ incubator/xap/trunk/WebContent/examples/helloWorld/index.xal Fri Jun 23 09:45:22 2006
@@ -1,5 +1,5 @@
-<xal xmlns="http://www.openxal.org/xal">
-
-<label text="Hello world!" width="100%" height="100%"/>
-
+<xal xmlns="http://www.openxal.org/xal">
+
+<label text="Hello world!" width="100%" height="100%"/>
+
</xal>
Propchange: incubator/xap/trunk/WebContent/examples/helloWorld/index.xal
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/xap/trunk/WebContent/examples/inline-javascript/index.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/inline-javascript/index.xal?rev=416764&r1=416763&r2=416764&view=diff
==============================================================================
--- incubator/xap/trunk/WebContent/examples/inline-javascript/index.xal (original)
+++ incubator/xap/trunk/WebContent/examples/inline-javascript/index.xal Fri Jun 23 09:45:22 2006
@@ -1,6 +1,6 @@
-<xal xmlns="http://www.openxal.org/xal">
-
-<label text="Click the following button to execute some inline JavaScript" height="25" width="200"/>
-<button text="Click me" onCommand="javascript:alert('This is some inline JavaScript')" y="75" height="35" width="200"/>
-
+<xal xmlns="http://www.openxal.org/xal">
+
+<label text="Click the following button to execute some inline JavaScript" height="25" width="200"/>
+<button text="Click me" onCommand="javascript:alert('This is some inline JavaScript')" y="75" height="35" width="200"/>
+
</xal>
Propchange: incubator/xap/trunk/WebContent/examples/inline-javascript/index.xal
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/xap/trunk/WebContent/examples/layout/index.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/layout/index.xal?rev=416764&r1=416763&r2=416764&view=diff
==============================================================================
--- incubator/xap/trunk/WebContent/examples/layout/index.xal (original)
+++ incubator/xap/trunk/WebContent/examples/layout/index.xal Fri Jun 23 09:45:22 2006
@@ -1,21 +1,21 @@
-<xal xmlns="http://www.openxal.org/xal">
- <xm:modifications xmlns:xm="http://www.openxal.org/xmodify">
- <xm:append select="/xal">
- <verticalLayoutPanel width="100%" height="100%">
-
- <horizontalLayoutPanel backgroundColor="red">
- <button text="button 1"/>
- <button text="button 2" height="200px"/>
- <button text="button 3"/>
- </horizontalLayoutPanel>
-
- <horizontalLayoutPanel backgroundColor="green">
- <button text="button 1"/>
- <button text="button 2"/>
- <button text="button 3"/>
- </horizontalLayoutPanel>
-
- </verticalLayoutPanel>
- </xm:append>
- </xm:modifications>
+<xal xmlns="http://www.openxal.org/xal">
+ <xm:modifications xmlns:xm="http://www.openxal.org/xmodify">
+ <xm:append select="/xal">
+ <verticalLayoutPanel width="100%" height="100%">
+
+ <horizontalLayoutPanel backgroundColor="red">
+ <button text="button 1"/>
+ <button text="button 2" height="200px"/>
+ <button text="button 3"/>
+ </horizontalLayoutPanel>
+
+ <horizontalLayoutPanel backgroundColor="green">
+ <button text="button 1"/>
+ <button text="button 2"/>
+ <button text="button 3"/>
+ </horizontalLayoutPanel>
+
+ </verticalLayoutPanel>
+ </xm:append>
+ </xm:modifications>
</xal>
Propchange: incubator/xap/trunk/WebContent/examples/layout/index.xal
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/xap/trunk/WebContent/examples/panel/index.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/panel/index.xal?rev=416764&r1=416763&r2=416764&view=diff
==============================================================================
--- incubator/xap/trunk/WebContent/examples/panel/index.xal (original)
+++ incubator/xap/trunk/WebContent/examples/panel/index.xal Fri Jun 23 09:45:22 2006
@@ -1,12 +1,12 @@
-<xal xmlns="http://www.openxal.org/xal">
-
- <xm:modifications xmlns:xm="http://www.openxal.org/xmodify">
- <xm:append select="/xal">
- <panel width="225px" height="125px" borderColor="#ccc" borderStyle="solid" margin="25px,25px,25px,25px">
- <label text="This label is in a panel" width="200px" height="35px"/>
- <button text="So is this button" width="200px" height="35px" y="50px" margin="0,0,0,5px"/>
- </panel>
- </xm:append>
- </xm:modifications>
-
+<xal xmlns="http://www.openxal.org/xal">
+
+ <xm:modifications xmlns:xm="http://www.openxal.org/xmodify">
+ <xm:append select="/xal">
+ <panel width="225px" height="125px" borderColor="#ccc" borderStyle="solid" margin="25px,25px,25px,25px">
+ <label text="This label is in a panel" width="200px" height="35px"/>
+ <button text="So is this button" width="200px" height="35px" y="50px" margin="0,0,0,5px"/>
+ </panel>
+ </xm:append>
+ </xm:modifications>
+
</xal>
Propchange: incubator/xap/trunk/WebContent/examples/panel/index.xal
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/xap/trunk/WebContent/examples/serverside-handler/hello-world.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/serverside-handler/hello-world.xal?rev=416764&r1=416763&r2=416764&view=diff
==============================================================================
--- incubator/xap/trunk/WebContent/examples/serverside-handler/hello-world.xal (original)
+++ incubator/xap/trunk/WebContent/examples/serverside-handler/hello-world.xal Fri Jun 23 09:45:22 2006
@@ -1,12 +1,12 @@
-<xal xmlns="http://www.openxal.org/xal">
-
-<mco:mco xmlns:mco="http://www.openxal.org/mco" id="handler" src="MyHandler"/>
-
-<!-- modify the existing dom to add the new label -->
-<xm:modifications xmlns:xm="http://www.openxal.org/xmodify">
- <xm:append select="/xal">
- <label text="Hello from the serverside! " width="200px" height="25px" y="205px"/>
- </xm:append>
-</xm:modifications>
-
+<xal xmlns="http://www.openxal.org/xal">
+
+<mco:mco xmlns:mco="http://www.openxal.org/mco" id="handler" src="MyHandler"/>
+
+<!-- modify the existing dom to add the new label -->
+<xm:modifications xmlns:xm="http://www.openxal.org/xmodify">
+ <xm:append select="/xal">
+ <label text="Hello from the serverside! " width="200px" height="25px" y="205px"/>
+ </xm:append>
+</xm:modifications>
+
</xal>
Propchange: incubator/xap/trunk/WebContent/examples/serverside-handler/hello-world.xal
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/xap/trunk/WebContent/examples/serverside-handler/index.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/serverside-handler/index.xal?rev=416764&r1=416763&r2=416764&view=diff
==============================================================================
--- incubator/xap/trunk/WebContent/examples/serverside-handler/index.xal (original)
+++ incubator/xap/trunk/WebContent/examples/serverside-handler/index.xal Fri Jun 23 09:45:22 2006
@@ -1,10 +1,10 @@
-<xal xmlns="http://www.openxal.org/xal">
-
- <mco:mco xmlns:mco="http://www.openxal.org/mco" id="handler" src="MyHandler"/>
-
- <label text="Retrieve a file from the server: " height="50" width="200"/>
- <button text="Retrieve" onCommand="mco:handler.onRetrieve(event)" height="25" width="200" y="55"/>
- <label text="Retrieve and process a file from the server: " height="50" width="200" y="105"/>
- <button text="Retrieve And Process" onCommand="mco:handler.onRetrieveAndProcess(event)" height="25" width="200" y="155"/>
-
+<xal xmlns="http://www.openxal.org/xal">
+
+ <mco:mco xmlns:mco="http://www.openxal.org/mco" id="handler" src="MyHandler"/>
+
+ <label text="Retrieve a file from the server: " height="50" width="200"/>
+ <button text="Retrieve" onCommand="mco:handler.onRetrieve(event)" height="25" width="200" y="55"/>
+ <label text="Retrieve and process a file from the server: " height="50" width="200" y="105"/>
+ <button text="Retrieve And Process" onCommand="mco:handler.onRetrieveAndProcess(event)" height="25" width="200" y="155"/>
+
</xal>
Propchange: incubator/xap/trunk/WebContent/examples/serverside-handler/index.xal
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/xap/trunk/WebContent/examples/split-pane/index.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/split-pane/index.xal?rev=416764&r1=416763&r2=416764&view=diff
==============================================================================
--- incubator/xap/trunk/WebContent/examples/split-pane/index.xal (original)
+++ incubator/xap/trunk/WebContent/examples/split-pane/index.xal Fri Jun 23 09:45:22 2006
@@ -1,19 +1,19 @@
-<xal xmlns="http://www.openxal.org/xal">
-
-<splitPane width="100%" height="100%">
- <left>
- <label text="The left pane"/>
- </left>
- <right>
- <splitPane orientation="vertical">
- <top>
- <label text="The top pane in a nested vertical split pane"/>
- </top>
- <bottom>
- <label text="The bottom pane in a nested vertical split pane"/>
- </bottom>
- </splitPane>
- </right>
-</splitPane>
-
+<xal xmlns="http://www.openxal.org/xal">
+
+<splitPane width="100%" height="100%">
+ <left>
+ <label text="The left pane"/>
+ </left>
+ <right>
+ <splitPane orientation="vertical">
+ <top>
+ <label text="The top pane in a nested vertical split pane"/>
+ </top>
+ <bottom>
+ <label text="The bottom pane in a nested vertical split pane"/>
+ </bottom>
+ </splitPane>
+ </right>
+</splitPane>
+
</xal>
Propchange: incubator/xap/trunk/WebContent/examples/split-pane/index.xal
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/xap/trunk/WebContent/examples/tab-pane/index.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/tab-pane/index.xal?rev=416764&r1=416763&r2=416764&view=diff
==============================================================================
--- incubator/xap/trunk/WebContent/examples/tab-pane/index.xal (original)
+++ incubator/xap/trunk/WebContent/examples/tab-pane/index.xal Fri Jun 23 09:45:22 2006
@@ -1,15 +1,15 @@
-<xal xmlns="http://www.openxal.org/xal">
-
-<tabPane>
- <tab text="Sales">
- <label text="Increase sales"/>
- </tab>
- <tab text="Marketing">
- <label text="Expand our marketplace"/>
- </tab>
- <tab text="Development">
- <label text="Write less code" />
- </tab>
-</tabPane>
-
+<xal xmlns="http://www.openxal.org/xal">
+
+<tabPane>
+ <tab text="Sales">
+ <label text="Increase sales"/>
+ </tab>
+ <tab text="Marketing">
+ <label text="Expand our marketplace"/>
+ </tab>
+ <tab text="Development">
+ <label text="Write less code" />
+ </tab>
+</tabPane>
+
</xal>
Propchange: incubator/xap/trunk/WebContent/examples/tab-pane/index.xal
------------------------------------------------------------------------------
svn:eol-style = native