[Yanel-commits] rev 47293 - in
public/yanel/trunk/src/contributions/resources: . GWT-trials
GWT-trials/htdocs GWT-trials/src GWT-trials/src/build
GWT-trials/src/java GWT-trials/src/java/org
GWT-trials/src/java/org/wyona GWT-trials/src/java/org/wyona/gwt
GWT-trials/src/java/org/wyona/gwt/trials
GWT-trials/src/java/org/wyona/gwt/trials/yanel
GWT-trials/src-gwt GWT-trials/src-gwt/java
GWT-trials/src-gwt/java/org GWT-trials/src-gwt/java/org/wyona
GWT-trials/src-gwt/java/org/wyona/gwt
GWT-trials/src-gwt/java/org/wyona/gwt/trials
GWT-trials/src-gwt/java/org/wyona/gwt/trials/client
guillaume at wyona.com
guillaume at wyona.com
Thu Jan 28 09:54:56 CET 2010
Author: guillaume
Date: 2010-01-28 09:54:55 +0100 (Thu, 28 Jan 2010)
New Revision: 47293
Added:
public/yanel/trunk/src/contributions/resources/GWT-trials/
public/yanel/trunk/src/contributions/resources/GWT-trials/README.txt
public/yanel/trunk/src/contributions/resources/GWT-trials/build.xml
public/yanel/trunk/src/contributions/resources/GWT-trials/htdocs/
public/yanel/trunk/src/contributions/resources/GWT-trials/htdocs/trials.html
public/yanel/trunk/src/contributions/resources/GWT-trials/resource.xml
public/yanel/trunk/src/contributions/resources/GWT-trials/src-gwt/
public/yanel/trunk/src/contributions/resources/GWT-trials/src-gwt/build.properties
public/yanel/trunk/src/contributions/resources/GWT-trials/src-gwt/gwt-incubator-20091216-r1739.jar
public/yanel/trunk/src/contributions/resources/GWT-trials/src-gwt/java/
public/yanel/trunk/src/contributions/resources/GWT-trials/src-gwt/java/org/
public/yanel/trunk/src/contributions/resources/GWT-trials/src-gwt/java/org/wyona/
public/yanel/trunk/src/contributions/resources/GWT-trials/src-gwt/java/org/wyona/gwt/
public/yanel/trunk/src/contributions/resources/GWT-trials/src-gwt/java/org/wyona/gwt/trials/
public/yanel/trunk/src/contributions/resources/GWT-trials/src-gwt/java/org/wyona/gwt/trials/Trials.gwt.xml
public/yanel/trunk/src/contributions/resources/GWT-trials/src-gwt/java/org/wyona/gwt/trials/TrialsLocal.gwt.xml
public/yanel/trunk/src/contributions/resources/GWT-trials/src-gwt/java/org/wyona/gwt/trials/client/
public/yanel/trunk/src/contributions/resources/GWT-trials/src-gwt/java/org/wyona/gwt/trials/client/ScrollTableTrial.java
public/yanel/trunk/src/contributions/resources/GWT-trials/src/
public/yanel/trunk/src/contributions/resources/GWT-trials/src/build/
public/yanel/trunk/src/contributions/resources/GWT-trials/src/build/GWT.build.properties
public/yanel/trunk/src/contributions/resources/GWT-trials/src/build/build.properties
public/yanel/trunk/src/contributions/resources/GWT-trials/src/build/dependencies.xml
public/yanel/trunk/src/contributions/resources/GWT-trials/src/java/
public/yanel/trunk/src/contributions/resources/GWT-trials/src/java/org/
public/yanel/trunk/src/contributions/resources/GWT-trials/src/java/org/wyona/
public/yanel/trunk/src/contributions/resources/GWT-trials/src/java/org/wyona/gwt/
public/yanel/trunk/src/contributions/resources/GWT-trials/src/java/org/wyona/gwt/trials/
public/yanel/trunk/src/contributions/resources/GWT-trials/src/java/org/wyona/gwt/trials/yanel/
public/yanel/trunk/src/contributions/resources/GWT-trials/src/java/org/wyona/gwt/trials/yanel/TrialsResource.java
Log:
This GWT-based resource-type aims to be a place to experiment with GWT features.
Property changes on: public/yanel/trunk/src/contributions/resources/GWT-trials
___________________________________________________________________
Name: svn:ignore
+ build
Added: public/yanel/trunk/src/contributions/resources/GWT-trials/README.txt
===================================================================
--- public/yanel/trunk/src/contributions/resources/GWT-trials/README.txt (rev 0)
+++ public/yanel/trunk/src/contributions/resources/GWT-trials/README.txt 2010-01-28 08:54:55 UTC (rev 47293)
@@ -0,0 +1,6 @@
+This resource-type aims to be a place to experiment with GWT features.
+
+To use_it, add the resource-type to your Yanel, compile it
+ and load the test page, e.g
+ http://localhost:8080/yanel/yanel/resource-types/http://www.wyona.org/yanel/resource/1.0::gwt-trials/trials.html
+
Property changes on: public/yanel/trunk/src/contributions/resources/GWT-trials/README.txt
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: public/yanel/trunk/src/contributions/resources/GWT-trials/build.xml
===================================================================
--- public/yanel/trunk/src/contributions/resources/GWT-trials/build.xml (rev 0)
+++ public/yanel/trunk/src/contributions/resources/GWT-trials/build.xml 2010-01-28 08:54:55 UTC (rev 47293)
@@ -0,0 +1,3 @@
+<project name="yanel-GWT-trials-RT">
+ <import file="${yanel.source.home}/src/build/resource-types/GWT-RT.build.xml"/>
+</project>
Property changes on: public/yanel/trunk/src/contributions/resources/GWT-trials/htdocs
___________________________________________________________________
Name: svn:ignore
+ org.wyona.gwt.trials.Trials
com.google.gwt.gen2.demo.scrolltable.ScrollTableDemo
Added: public/yanel/trunk/src/contributions/resources/GWT-trials/htdocs/trials.html
===================================================================
--- public/yanel/trunk/src/contributions/resources/GWT-trials/htdocs/trials.html (rev 0)
+++ public/yanel/trunk/src/contributions/resources/GWT-trials/htdocs/trials.html 2010-01-28 08:54:55 UTC (rev 47293)
@@ -0,0 +1,26 @@
+<?xml version="1.0"?>
+<!--TODO test with all supported browsers including IE! -->
+<html xmlns="http://www.w3.org/1999/xhtml" xmlns:i18n="http://www.wyona.org/yanel/i18n/1.0">
+ <head>
+ <title>Trials - GWT - Wyona</title>
+ <script type="text/javascript" src="org.wyona.gwt.trials.Trials/org.wyona.gwt.trials.Trials.nocache.js"></script>
+ </head>
+ <style>
+#scroll-table-slot table.headerTable td {
+ color: black;
+ background-color: #999;
+}
+#scroll-table-slot table.dataTable td {
+ color: white;
+ background-color: black;
+}
+#scroll-table-slot {
+ border: 1px solid #ccc;
+}
+ </style>
+ <body>
+ <h1>Wyona GWT Trials</h1>
+ <div id="scroll-table-slot"></div>
+ </body>
+</html>
+
Property changes on: public/yanel/trunk/src/contributions/resources/GWT-trials/htdocs/trials.html
___________________________________________________________________
Name: svn:mime-type
+ text/html
Added: public/yanel/trunk/src/contributions/resources/GWT-trials/resource.xml
===================================================================
--- public/yanel/trunk/src/contributions/resources/GWT-trials/resource.xml (rev 0)
+++ public/yanel/trunk/src/contributions/resources/GWT-trials/resource.xml 2010-01-28 08:54:55 UTC (rev 47293)
@@ -0,0 +1,15 @@
+<resource xmlns="http://www.wyona.org/yanel/1.0"
+ name="gwt-trials"
+ namespace="http://www.wyona.org/yanel/resource/1.0"
+ class="org.wyona.gwt.trials.yanel.TrialsResource"
+ >
+<description>
+A place to experiment with GWT features.
+</description>
+
+<rtd>
+<!--
+ <property name="foo" default-value="bar"/>
+-->
+</rtd>
+</resource>
Added: public/yanel/trunk/src/contributions/resources/GWT-trials/src/build/GWT.build.properties
===================================================================
--- public/yanel/trunk/src/contributions/resources/GWT-trials/src/build/GWT.build.properties (rev 0)
+++ public/yanel/trunk/src/contributions/resources/GWT-trials/src/build/GWT.build.properties 2010-01-28 08:54:55 UTC (rev 47293)
@@ -0,0 +1 @@
+gwt.version=2.0.0
Added: public/yanel/trunk/src/contributions/resources/GWT-trials/src/build/build.properties
===================================================================
--- public/yanel/trunk/src/contributions/resources/GWT-trials/src/build/build.properties (rev 0)
+++ public/yanel/trunk/src/contributions/resources/GWT-trials/src/build/build.properties 2010-01-28 08:54:55 UTC (rev 47293)
@@ -0,0 +1,2 @@
+resource.name=gwt-trials
+resource.version=0.0.1-dev-rXXX
Added: public/yanel/trunk/src/contributions/resources/GWT-trials/src/build/dependencies.xml
===================================================================
--- public/yanel/trunk/src/contributions/resources/GWT-trials/src/build/dependencies.xml (rev 0)
+++ public/yanel/trunk/src/contributions/resources/GWT-trials/src/build/dependencies.xml 2010-01-28 08:54:55 UTC (rev 47293)
@@ -0,0 +1,23 @@
+<?xml version="1.0"?>
+
+<project name="user-admin-dependencies" xmlns:artifact="antlib:org.apache.maven.artifact.ant">
+
+ <target name="dependencies" description="Dependencies">
+ <artifact:remoteRepository id="wyona.remote.repository" url="${maven.url}"/>
+
+ <artifact:dependencies pathId="maven2.classpath" filesetId="maven2.fileset">
+ <remoteRepository refid="wyona.remote.repository"/>
+ <dependency groupId="wyona-org-yanel" artifactId="yanel-core" version="${yanel.source.version}"/>
+ <dependency groupId="wyona-org-yanel" artifactId="yanel-impl" version="${yanel.source.version}"/>
+ </artifact:dependencies>
+
+ <artifact:dependencies pathId="maven2.resource.classpath" filesetId="maven2.resource.fileset">
+ <remoteRepository refid="wyona.remote.repository"/>
+ <!-- No resource specific libs yet -->
+ </artifact:dependencies>
+
+ <property name="maven2.cp" refid="maven2.classpath"/>
+ <!--<echo>Maven2 classpath: ${maven2.cp}</echo>-->
+ </target>
+
+</project>
Added: public/yanel/trunk/src/contributions/resources/GWT-trials/src/java/org/wyona/gwt/trials/yanel/TrialsResource.java
===================================================================
--- public/yanel/trunk/src/contributions/resources/GWT-trials/src/java/org/wyona/gwt/trials/yanel/TrialsResource.java (rev 0)
+++ public/yanel/trunk/src/contributions/resources/GWT-trials/src/java/org/wyona/gwt/trials/yanel/TrialsResource.java 2010-01-28 08:54:55 UTC (rev 47293)
@@ -0,0 +1,13 @@
+/*
+ * Copyright 2010 Wyona
+ */
+package org.wyona.gwt.trials.yanel;
+
+import org.wyona.yanel.impl.resources.BasicXMLResource;
+
+
+/**
+ * Dummy resource class just to be able to define a resource-type.
+ */
+public class TrialsResource extends BasicXMLResource {
+}
Added: public/yanel/trunk/src/contributions/resources/GWT-trials/src-gwt/build.properties
===================================================================
--- public/yanel/trunk/src/contributions/resources/GWT-trials/src-gwt/build.properties (rev 0)
+++ public/yanel/trunk/src/contributions/resources/GWT-trials/src-gwt/build.properties 2010-01-28 08:54:55 UTC (rev 47293)
@@ -0,0 +1,4 @@
+# Module name
+module.name=org.wyona.gwt.trials.Trials
+#module.name=com.google.gwt.gen2.demo.scrolltable.ScrollTableDemo
+##hostmode.hostpage.name=ScrollTableDemo.html
Added: public/yanel/trunk/src/contributions/resources/GWT-trials/src-gwt/gwt-incubator-20091216-r1739.jar
===================================================================
(Binary files differ)
Property changes on: public/yanel/trunk/src/contributions/resources/GWT-trials/src-gwt/gwt-incubator-20091216-r1739.jar
___________________________________________________________________
Name: svn:mime-type
+ application/java-archive
Added: public/yanel/trunk/src/contributions/resources/GWT-trials/src-gwt/java/org/wyona/gwt/trials/Trials.gwt.xml
===================================================================
--- public/yanel/trunk/src/contributions/resources/GWT-trials/src-gwt/java/org/wyona/gwt/trials/Trials.gwt.xml (rev 0)
+++ public/yanel/trunk/src/contributions/resources/GWT-trials/src-gwt/java/org/wyona/gwt/trials/Trials.gwt.xml 2010-01-28 08:54:55 UTC (rev 47293)
@@ -0,0 +1,15 @@
+<module>
+ <inherits name='com.google.gwt.user.User'/>
+
+ <!--inherits name='com.google.gwt.gen2.logging.Logging-production'/-->
+
+ <!--inherits name='com.google.gwt.widgetideas.WidgetIdeas'/>
+ <inherits name='com.google.gwt.widgetideas.ScrollTable'/-->
+ <!--stylesheet src='ScrollTableDemo.css'/-->
+
+ <inherits name='com.google.gwt.gen2.table.Table'/>
+
+
+ <entry-point class="org.wyona.gwt.trials.client.ScrollTableTrial"/>
+
+</module>
Added: public/yanel/trunk/src/contributions/resources/GWT-trials/src-gwt/java/org/wyona/gwt/trials/TrialsLocal.gwt.xml
===================================================================
--- public/yanel/trunk/src/contributions/resources/GWT-trials/src-gwt/java/org/wyona/gwt/trials/TrialsLocal.gwt.xml (rev 0)
+++ public/yanel/trunk/src/contributions/resources/GWT-trials/src-gwt/java/org/wyona/gwt/trials/TrialsLocal.gwt.xml 2010-01-28 08:54:55 UTC (rev 47293)
@@ -0,0 +1,5 @@
+<module rename-to="org.wyona.gwt.trials.Trials">
+ <inherits name="org.wyona.gwt.trials.Trials"/>
+ <!--set-property name="user.agent" value="ie6, gecko, gecko1_8"/-->
+ <set-property name="user.agent" value="ie6, gecko1_8, safari"/>
+</module>
Added: public/yanel/trunk/src/contributions/resources/GWT-trials/src-gwt/java/org/wyona/gwt/trials/client/ScrollTableTrial.java
===================================================================
--- public/yanel/trunk/src/contributions/resources/GWT-trials/src-gwt/java/org/wyona/gwt/trials/client/ScrollTableTrial.java (rev 0)
+++ public/yanel/trunk/src/contributions/resources/GWT-trials/src-gwt/java/org/wyona/gwt/trials/client/ScrollTableTrial.java 2010-01-28 08:54:55 UTC (rev 47293)
@@ -0,0 +1,35 @@
+package org.wyona.gwt.trials.client;
+
+import com.google.gwt.core.client.EntryPoint;
+import com.google.gwt.gen2.table.client.FixedWidthFlexTable;
+import com.google.gwt.gen2.table.client.FixedWidthGrid;
+import com.google.gwt.gen2.table.client.ScrollTable;
+import com.google.gwt.gen2.table.client.AbstractScrollTable.ResizePolicy;
+import com.google.gwt.user.client.ui.RootPanel;
+
+public class ScrollTableTrial implements EntryPoint {
+
+ @Override
+ public void onModuleLoad() {
+ int n = 10;
+
+ FixedWidthFlexTable headerTable = new FixedWidthFlexTable();
+ headerTable.setText(0, 0, "header");
+ //headerTable.setHTML(0, 1, "<span style='visibility:hidden'></span>");
+ FixedWidthGrid dataTable = new FixedWidthGrid();
+
+ int m = 2; // need at least 2 columns else IE cannot fill all the available space!!!
+ dataTable.resize(n, m); // needed to be able to use dataTable.setHTML/setText on the corresponding cells
+ for (int i = 0; i < n; i++) {
+ dataTable.setText(i, 0, "data #"+i);
+ }
+
+ ScrollTable scrollTable = new ScrollTable(dataTable, headerTable);
+
+ scrollTable.setMaximumColumnWidth(1, 0); // needed so that the dummy column is as narrow as possible
+ scrollTable.setResizePolicy(ResizePolicy.FILL_WIDTH); // needed so that the columns take all the available space
+ scrollTable.setHeight("7ex"); // needed else table is invisible (!)
+
+ RootPanel.get("scroll-table-slot").add(scrollTable);
+ }
+}
More information about the Yanel-commits
mailing list