[jboss-svn-commits] JBL Code SVN: r5281 - in labs/jbosslabs/trunk/portal-extensions: . ajax-portal ajax-portal/src ajax-portal/src/java ajax-portal/src/java/org ajax-portal/src/java/org/jboss ajax-portal/src/java/org/jboss/labs ajax-portal/src/java/org/jboss/labs/ajaxportal ajax-portal/src/java/org/jboss/labs/ajaxportal/gwt ajax-portal/src/java/org/jboss/labs/ajaxportal/gwt/client ajax-portal/src/java/org/jboss/labs/ajaxportal/gwt/public ajax-portal/src/web ajax-portal/src/web/WEB-INF

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Tue Jul 25 17:59:30 EDT 2006


Author: szimano
Date: 2006-07-25 17:59:28 -0400 (Tue, 25 Jul 2006)
New Revision: 5281

Added:
   labs/jbosslabs/trunk/portal-extensions/ajax-portal/
   labs/jbosslabs/trunk/portal-extensions/ajax-portal/.classpath
   labs/jbosslabs/trunk/portal-extensions/ajax-portal/.project
   labs/jbosslabs/trunk/portal-extensions/ajax-portal/maven.xml
   labs/jbosslabs/trunk/portal-extensions/ajax-portal/project.properties
   labs/jbosslabs/trunk/portal-extensions/ajax-portal/project.xml
   labs/jbosslabs/trunk/portal-extensions/ajax-portal/src/
   labs/jbosslabs/trunk/portal-extensions/ajax-portal/src/java/
   labs/jbosslabs/trunk/portal-extensions/ajax-portal/src/java/org/
   labs/jbosslabs/trunk/portal-extensions/ajax-portal/src/java/org/jboss/
   labs/jbosslabs/trunk/portal-extensions/ajax-portal/src/java/org/jboss/labs/
   labs/jbosslabs/trunk/portal-extensions/ajax-portal/src/java/org/jboss/labs/ajaxportal/
   labs/jbosslabs/trunk/portal-extensions/ajax-portal/src/java/org/jboss/labs/ajaxportal/PortalAjaxServlet.java
   labs/jbosslabs/trunk/portal-extensions/ajax-portal/src/java/org/jboss/labs/ajaxportal/gwt/
   labs/jbosslabs/trunk/portal-extensions/ajax-portal/src/java/org/jboss/labs/ajaxportal/gwt/PortalAjax.gwt.xml
   labs/jbosslabs/trunk/portal-extensions/ajax-portal/src/java/org/jboss/labs/ajaxportal/gwt/client/
   labs/jbosslabs/trunk/portal-extensions/ajax-portal/src/java/org/jboss/labs/ajaxportal/gwt/client/DnDContainer.java
   labs/jbosslabs/trunk/portal-extensions/ajax-portal/src/java/org/jboss/labs/ajaxportal/gwt/client/DnDPanel.java
   labs/jbosslabs/trunk/portal-extensions/ajax-portal/src/java/org/jboss/labs/ajaxportal/gwt/client/LabsDialogBox.java
   labs/jbosslabs/trunk/portal-extensions/ajax-portal/src/java/org/jboss/labs/ajaxportal/gwt/client/LabsPopupPanel.java
   labs/jbosslabs/trunk/portal-extensions/ajax-portal/src/java/org/jboss/labs/ajaxportal/gwt/client/PortalAjax.java
   labs/jbosslabs/trunk/portal-extensions/ajax-portal/src/java/org/jboss/labs/ajaxportal/gwt/client/PortalAjaxAsync.java
   labs/jbosslabs/trunk/portal-extensions/ajax-portal/src/java/org/jboss/labs/ajaxportal/gwt/client/PortalAjaxService.java
   labs/jbosslabs/trunk/portal-extensions/ajax-portal/src/java/org/jboss/labs/ajaxportal/gwt/public/
   labs/jbosslabs/trunk/portal-extensions/ajax-portal/src/java/org/jboss/labs/ajaxportal/gwt/public/AjaxPortal.html
   labs/jbosslabs/trunk/portal-extensions/ajax-portal/src/web/
   labs/jbosslabs/trunk/portal-extensions/ajax-portal/src/web/WEB-INF/
   labs/jbosslabs/trunk/portal-extensions/ajax-portal/src/web/WEB-INF/web.xml
   labs/jbosslabs/trunk/portal-extensions/ajax-portal/src/web/images/
Log:
ajax portal - DnD prototypes
JBLAB-728


Added: labs/jbosslabs/trunk/portal-extensions/ajax-portal/.classpath
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/ajax-portal/.classpath	2006-07-25 21:44:34 UTC (rev 5280)
+++ labs/jbosslabs/trunk/portal-extensions/ajax-portal/.classpath	2006-07-25 21:59:28 UTC (rev 5281)
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<classpath>
+  <classpathentry excluding="" kind="src" path="src/java">
+  </classpathentry>
+  <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER">
+  </classpathentry>
+  <classpathentry kind="var" path="MAVEN_REPO/jboss-forge/jars/forge-common-1.0.jar">
+  </classpathentry>
+  <classpathentry kind="var" path="MAVEN_REPO/google/jars/gwt-user.jar">
+  </classpathentry>
+  <classpathentry kind="var" path="MAVEN_REPO/google/jars/gwt-dev-linux.jar">
+  </classpathentry>
+  <classpathentry kind="var" path="MAVEN_REPO/portlet-api/jars/portlet-api-1.0.jar">
+  </classpathentry>
+  <classpathentry kind="var" path="MAVEN_REPO/jboss/jars/jboss-jmx.jar">
+  </classpathentry>
+  <classpathentry kind="var" path="MAVEN_REPO/jboss/jars/jboss-common.jar">
+  </classpathentry>
+  <classpathentry kind="var" path="MAVEN_REPO/jboss/jars/portal-common-lib.jar">
+  </classpathentry>
+  <classpathentry kind="var" path="MAVEN_REPO/jboss/jars/portal-core-lib.jar">
+  </classpathentry>
+  <classpathentry kind="var" path="MAVEN_REPO/jboss/jars/portal-portlet-lib.jar">
+  </classpathentry>
+  <classpathentry kind="lib" path="/home/tomek/java/sandbox/portal-extensions/shotoku/shotoku-base/target/shotoku-base.jar">
+  </classpathentry>
+  <classpathentry kind="lib" path="/home/tomek/java/sandbox/portal-extensions/shotoku/shotoku-aop/target/shotoku-aop.jar">
+  </classpathentry>
+  <classpathentry kind="var" path="MAVEN_REPO/velocity/jars/velocity-1.4.jar">
+  </classpathentry>
+  <classpathentry kind="var" path="MAVEN_REPO/velocity/jars/velocity-dep-1.4.jar">
+  </classpathentry>
+  <classpathentry kind="output" path="target/classes">
+  </classpathentry>
+</classpath>
\ No newline at end of file

Added: labs/jbosslabs/trunk/portal-extensions/ajax-portal/.project
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/ajax-portal/.project	2006-07-25 21:44:34 UTC (rev 5280)
+++ labs/jbosslabs/trunk/portal-extensions/ajax-portal/.project	2006-07-25 21:59:28 UTC (rev 5281)
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<projectDescription>
+  <name>ajax-portal</name>
+  <comment>
+  </comment>
+  <projects>
+  </projects>
+  <buildSpec>
+    <buildCommand>
+      <name>org.eclipse.jdt.core.javabuilder</name>
+      <arguments>
+      </arguments>
+    </buildCommand>
+  </buildSpec>
+  <natures>
+    <nature>org.eclipse.jdt.core.javanature</nature>
+  </natures>
+</projectDescription>
\ No newline at end of file

Added: labs/jbosslabs/trunk/portal-extensions/ajax-portal/maven.xml
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/ajax-portal/maven.xml	2006-07-25 21:44:34 UTC (rev 5280)
+++ labs/jbosslabs/trunk/portal-extensions/ajax-portal/maven.xml	2006-07-25 21:59:28 UTC (rev 5281)
@@ -0,0 +1,38 @@
+<!-- 
+  JBoss, the OpenSource J2EE webOS
+  Distributable under LGPL license.
+  See terms of license at gnu.org. 
+ -->
+<project xmlns:j="jelly:core" xmlns:ant="jelly:ant" xmlns:u="jelly:util">
+	<!-- Default war-project goals -->
+
+	<goal name="all">
+		<attainGoal name="prj-all" />
+	</goal>
+
+	<goal name="buildGWT">
+		
+		<ant:exec executable="java" >
+			<ant:arg value="-cp" />
+			<ant:arg value="src/java:../binaries/maven-repo-addons/google/jars/gwt-user.jar:../binaries/maven-repo-addons/google/jars/gwt-dev-linux.jar" />
+			<ant:arg value="com.google.gwt.dev.GWTCompiler" />
+			<ant:arg value="-out" />
+			<ant:arg value="target/ajax-portal/www" />
+			<ant:arg value="org.jboss.labs.ajaxportal.gwt.PortalAjax" />
+		</ant:exec>
+	</goal>
+	
+	<goal name="build">
+		<attainGoal name="buildGWT" />
+		
+		<attainGoal name="prj-war-build" />
+	</goal>
+    
+	<goal name="deploy">	
+		<ant:copy file="target/ajax-portal.war" toDir="${local.deploy.dir}" />
+	</goal>
+	
+	<goal name="clean">
+		<attainGoal name="prj-clean" />
+	</goal>
+</project>

Added: labs/jbosslabs/trunk/portal-extensions/ajax-portal/project.properties
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/ajax-portal/project.properties	2006-07-25 21:44:34 UTC (rev 5280)
+++ labs/jbosslabs/trunk/portal-extensions/ajax-portal/project.properties	2006-07-25 21:59:28 UTC (rev 5281)
@@ -0,0 +1,3 @@
+maven.repo.remote=http://repository.atlassian.com,http://www.ibiblio.org/maven,http://dist.codehaus.org/
+maven.junit.fork=yes
+maven.war.src=${basedir}/src/web

Added: labs/jbosslabs/trunk/portal-extensions/ajax-portal/project.xml
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/ajax-portal/project.xml	2006-07-25 21:44:34 UTC (rev 5280)
+++ labs/jbosslabs/trunk/portal-extensions/ajax-portal/project.xml	2006-07-25 21:59:28 UTC (rev 5281)
@@ -0,0 +1,40 @@
+<?xml version='1.0' encoding='ISO-8859-1'?>
+<!-- 
+  JBoss, the OpenSource J2EE webOS
+  Distributable under LGPL license.
+  See terms of license at gnu.org. 
+ -->
+<project>
+    <pomVersion>3</pomVersion>
+    <extend>../common.xml</extend>
+    <id>ajax-portal</id>
+    <name>Ajax Portal Demo</name>
+    <currentVersion>1.0</currentVersion>
+    <organization>
+        <name>Tomasz Szymanski</name>
+        <url>http://mamut.net.pl</url>
+    </organization>
+    <description></description>
+    <dependencies>
+		<dependency>
+		    <groupId>jboss-forge</groupId>
+		    <artifactId>forge-common</artifactId>
+		    <version>1.0</version>
+		</dependency>
+		<dependency>
+		    <groupId>google</groupId>
+		    <artifactId>gwt-user</artifactId>
+		    <version>1.0</version>
+		    <jar>gwt-user.jar</jar>
+		    <properties>
+            	<war.bundle>true</war.bundle>
+           	</properties>
+		</dependency>
+		<dependency>
+		    <groupId>google</groupId>
+		    <artifactId>gwt-dev-linux</artifactId>
+		    <version>1.0</version>
+		    <jar>gwt-dev-linux.jar</jar>
+		</dependency>
+    </dependencies>
+</project>

Added: labs/jbosslabs/trunk/portal-extensions/ajax-portal/src/java/org/jboss/labs/ajaxportal/PortalAjaxServlet.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/ajax-portal/src/java/org/jboss/labs/ajaxportal/PortalAjaxServlet.java	2006-07-25 21:44:34 UTC (rev 5280)
+++ labs/jbosslabs/trunk/portal-extensions/ajax-portal/src/java/org/jboss/labs/ajaxportal/PortalAjaxServlet.java	2006-07-25 21:59:28 UTC (rev 5281)
@@ -0,0 +1,38 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt 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.labs.ajaxportal;
+
+
+import org.jboss.labs.ajaxportal.gwt.client.PortalAjaxService;
+
+import com.google.gwt.user.server.rpc.RemoteServiceServlet;
+
+public class PortalAjaxServlet extends RemoteServiceServlet implements
+		PortalAjaxService {
+
+	/**
+	 * 
+	 */
+	private static final long serialVersionUID = 1L;
+
+
+}

Added: labs/jbosslabs/trunk/portal-extensions/ajax-portal/src/java/org/jboss/labs/ajaxportal/gwt/PortalAjax.gwt.xml
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/ajax-portal/src/java/org/jboss/labs/ajaxportal/gwt/PortalAjax.gwt.xml	2006-07-25 21:44:34 UTC (rev 5280)
+++ labs/jbosslabs/trunk/portal-extensions/ajax-portal/src/java/org/jboss/labs/ajaxportal/gwt/PortalAjax.gwt.xml	2006-07-25 21:59:28 UTC (rev 5281)
@@ -0,0 +1,4 @@
+<module>
+        <inherits name="com.google.gwt.user.User"/>
+        <entry-point class="org.jboss.labs.ajaxportal.gwt.client.PortalAjax"/>
+</module>

Added: labs/jbosslabs/trunk/portal-extensions/ajax-portal/src/java/org/jboss/labs/ajaxportal/gwt/client/DnDContainer.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/ajax-portal/src/java/org/jboss/labs/ajaxportal/gwt/client/DnDContainer.java	2006-07-25 21:44:34 UTC (rev 5280)
+++ labs/jbosslabs/trunk/portal-extensions/ajax-portal/src/java/org/jboss/labs/ajaxportal/gwt/client/DnDContainer.java	2006-07-25 21:59:28 UTC (rev 5281)
@@ -0,0 +1,15 @@
+package org.jboss.labs.ajaxportal.gwt.client;
+
+import com.google.gwt.user.client.ui.FlexTable;
+import com.google.gwt.user.client.ui.SourcesTableEvents;
+import com.google.gwt.user.client.ui.TableListener;
+
+public class DnDContainer extends FlexTable implements TableListener {
+
+	public void onCellClicked(SourcesTableEvents sender, int row, int cell) {
+		
+	}
+
+	
+
+}

Added: labs/jbosslabs/trunk/portal-extensions/ajax-portal/src/java/org/jboss/labs/ajaxportal/gwt/client/DnDPanel.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/ajax-portal/src/java/org/jboss/labs/ajaxportal/gwt/client/DnDPanel.java	2006-07-25 21:44:34 UTC (rev 5280)
+++ labs/jbosslabs/trunk/portal-extensions/ajax-portal/src/java/org/jboss/labs/ajaxportal/gwt/client/DnDPanel.java	2006-07-25 21:59:28 UTC (rev 5281)
@@ -0,0 +1,89 @@
+package org.jboss.labs.ajaxportal.gwt.client;
+
+import com.google.gwt.user.client.DOM;
+import com.google.gwt.user.client.ui.DockPanel;
+import com.google.gwt.user.client.ui.HTML;
+import com.google.gwt.user.client.ui.MouseListener;
+import com.google.gwt.user.client.ui.SimplePanel;
+import com.google.gwt.user.client.ui.Widget;
+
+public class DnDPanel extends SimplePanel implements MouseListener {
+
+	private HTML caption;
+	private DnDContainer container;
+	private DockPanel panel = new DockPanel();
+	private boolean dragging;
+	private Widget child;
+	
+	public DnDPanel(DnDContainer container, String captionText) {
+		this.container = container;
+		
+		caption = new HTML(captionText);
+		caption.addMouseListener(this);
+		
+		panel.add(caption, DockPanel.NORTH);
+		
+		super.add(panel);
+	}
+	
+	public void onMouseDown(Widget sender, int x, int y) {
+		dragging = true;
+		DOM.releaseCapture(caption.getElement());
+	}
+
+	public void onMouseEnter(Widget sender) {
+		// TODO Auto-generated method stub
+
+	}
+
+	public void onMouseLeave(Widget sender) {
+		// TODO Auto-generated method stub
+
+	}
+
+	public void onMouseMove(Widget sender, int x, int y) {
+		if (dragging) {
+			setMyPosition(x, y);
+		}
+	}
+
+	public void onMouseUp(Widget sender, int x, int y) {
+		dragging = false;
+	}
+
+	public boolean add(Widget w) {
+		if (child != null) {
+			return false;
+		}
+		
+		panel.add(w, DockPanel.CENTER);
+		return true;
+	}
+
+	public boolean remove(Widget w) {
+		if (child == w) {
+			panel.remove(w);
+			child = null;
+			return true;
+		}
+		
+		return false;
+	}
+	
+	public void setMyPosition(int left, int top) {
+		DOM.setStyleAttribute(this.getElement(), "position", "absolute");
+		DOM.setStyleAttribute(this.getElement(), "left", String.valueOf(left)
+				+ "px");
+		DOM.setStyleAttribute(this.getElement(), "top", String.valueOf(top)
+				+ "px");
+	}
+	
+	public int getLeft() {
+		return DOM.getIntAttribute(this.getElement(), "left");
+	}
+	
+	public int getTop() {
+		return DOM.getIntAttribute(this.getElement(), "left");
+	}
+
+}

Added: labs/jbosslabs/trunk/portal-extensions/ajax-portal/src/java/org/jboss/labs/ajaxportal/gwt/client/LabsDialogBox.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/ajax-portal/src/java/org/jboss/labs/ajaxportal/gwt/client/LabsDialogBox.java	2006-07-25 21:44:34 UTC (rev 5280)
+++ labs/jbosslabs/trunk/portal-extensions/ajax-portal/src/java/org/jboss/labs/ajaxportal/gwt/client/LabsDialogBox.java	2006-07-25 21:59:28 UTC (rev 5281)
@@ -0,0 +1,16 @@
+package org.jboss.labs.ajaxportal.gwt.client;
+
+import com.google.gwt.user.client.DOM;
+import com.google.gwt.user.client.ui.DialogBox;
+
+public class LabsDialogBox extends DialogBox {
+
+	public void setPopupPosition(int left, int top) {
+		DOM.setStyleAttribute(this.getElement(), "position", "absolute");
+		DOM.setStyleAttribute(this.getElement(), "left", String.valueOf(left)
+				+ "px");
+		DOM.setStyleAttribute(this.getElement(), "top", String.valueOf(top)
+				+ "px");
+	}
+
+}

Added: labs/jbosslabs/trunk/portal-extensions/ajax-portal/src/java/org/jboss/labs/ajaxportal/gwt/client/LabsPopupPanel.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/ajax-portal/src/java/org/jboss/labs/ajaxportal/gwt/client/LabsPopupPanel.java	2006-07-25 21:44:34 UTC (rev 5280)
+++ labs/jbosslabs/trunk/portal-extensions/ajax-portal/src/java/org/jboss/labs/ajaxportal/gwt/client/LabsPopupPanel.java	2006-07-25 21:59:28 UTC (rev 5281)
@@ -0,0 +1,23 @@
+package org.jboss.labs.ajaxportal.gwt.client;
+
+import com.google.gwt.user.client.DOM;
+import com.google.gwt.user.client.ui.PopupPanel;
+
+public class LabsPopupPanel extends PopupPanel {
+
+	public LabsPopupPanel(boolean b) {
+		super(b);
+	}
+	
+	public LabsPopupPanel() {
+		super();
+	}
+
+	public void setPopupPosition(int left, int top) {
+		DOM.setStyleAttribute(this.getElement(), "position", "absolute");
+		DOM.setStyleAttribute(this.getElement(), "left", String.valueOf(left)
+				+ "px");
+		DOM.setStyleAttribute(this.getElement(), "top", String.valueOf(top)
+				+ "px");
+	}
+}

Added: labs/jbosslabs/trunk/portal-extensions/ajax-portal/src/java/org/jboss/labs/ajaxportal/gwt/client/PortalAjax.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/ajax-portal/src/java/org/jboss/labs/ajaxportal/gwt/client/PortalAjax.java	2006-07-25 21:44:34 UTC (rev 5280)
+++ labs/jbosslabs/trunk/portal-extensions/ajax-portal/src/java/org/jboss/labs/ajaxportal/gwt/client/PortalAjax.java	2006-07-25 21:59:28 UTC (rev 5281)
@@ -0,0 +1,84 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt 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.labs.ajaxportal.gwt.client;
+
+import com.google.gwt.core.client.EntryPoint;
+import com.google.gwt.user.client.Window;
+import com.google.gwt.user.client.ui.Button;
+import com.google.gwt.user.client.ui.ClickListener;
+import com.google.gwt.user.client.ui.DockPanel;
+import com.google.gwt.user.client.ui.Panel;
+import com.google.gwt.user.client.ui.RootPanel;
+import com.google.gwt.user.client.ui.SourcesTableEvents;
+import com.google.gwt.user.client.ui.TableListener;
+import com.google.gwt.user.client.ui.Widget;
+
+public class PortalAjax implements EntryPoint {
+
+
+	/**
+	 * Native method in JScript to access gwt:properties (couldn't find anything
+	 * in the mans for it) You add this on the page with &lt;meta
+	 * name="gwt:property" value="key=value" /&lt;
+	 * 
+	 * @param name
+	 *            Name of property
+	 * @return value of property
+	 */
+	public static native String getProperty(String name) /*-{
+	 return $wnd.__gwt_getMetaProperty(name);
+	 }-*/;
+
+	public static native String getPropertiesUnsplited() /*-{
+	 var __gwt_all = '';
+	 
+	 for (var tag in $wnd.__gwt_metaProps) {
+	 __gwt_all += tag + ';';
+	 }
+	 return __gwt_all;
+	 }-*/;
+
+	public String[] getPropertyNames() {
+		return getPropertiesUnsplited().split(";");
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see com.google.gwt.core.client.EntryPoint#onModuleLoad()
+	 */
+	public void onModuleLoad() {
+			DnDContainer container = new DnDContainer();
+			
+			DnDPanel panel = new DnDPanel(container, "panelek");
+			panel.add(new Button("pierwszy baton"));
+			
+			DnDPanel panel2 = new DnDPanel(container, "panelek kolejny");
+			panel2.add(new Button("drugi baton"));
+			
+			container.setWidget(0, 0, panel);
+			container.setWidget(0, 1, panel2);
+			
+			RootPanel.get("ajaxPortal").add(container);
+	}
+
+}

Added: labs/jbosslabs/trunk/portal-extensions/ajax-portal/src/java/org/jboss/labs/ajaxportal/gwt/client/PortalAjaxAsync.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/ajax-portal/src/java/org/jboss/labs/ajaxportal/gwt/client/PortalAjaxAsync.java	2006-07-25 21:44:34 UTC (rev 5280)
+++ labs/jbosslabs/trunk/portal-extensions/ajax-portal/src/java/org/jboss/labs/ajaxportal/gwt/client/PortalAjaxAsync.java	2006-07-25 21:59:28 UTC (rev 5281)
@@ -0,0 +1,35 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt 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.labs.ajaxportal.gwt.client;
+
+import com.google.gwt.user.client.rpc.AsyncCallback;
+
+/**
+ * This interface is made for asynch calls (+- copies TaggingService). Needed by
+ * GWT framework (and actually used inside your code)
+ * 
+ * @author <a href="mailto:tomasz.szymanski at jboss.com">Tomasz Szymanski</a>
+ * 
+ */
+public interface PortalAjaxAsync {
+	
+}

Added: labs/jbosslabs/trunk/portal-extensions/ajax-portal/src/java/org/jboss/labs/ajaxportal/gwt/client/PortalAjaxService.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/ajax-portal/src/java/org/jboss/labs/ajaxportal/gwt/client/PortalAjaxService.java	2006-07-25 21:44:34 UTC (rev 5280)
+++ labs/jbosslabs/trunk/portal-extensions/ajax-portal/src/java/org/jboss/labs/ajaxportal/gwt/client/PortalAjaxService.java	2006-07-25 21:59:28 UTC (rev 5281)
@@ -0,0 +1,36 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt 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.labs.ajaxportal.gwt.client;
+
+import java.util.Vector;
+
+import com.google.gwt.user.client.rpc.RemoteService;
+
+/**
+ * This interface is implemented by Servlet
+ * 
+ * @author <a href="mailto:tomasz.szymanski at jboss.com">Tomasz Szymanski</a>
+ * 
+ */
+public interface PortalAjaxService extends RemoteService {
+
+}

Added: labs/jbosslabs/trunk/portal-extensions/ajax-portal/src/java/org/jboss/labs/ajaxportal/gwt/public/AjaxPortal.html
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/ajax-portal/src/java/org/jboss/labs/ajaxportal/gwt/public/AjaxPortal.html	2006-07-25 21:44:34 UTC (rev 5280)
+++ labs/jbosslabs/trunk/portal-extensions/ajax-portal/src/java/org/jboss/labs/ajaxportal/gwt/public/AjaxPortal.html	2006-07-25 21:59:28 UTC (rev 5281)
@@ -0,0 +1,14 @@
+<html>
+        <head>               
+        	<meta name='gwt:module' content='org.jboss.labs.ajaxportal.gwt.PortalAjax' />
+			<title>Hello</title>
+        </head>
+        <body bgcolor="white">
+        		<script language="javascript" src="/ajax-portal/www/org.jboss.labs.ajaxportal.gwt.PortalAjax/gwt.js"></script>
+
+                 <div id="ajaxPortal">
+                	
+                </div>
+                
+        </body>
+</html>

Added: labs/jbosslabs/trunk/portal-extensions/ajax-portal/src/web/WEB-INF/web.xml
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/ajax-portal/src/web/WEB-INF/web.xml	2006-07-25 21:44:34 UTC (rev 5280)
+++ labs/jbosslabs/trunk/portal-extensions/ajax-portal/src/web/WEB-INF/web.xml	2006-07-25 21:59:28 UTC (rev 5281)
@@ -0,0 +1,16 @@
+<?xml version="1.0"?>
+<!DOCTYPE web-app PUBLIC
+   "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
+   "http://java.sun.com/dtd/web-app_2_3.dtd">
+<web-app>
+	<servlet>
+		<servlet-name>PortalAjax</servlet-name>
+		<servlet-class>org.jboss.labs.ajaxportal.PortalAjaxServlet</servlet-class>
+		<load-on-startup>1</load-on-startup>
+	</servlet>
+	
+	<servlet-mapping>
+		<servlet-name>PortalAjax</servlet-name>
+		<url-pattern>/tag/*</url-pattern>
+	</servlet-mapping>
+</web-app>




More information about the jboss-svn-commits mailing list