You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by gb...@apache.org on 2009/04/01 17:28:09 UTC

svn commit: r760921 - in /incubator/pivot/trunk: build.xml demos/src/pivot/demos/dom/dom_test.html demos/src/pivot/demos/dom/im_client.html demos/src/pivot/demos/dom/im_client.wtkx

Author: gbrown
Date: Wed Apr  1 15:28:08 2009
New Revision: 760921

URL: http://svn.apache.org/viewvc?rev=760921&view=rev
Log:
Add HTML samples to deploy target.

Modified:
    incubator/pivot/trunk/build.xml
    incubator/pivot/trunk/demos/src/pivot/demos/dom/dom_test.html
    incubator/pivot/trunk/demos/src/pivot/demos/dom/im_client.html
    incubator/pivot/trunk/demos/src/pivot/demos/dom/im_client.wtkx

Modified: incubator/pivot/trunk/build.xml
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/build.xml?rev=760921&r1=760920&r2=760921&view=diff
==============================================================================
--- incubator/pivot/trunk/build.xml (original)
+++ incubator/pivot/trunk/build.xml Wed Apr  1 15:28:08 2009
@@ -725,6 +725,8 @@
         <!-- Demos -->
         <copy file="${folder.lib}/${ant.project.name}-charts.test.jar" todir="${folder.deploy}"/>
         <copy file="${folder.lib}/${ant.project.name}-demos.jar" todir="${folder.deploy}"/>
+        <copy file="demos/src/pivot/demos/dom/dom_test.html" todir="${folder.deploy}"/>
+        <copy file="demos/src/pivot/demos/dom/im_client.html" todir="${folder.deploy}"/>
         <signjar jar="${folder.deploy}/${ant.project.name}-demos.jar" signedjar="${folder.deploy}/${ant.project.name}-demos.signed.jar"
             keystore="${keystore.location}" storepass="${keystore.passwd}" alias="${keystore.alias}"/>
 

Modified: incubator/pivot/trunk/demos/src/pivot/demos/dom/dom_test.html
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/src/pivot/demos/dom/dom_test.html?rev=760921&r1=760920&r2=760921&view=diff
==============================================================================
--- incubator/pivot/trunk/demos/src/pivot/demos/dom/dom_test.html (original)
+++ incubator/pivot/trunk/demos/src/pivot/demos/dom/dom_test.html Wed Apr  1 15:28:08 2009
@@ -0,0 +1,38 @@
+<html>
+<head>
+<title>DOM Test</title>
+<script>
+// This function will be called by Pivot
+function sayHello(helloText) {
+    alert(helloText);
+}
+
+// This function will call into Pivot
+function onHelloButtonClick() {
+    var domTestApplet = document.getElementById("domTestApplet");
+    domTestApplet.getApplication().sayHello("Hello from JavaScript!");
+}
+</script>
+</head>
+
+<body>
+<table>
+<tr>
+<td style="text-align:center; border:solid 1px #999999">
+<applet id="domTestApplet"
+    code="pivot.wtk.BrowserApplicationContext$HostApplet"
+    archive="pivot-core.jar,pivot-wtk.jar,pivot-wtk.terra.jar,pivot-demos.jar,stax-api-1.0.jar,stax-1.2.0.jar"
+    width="380" height="240">
+    <param name="applicationClassName" value="pivot.demos.dom.DOMTest">
+    <param name="image" value="">
+</applet>
+</td>
+</tr>
+<tr>
+<td style="text-align:center; border:solid 1px #999999">
+<button onclick="onHelloButtonClick()">Say Hello</button>
+</td>
+</tr>
+</table>
+</body>
+</html>

Modified: incubator/pivot/trunk/demos/src/pivot/demos/dom/im_client.html
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/src/pivot/demos/dom/im_client.html?rev=760921&r1=760920&r2=760921&view=diff
==============================================================================
--- incubator/pivot/trunk/demos/src/pivot/demos/dom/im_client.html (original)
+++ incubator/pivot/trunk/demos/src/pivot/demos/dom/im_client.html Wed Apr  1 15:28:08 2009
@@ -0,0 +1,27 @@
+<html>
+<head>
+<title>IM Client Demo</title>
+<script>
+// This function will be called by Pivot
+function messageReceived(body) {
+    var messageDiv = document.getElementById("messageDiv");
+    var p = document.createElement("p");
+    var date = new Date();
+    p.appendChild(document.createTextNode(date + ": " + body));
+    messageDiv.appendChild(p);
+}
+</script>
+</head>
+
+<body style="font-family:Verdana; font-size:11px">
+<applet code="pivot.wtk.BrowserApplicationContext$HostApplet"
+    archive="pivot-core.signed.jar,pivot-wtk.signed.jar,pivot-wtk.terra.signed.jar,pivot-demos.signed.jar,stax-api-1.0.signed.jar,stax-1.2.0.signed.jar,smack.signed.jar,smackx.signed.jar"
+    width="320" height="240">
+    <param name="applicationClassName" value="pivot.demos.dom.IMClient">
+    <param name="image" value="">
+</applet>
+<hr>
+<div id="messageDiv">
+</div>
+</body>
+</html>

Modified: incubator/pivot/trunk/demos/src/pivot/demos/dom/im_client.wtkx
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/src/pivot/demos/dom/im_client.wtkx?rev=760921&r1=760920&r2=760921&view=diff
==============================================================================
--- incubator/pivot/trunk/demos/src/pivot/demos/dom/im_client.wtkx (original)
+++ incubator/pivot/trunk/demos/src/pivot/demos/dom/im_client.wtkx Wed Apr  1 15:28:08 2009
@@ -34,7 +34,7 @@
                 </sections>
             </Form>
 
-            <Border title="Messages" styles="{padding:4}">
+            <Border title="Messages" styles="{padding:4, color:10}">
                 <content>
                     <Label wtkx:id="messageLabel" styles="{horizontalAlignment:'center', verticalAlignment:'center', wrapText:true}"/>
                 </content>