[jbpm-commits] JBoss JBPM SVN: r1763 - in jbossbpm/impl/jbpm3/trunk/modules/gwt-console: war and 8 other directories.

do-not-reply at jboss.org do-not-reply at jboss.org
Wed Jul 30 03:40:56 EDT 2008


Author: heiko.braun at jboss.com
Date: 2008-07-30 03:40:56 -0400 (Wed, 30 Jul 2008)
New Revision: 1763

Added:
   jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/
   jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/Application.java
   jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/
   jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/SampleImageBundle.java
   jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/resources/org/jboss/bpm/console/
   jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/resources/org/jboss/bpm/console/Application.gwt.xml
   jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/resources/org/jboss/bpm/console/public/
   jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/resources/org/jboss/bpm/console/public/Application.html
   jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/resources/org/jboss/bpm/console/public/images/
   jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/resources/org/jboss/bpm/console/public/images/gwt-logo.png
   jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/resources/org/jboss/bpm/console/public/styles/
   jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/resources/org/jboss/bpm/console/public/styles/sample.css
Removed:
   jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/samples/
   jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/resources/org/jboss/bpm/samples/
Modified:
   jbossbpm/impl/jbpm3/trunk/modules/gwt-console/pom.xml
   jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/pom.xml
Log:
Change package names

Modified: jbossbpm/impl/jbpm3/trunk/modules/gwt-console/pom.xml
===================================================================
--- jbossbpm/impl/jbpm3/trunk/modules/gwt-console/pom.xml	2008-07-30 07:16:33 UTC (rev 1762)
+++ jbossbpm/impl/jbpm3/trunk/modules/gwt-console/pom.xml	2008-07-30 07:40:56 UTC (rev 1763)
@@ -1,17 +1,17 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
   <modelVersion>4.0.0</modelVersion>
-  <name>JBossBPM - Spec Samples Airticket</name>
+  <name>JBossBPM - GWT Console</name>
   <groupId>org.jboss.bpm</groupId>
-  <artifactId>bpm-sample-airticket</artifactId>
+  <artifactId>gwt-console</artifactId>
   <packaging>pom</packaging>
-
-  <!-- Parent -->
+
+  <!-- Parent -->  
   <parent>
-    <groupId>org.jboss.bpm</groupId>
-    <artifactId>bpm-spec</artifactId>
-    <version>1.0.0-SNAPSHOT</version>
-    <relativePath>../../../pom.xml</relativePath>
+    <groupId>org.jboss.jbpm</groupId>
+    <artifactId>jbpm</artifactId>
+    <version>3.3.0-SNAPSHOT</version>
+    <relativePath>../../pom.xml</relativePath>
   </parent>
   
   <modules>

Modified: jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/pom.xml
===================================================================
--- jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/pom.xml	2008-07-30 07:16:33 UTC (rev 1762)
+++ jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/pom.xml	2008-07-30 07:40:56 UTC (rev 1763)
@@ -1,80 +1,80 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project>
-  <modelVersion>4.0.0</modelVersion>
-  <name>JBossBPM - Spec Samples Airticket (WAR)</name>
-  <groupId>org.jboss.bpm</groupId>
-  <artifactId>bpm-sample-airticket-war</artifactId>
-  <packaging>war</packaging>
-  
-  <!-- Parent -->
-  <parent>
-    <groupId>org.jboss.bpm</groupId>
-    <artifactId>bpm-sample-airticket</artifactId>
-    <version>1.0.0-SNAPSHOT</version>
-  </parent>
-  
-  <!--  Dependencies -->
-  <dependencies>
-    <dependency>
-      <groupId>com.google.gwt</groupId>
-      <artifactId>gwt-servlet</artifactId>
-      <scope>runtime</scope>
-    </dependency>
-    <dependency>
-      <groupId>com.google.gwt</groupId>
-      <artifactId>gwt-user</artifactId>
-      <scope>provided</scope>
-    </dependency>
-  </dependencies>
-  
-  <!-- Plugins -->
-  <build>
-    <plugins>
-      <plugin>
-        <groupId>com.totsp.gwt</groupId>
-        <artifactId>maven-googlewebtoolkit2-plugin</artifactId>
-        <version>2.0-beta18</version>
+<?xml version="1.0" encoding="UTF-8"?>
+<project>
+  <modelVersion>4.0.0</modelVersion>
+  <name>JBossBPM - GWT Console (WAR)</name>
+  <groupId>org.jboss.bpm</groupId>
+  <artifactId>gwt-console-war</artifactId>
+  <packaging>war</packaging>
+  
+  <!-- Parent -->
+  <parent>
+    <groupId>org.jboss.bpm</groupId>
+    <artifactId>gwt-console</artifactId>
+    <version>1.0.0-SNAPSHOT</version>
+  </parent>
+  
+  <!--  Dependencies -->
+  <dependencies>
+    <dependency>
+      <groupId>com.google.gwt</groupId>
+      <artifactId>gwt-servlet</artifactId>
+      <scope>runtime</scope>
+    </dependency>
+    <dependency>
+      <groupId>com.google.gwt</groupId>
+      <artifactId>gwt-user</artifactId>
+      <scope>provided</scope>
+    </dependency>
+  </dependencies>
+  
+  <!-- Plugins -->
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>com.totsp.gwt</groupId>
+        <artifactId>maven-googlewebtoolkit2-plugin</artifactId>
+        <version>2.0-beta18</version>
         <configuration>
-          <logLevel>INFO</logLevel>
-          <compileTargets>
-            <value>org.jboss.bpm.samples.airticket.Application
-            </value>
-          </compileTargets>
-          <runTarget>org.jboss.bpm.samples.airticket.Application/Application.html
-          </runTarget>
-          <generatorRootClasses>
-            <value>org.jboss.bpm.samples.airticket.Application</value>
-          </generatorRootClasses>
+          <logLevel>INFO</logLevel>
+          <compileTargets>
+            <value>org.jboss.bpm.samples.airticket.Application
+            </value>
+          </compileTargets>
+          <runTarget>org.jboss.bpm.samples.airticket.Application/Application.html
+          </runTarget>
+          <generatorRootClasses>
+            <value>org.jboss.bpm.samples.airticket.Application</value>
+          </generatorRootClasses>
           <overwriteGeneratedClasses>true</overwriteGeneratedClasses>
-          <style>DETAILED</style>
-          <generateGettersAndSetters> true</generateGettersAndSetters>
+          <style>DETAILED</style>
+          <generateGettersAndSetters> true</generateGettersAndSetters>
           <noServer>false</noServer>
-          <extraJvmArgs>-Dgwt.coverage.enable=true</extraJvmArgs>
-        </configuration>
-        <executions>
-          <execution>
-            <goals>
-              <!-- autoconfig gwt (download and unzip GWT itself) -->
-              <!-- *note* you can also use manual config, if you already have GWT installed -->
-              <!-- see site docs for details - http://gwt-maven.googlecode.com/svn/docs/maven-googlewebtoolkit2-plugin/setup.html -->
-              <goal>setup</goal>
-              <goal>extractGwt</goal>
-              <!-- actual work goals -->
-              <goal>mergewebxml</goal>
-              <goal>compile</goal>
+          <extraJvmArgs>-Dgwt.coverage.enable=true</extraJvmArgs>
+        </configuration>
+        <executions>
+          <execution>
+            <goals>
+              <!-- autoconfig gwt (download and unzip GWT itself) -->
+              <!-- *note* you can also use manual config, if you already have GWT installed -->
+              <!-- see site docs for details - http://gwt-maven.googlecode.com/svn/docs/maven-googlewebtoolkit2-plugin/setup.html -->
+              <goal>setup</goal>
+              <goal>extractGwt</goal>
+              <!-- actual work goals -->
+              <goal>mergewebxml</goal>
+              <goal>compile</goal>
               <goal>gwt</goal>
-            </goals>
-          </execution>
-        </executions>
-      </plugin>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-war-plugin</artifactId>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-war-plugin</artifactId>
         <configuration>
           <webXml>target/web.xml</webXml>
-        </configuration>
+        </configuration>
       </plugin>
-    </plugins>
+    </plugins>
   </build>
 	
 </project>
\ No newline at end of file

Added: jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/Application.java
===================================================================
--- jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/Application.java	                        (rev 0)
+++ jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/Application.java	2008-07-30 07:40:56 UTC (rev 1763)
@@ -0,0 +1,48 @@
+package org.jboss.bpm.console;
+
+import org.jboss.bpm.console.client.SampleImageBundle;
+
+import com.google.gwt.core.client.EntryPoint;
+import com.google.gwt.core.client.GWT;
+import com.google.gwt.user.client.ui.Button;
+import com.google.gwt.user.client.ui.ClickListener;
+import com.google.gwt.user.client.ui.Image;
+import com.google.gwt.user.client.ui.Label;
+import com.google.gwt.user.client.ui.RootPanel;
+import com.google.gwt.user.client.ui.Widget;
+
+/**
+ * Entry point classes define <code>onModuleLoad()</code>.
+ */
+public class Application implements EntryPoint
+{
+  /**
+   * This is the entry point method.
+   */
+  public void onModuleLoad()
+  {
+    // image bundle
+    final SampleImageBundle sampleImageBundle = (SampleImageBundle)GWT.create(SampleImageBundle.class);
+    final Image gwtLogoImage = sampleImageBundle.getGWTLogo().createImage();
+    final Button button = new Button("Submit");
+    final Label label = new Label();
+    
+    // css inclusion and use
+    button.setStyleName("gwtMavenButton");
+
+    button.addClickListener(new ClickListener()
+    {
+      public void onClick(Widget sender)
+      {
+        if (label.getText().equals(""))
+          label.setText("Hello World");
+        else
+          label.setText("");
+      }
+    });
+
+    RootPanel.get("gwtLogo").add(gwtLogoImage);
+    RootPanel.get("rpcButton").add(button);
+    RootPanel.get("rpcResponse").add(label);
+  }
+}


Property changes on: jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/Application.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/SampleImageBundle.java
===================================================================
--- jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/SampleImageBundle.java	                        (rev 0)
+++ jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/SampleImageBundle.java	2008-07-30 07:40:56 UTC (rev 1763)
@@ -0,0 +1,39 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.bpm.console.client;
+
+import com.google.gwt.user.client.ui.ImageBundle;
+import com.google.gwt.user.client.ui.AbstractImagePrototype;
+
+/**
+ * This is a sample how to use image bundles in your gwt-maven project.
+ * @author Andrew
+ */
+public interface SampleImageBundle extends ImageBundle
+{
+
+	/**
+	 * @gwt.resource org/jboss/bpm/samples/airticket/public/images/gwt-logo.png
+	 */
+	public AbstractImagePrototype getGWTLogo();
+
+}


Property changes on: jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/SampleImageBundle.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/resources/org/jboss/bpm/console/Application.gwt.xml
===================================================================
--- jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/resources/org/jboss/bpm/console/Application.gwt.xml	                        (rev 0)
+++ jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/resources/org/jboss/bpm/console/Application.gwt.xml	2008-07-30 07:40:56 UTC (rev 1763)
@@ -0,0 +1,11 @@
+<module>
+
+  <!-- Inherit the core Web Toolkit stuff. -->
+  <inherits name='com.google.gwt.user.User' />
+	
+  <!-- Specify the app entry point class. -->
+  <entry-point class='org.jboss.bpm.console.Application' />
+
+  <!-- Specify a css to load into your gwt application -->
+  <stylesheet src='styles/sample.css' />
+</module>
\ No newline at end of file


Property changes on: jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/resources/org/jboss/bpm/console/Application.gwt.xml
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/resources/org/jboss/bpm/console/public/Application.html
===================================================================
--- jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/resources/org/jboss/bpm/console/public/Application.html	                        (rev 0)
+++ jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/resources/org/jboss/bpm/console/public/Application.html	2008-07-30 07:40:56 UTC (rev 1763)
@@ -0,0 +1,48 @@
+<html>
+	<head>
+	<title>maven-googlewebtoolkit2-sample</title>
+	<style>
+			html,body{
+				font-family:arial,sans-serif;
+				height: 100%;
+				width: 800px;
+				align: center;
+				overflow: hidden;
+			}
+	</style>
+<!--                                           -->
+<!-- This script loads your compiled module.   -->
+<!-- If you add any GWT meta tags, they must   -->
+<!-- be added before this line.                -->
+<!--                                           -->
+<script language='javascript'
+	src='org.jboss.bpm.samples.airticket.Application.nocache.js'></script>
+</head>
+
+<!--                                           -->
+<!-- The body can have arbitrary html, or      -->
+<!-- you can leave the body empty if you want  -->
+<!-- to create a completely dynamic ui         -->
+<!--                                           -->
+<body>
+
+<!-- OPTIONAL: include this if you want history support -->
+<iframe src="javascript:''" id="__gwt_historyFrame"
+	style="width: 0; height: 0; border: 0"></iframe>
+<table align=center>
+	<tr align="center">
+		<td>The Demo is Below<hr/></td>
+	</tr>	
+	<!-- Below is where the gwt widgets are injected -->
+	<tr align="center">
+		<td id="gwtLogo"></td>
+	</tr>
+	<tr align="center">
+		<td id="rpcButton"></td>
+	</tr>
+	<tr align="center">
+		<td id="rpcResponse"></td>
+	</tr>
+</table>
+</body>
+</html>

Added: jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/resources/org/jboss/bpm/console/public/images/gwt-logo.png
===================================================================
(Binary files differ)


Property changes on: jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/resources/org/jboss/bpm/console/public/images/gwt-logo.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/resources/org/jboss/bpm/console/public/styles/sample.css
===================================================================
--- jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/resources/org/jboss/bpm/console/public/styles/sample.css	                        (rev 0)
+++ jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/resources/org/jboss/bpm/console/public/styles/sample.css	2008-07-30 07:40:56 UTC (rev 1763)
@@ -0,0 +1,11 @@
+/**
+* Sample showing how to include a css in your gwt-maven project
+*/
+.gwtMavenButton {
+	border-color: rgb(255, 0, 0);
+	font-weight: normal;
+	font-style: normal;
+	text-align: center;
+	background-color: rgb(255, 0, 0);
+	color: rgb(255, 255, 255);
+}
\ No newline at end of file




More information about the jbpm-commits mailing list