|
From: <tri...@us...> - 2007-11-23 12:50:31
|
Revision: 164
http://equanda.svn.sourceforge.net/equanda/?rev=164&view=rev
Author: triathlon98
Date: 2007-11-23 04:50:25 -0800 (Fri, 23 Nov 2007)
Log Message:
-----------
EQ-87 tapestry components example project
Added Paths:
-----------
t5-equanda-example/pom.xml
t5-equanda-example/src/
t5-equanda-example/src/main/
t5-equanda-example/src/main/java/
t5-equanda-example/src/main/java/org/
t5-equanda-example/src/main/java/org/equanda/
t5-equanda-example/src/main/java/org/equanda/example/
t5-equanda-example/src/main/java/org/equanda/example/t5/
t5-equanda-example/src/main/java/org/equanda/example/t5/components/
t5-equanda-example/src/main/java/org/equanda/example/t5/components/Layout.java
t5-equanda-example/src/main/java/org/equanda/example/t5/pages/
t5-equanda-example/src/main/java/org/equanda/example/t5/pages/Start.java
t5-equanda-example/src/main/java/org/equanda/example/t5/services/
t5-equanda-example/src/main/java/org/equanda/example/t5/services/AppModule.java
t5-equanda-example/src/main/resources/
t5-equanda-example/src/main/resources/log4j.properties
t5-equanda-example/src/main/resources/org/
t5-equanda-example/src/main/resources/org/equanda/
t5-equanda-example/src/main/resources/org/equanda/example/
t5-equanda-example/src/main/resources/org/equanda/example/t5/
t5-equanda-example/src/main/resources/org/equanda/example/t5/components/
t5-equanda-example/src/main/resources/org/equanda/example/t5/components/Layout.tml
t5-equanda-example/src/main/resources/org/equanda/example/t5/pages/
t5-equanda-example/src/main/resources/org/equanda/example/t5/pages/Start.tml
t5-equanda-example/src/main/webapp/
t5-equanda-example/src/main/webapp/WEB-INF/
t5-equanda-example/src/main/webapp/WEB-INF/web.xml
t5-equanda-example/src/main/webapp/css/
t5-equanda-example/src/main/webapp/css/style.css
t5-equanda-example/src/main/webapp/images/
t5-equanda-example/src/main/webapp/images/favicon.ico
t5-equanda-example/src/main/webapp/images/synergetics.png
t5-equanda-example/src/main/webapp/script/
t5-equanda-example/src/main/webapp/script/equanda.js
t5-equanda-example/src/test/
t5-equanda-example/src/test/java/
t5-equanda-example/src/test/java/PLACEHOLDER
t5-equanda-example/src/test/resources/
t5-equanda-example/src/test/resources/PLACEHOLDER
Added: t5-equanda-example/pom.xml
===================================================================
--- t5-equanda-example/pom.xml (rev 0)
+++ t5-equanda-example/pom.xml 2007-11-23 12:50:25 UTC (rev 164)
@@ -0,0 +1,136 @@
+<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>
+ <groupId>org.equanda</groupId>
+ <artifactId>t5-equanda-example</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ <packaging>war</packaging>
+ <name>equanda-tapestry5 module example program</name>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.tapestry</groupId>
+ <artifactId>tapestry-core</artifactId>
+ <version>${tapestry-release-version}</version>
+ </dependency>
+
+ <!-- A dependency on either JUnit or TestNG is required, or the surefire plugin (which runs the tests)
+will fail, preventing Maven from packaging the WAR. Tapestry includes a large number
+of testing facilities designed for use with TestNG (http://testng.org/), so it's recommended. -->
+ <dependency>
+ <groupId>org.testng</groupId>
+ <artifactId>testng</artifactId>
+ <version>5.1</version>
+ <classifier>jdk15</classifier>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.equanda</groupId>
+ <artifactId>equanda-tapestry5</artifactId>
+ <version>0.9-SNAPSHOT</version>
+ </dependency>
+
+ </dependencies>
+ <build>
+ <finalName>t5example</finalName>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>1.5</source>
+ <target>1.5</target>
+ <optimize>true</optimize>
+ </configuration>
+ </plugin>
+
+ <!-- Run the application using "mvn jetty:run" -->
+ <plugin>
+ <groupId>org.mortbay.jetty</groupId>
+ <artifactId>maven-jetty-plugin</artifactId>
+ <configuration>
+ <!-- Log to the console. -->
+ <requestLog implementation="org.mortbay.jetty.NCSARequestLog">
+ <!-- This doesn't do anything for Jetty, but is a workaround for a Maven bug
+ that prevents the requestLog from being set. -->
+ <append>true</append>
+ </requestLog>
+ </configuration>
+ </plugin>
+
+
+ <!-- This changes the WAR file packaging so that what would normally go into WEB-INF/classes
+ is instead packaged as WEB-INF/lib/ca-t5gui.jar. This is necessary for Tapestry
+ to org able to search for page and component classes at startup. Only
+ certain application servers require this configuration, please see the documentation
+ at the Tapestry 5 project page (http://tapestry.apache.org/tapestry5/). -->
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-war-plugin</artifactId>
+ <configuration>
+ <archiveClasses>true</archiveClasses>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+ <reporting>
+
+ <!-- Adds a report detailing the components, mixins and base classes defined by this module. -->
+ <plugins>
+ <plugin>
+ <groupId>org.apache.tapestry</groupId>
+ <artifactId>tapestry-component-report</artifactId>
+ <version>${tapestry-release-version}</version>
+ <configuration>
+ <rootPackage>org.equanda.example.t5gui</rootPackage>
+ </configuration>
+ </plugin>
+ </plugins>
+ </reporting>
+
+ <repositories>
+
+ <repository>
+ <id>progs</id>
+ <url>http://maven.progs.org/m2repo</url>
+ </repository>
+
+ <!-- This can org commented out when the tapestry-release-version is a not a snapshot. -->
+ <!--
+ <repository>
+ <id>tapestry-snapshots</id>
+ <url>http://tapestry.formos.com/maven-snapshot-repository/</url>
+ </repository>
+ -->
+
+ <repository>
+ <id>codehaus.snapshots</id>
+ <url>http://snapshots.repository.codehaus.org</url>
+ </repository>
+ <!-- For access to the selenium JARs. -->
+ <repository>
+ <id>openqa</id>
+ <name>OpenQA Maven Repository</name>
+ <url>http://maven.openqa.org/</url>
+ </repository>
+ </repositories>
+
+ <pluginRepositories>
+
+ <!-- As above, this can org commented out when access to the snapshot version of a Tapestry Maven plugin is not required. -->
+ <!--
+ <pluginRepository>
+ <id>tapestry-snapshots</id>
+ <url>http://tapestry.formos.com/maven-snapshot-repository/</url>
+ </pluginRepository>
+ -->
+
+ </pluginRepositories>
+
+ <properties>
+ <tapestry-release-version>5.0.6</tapestry-release-version>
+ </properties>
+</project>
Added: t5-equanda-example/src/main/java/org/equanda/example/t5/components/Layout.java
===================================================================
--- t5-equanda-example/src/main/java/org/equanda/example/t5/components/Layout.java (rev 0)
+++ t5-equanda-example/src/main/java/org/equanda/example/t5/components/Layout.java 2007-11-23 12:50:25 UTC (rev 164)
@@ -0,0 +1,133 @@
+/**
+ * This file is part of the equanda project.
+ *
+ * The contents of this file are subject to the Mozilla Public License Version 1.1 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at http://www.mozilla.org/MPL/
+ *
+ * Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF
+ * ANY KIND, either express or implied. See the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * Alternatively, the contents of this file may org used under the terms of
+ * either the GNU General Public License Version 2 or later (the "GPL"), or
+ * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
+ * in which case the provisions of the GPL or the LGPL are applicable instead
+ * of those above. If you wish to allow use of your version of this file only
+ * under the terms of either the GPL or the LGPL, and not to allow others to
+ * use your version of this file under the terms of the MPL, indicate your
+ * decision by deleting the provisions above and replace them with the notice
+ * and other provisions required by the GPL or the LGPL. If you do not delete
+ * the provisions above, a recipient may use your version of this file under
+ * the terms of any one of the MPL, the GPL or the LGPL.
+ */
+
+package org.equanda.example.t5.components;
+
+import org.apache.tapestry.ioc.annotations.Inject;
+import org.apache.tapestry.annotations.Path;
+import org.apache.tapestry.annotations.Parameter;
+import org.apache.tapestry.Asset;
+import org.apache.tapestry.Block;
+
+/**
+ * ...
+ *
+ * @author <a href="mailto:jo...@pr...">Joachim Van der Auwera</a>
+ */
+public class Layout
+{
+ @Inject
+ @Path("context:css/style.css")
+ private Asset style;
+
+ @Inject
+ @Path("context:images/favicon.ico")
+ private Asset favicon;
+
+ @Inject
+ @Path("context:script/equanda.js")
+ private Asset script;
+
+ @Parameter
+ private Block sidebar;
+
+ @Parameter
+ private Block context;
+
+ @Parameter
+ private Block title;
+
+ @Parameter
+ private Block buttons;
+
+ public Asset getStyle()
+ {
+ return style;
+ }
+
+ public void setStyle( Asset style )
+ {
+ this.style = style;
+ }
+
+ public Asset getFavicon()
+ {
+ return favicon;
+ }
+
+ public void setFavicon( Asset favicon )
+ {
+ this.favicon = favicon;
+ }
+
+ public Asset getScript()
+ {
+ return script;
+ }
+
+ public void setScript( Asset script )
+ {
+ this.script = script;
+ }
+
+ public Block getSidebar()
+ {
+ return sidebar;
+ }
+
+ public void setSidebar( Block sidebar )
+ {
+ this.sidebar = sidebar;
+ }
+
+ public Block getContext()
+ {
+ return context;
+ }
+
+ public void setContext( Block context )
+ {
+ this.context = context;
+ }
+
+ public Block getTitle()
+ {
+ return title;
+ }
+
+ public void setTitle( Block title )
+ {
+ this.title = title;
+ }
+
+ public Block getButtons()
+ {
+ return buttons;
+ }
+
+ public void setButtons( Block buttons )
+ {
+ this.buttons = buttons;
+ }
+}
Added: t5-equanda-example/src/main/java/org/equanda/example/t5/pages/Start.java
===================================================================
--- t5-equanda-example/src/main/java/org/equanda/example/t5/pages/Start.java (rev 0)
+++ t5-equanda-example/src/main/java/org/equanda/example/t5/pages/Start.java 2007-11-23 12:50:25 UTC (rev 164)
@@ -0,0 +1,14 @@
+package org.equanda.example.t5.pages;
+
+import java.util.Date;
+
+/**
+ * Start page of application example-t5.
+ */
+public class Start
+{
+ public Date getCurrentTime()
+ {
+ return new Date();
+ }
+}
\ No newline at end of file
Added: t5-equanda-example/src/main/java/org/equanda/example/t5/services/AppModule.java
===================================================================
--- t5-equanda-example/src/main/java/org/equanda/example/t5/services/AppModule.java (rev 0)
+++ t5-equanda-example/src/main/java/org/equanda/example/t5/services/AppModule.java 2007-11-23 12:50:25 UTC (rev 164)
@@ -0,0 +1,105 @@
+package org.equanda.example.t5.services;
+
+import java.io.IOException;
+
+import org.apache.tapestry.ioc.MappedConfiguration;
+import org.apache.tapestry.ioc.OrderedConfiguration;
+import org.apache.tapestry.ioc.ServiceBinder;
+import org.apache.tapestry.ioc.annotations.InjectService;
+import org.apache.tapestry.services.Request;
+import org.apache.tapestry.services.RequestFilter;
+import org.apache.tapestry.services.RequestHandler;
+import org.apache.tapestry.services.Response;
+import org.slf4j.Logger;
+
+/**
+ * This module is automatically included as part of the Tapestry IoC Registry, it's a good place to
+ * configure and extend Tapestry, or to place your own service definitions.
+ */
+public class AppModule
+{
+ public static void bind(ServiceBinder binder)
+ {
+ // binder.bind(MyServiceInterface.class, MyServiceImpl.class);
+
+ // Make bind() calls on the binder object to define most IoC services.
+ // Use service builder methods (example below) when the implementation
+ // is provided inline, or requires more initialization than simply
+ // invoking the constructor.
+ }
+
+
+ public static void contributeApplicationDefaults(
+ MappedConfiguration<String, String> configuration)
+ {
+ // Contributions to ApplicationDefaults will override any contributions to
+ // FactoryDefaults (with the same key). Here we're restricting the supported
+ // locales to just "en" (English). As you add localised message catalogs and other assets,
+ // you can extend this list of locales (it's a comma seperated series of locale names;
+ // the first locale name is the default when there's no reasonable match).
+
+ configuration.add("tapestry.supported-locales", "en,nl");
+ }
+
+
+ /**
+ * This is a service definition, the service will org named "TimingFilter". The interface,
+ * RequestFilter, is used within the RequestHandler service pipeline, which is built from the
+ * RequestHandler service configuration. Tapestry IoC is responsible for passing in an
+ * appropriate Log instance. Requests for static resources are handled at a higher level, so
+ * this filter will only org invoked for Tapestry related requests.
+ *
+ * <p>
+ * Service builder methods are useful when the implementation is inline as an inner class
+ * (as here) or require some other kind of special initialization. In most cases,
+ * use the static bind() method instead.
+ *
+ * <p>
+ * If this method was named "build", then the service id would org taken from the
+ * service interface and would org "RequestFilter". Since Tapestry already defines
+ * a service named "RequestFilter" we use an explicit service id that we can reference
+ * inside the contribution method.
+ */
+ public RequestFilter buildTimingFilter(final Logger log)
+ {
+ return new RequestFilter()
+ {
+ public boolean service(Request request, Response response, RequestHandler handler)
+ throws IOException
+ {
+ long startTime = System.currentTimeMillis();
+
+ try
+ {
+ // The reponsibility of a filter is to invoke the corresponding method
+ // in the handler. When you chain multiple filters together, each filter
+ // received a handler that is a bridge to the next filter.
+
+ return handler.service(request, response);
+ }
+ finally
+ {
+ long elapsed = System.currentTimeMillis() - startTime;
+
+ log.info(String.format("Request time: %d ms", elapsed));
+ }
+ }
+ };
+ }
+
+ /**
+ * This is a contribution to the RequestHandler service configuration. This is how we extend
+ * Tapestry using the timing filter. A common use for this kind of filter is transaction
+ * management or security.
+ */
+ public void contributeRequestHandler(OrderedConfiguration<RequestFilter> configuration,
+ @InjectService("TimingFilter")
+ RequestFilter filter)
+ {
+ // Each contribution to an ordered configuration has a name, When necessary, you may
+ // set constraints to precisely control the invocation order of the contributed filter
+ // within the pipeline.
+
+ configuration.add("Timing", filter);
+ }
+}
Added: t5-equanda-example/src/main/resources/log4j.properties
===================================================================
--- t5-equanda-example/src/main/resources/log4j.properties (rev 0)
+++ t5-equanda-example/src/main/resources/log4j.properties 2007-11-23 12:50:25 UTC (rev 164)
@@ -0,0 +1,24 @@
+log4j.rootCategory=WARN, A1
+
+# A1 is set to org a ConsoleAppender.
+log4j.appender.A1=org.apache.log4j.ConsoleAppender
+
+# A1 uses PatternLayout.
+log4j.appender.A1.layout=org.apache.log4j.PatternLayout
+log4j.appender.A1.layout.ConversionPattern=[%p] %c{1} %m%n
+
+log4j.category.org.apache.tapestry.TapestryFilter=info
+log4j.category.org.apache.tapestry=error
+log4j.category.tapestry=error
+
+log4j.category.org.equanda.example.t5=error
+
+# Service category names are the name of the defining module class
+# and then the service id.
+log4j.category.org.equanda.example.t5.services.AppModule.TimingFilter=info
+
+# Turning on debug mode for a page or component will show all of the code changes that occur when the
+# class is loaded. Turning on debug mode for a page will enable detailed output about
+# the contruction of the page, including the runtime code modifications that occur. Verbose
+# mode is rarely used, as it output voluminous details about the rendering of the page.
+# log4j.category.org.equanda.example.t5.pages.Start=debug
Added: t5-equanda-example/src/main/resources/org/equanda/example/t5/components/Layout.tml
===================================================================
--- t5-equanda-example/src/main/resources/org/equanda/example/t5/components/Layout.tml (rev 0)
+++ t5-equanda-example/src/main/resources/org/equanda/example/t5/components/Layout.tml 2007-11-23 12:50:25 UTC (rev 164)
@@ -0,0 +1,75 @@
+<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
+<head>
+ <t:delegate to="title"/>
+ <link rel="shortcut icon" href="${favicon}" type="image/x-icon" />
+ <link type="text/css" rel="stylesheet" href="${style}" />
+ <script src="${script}" language="javascript" type="text/javascript" />
+</head>
+
+<body>
+
+<div id="layout-left">
+ <span t:type="equanda/Accordion" id="accordion">
+ <t:parameter name="title1">Menu First Part</t:parameter>
+ <t:parameter name="content1">
+ <p>Sample menu, the links don't do anything though...</p>
+ <div>
+ <ul>
+ <li><a href="#nowhere">Do something</a></li>
+ <li><a href="#nowhere">Something else</a></li>
+ <li><a href="#nowhere">And even more</a></li>
+ </ul>
+ </div>
+ </t:parameter>
+ <t:parameter name="title2">Another part</t:parameter>
+ <t:parameter name="content2">
+ <div><p>Just to demonstrate that you can put a lot of stuff in these menus.</p></div>
+ </t:parameter>
+ <t:parameter name="title4">Other</t:parameter>
+ <t:parameter name="content4">
+ <div>
+ <ul>
+ <li><a href="nowhere">Data</a></li>
+ <li><a href="nowhere">Reports</a></li>
+ <li><a href="nowhere">Import</a></li>
+ <li><a href="nowhere">Export</a></li>
+ </ul>
+ </div>
+ </t:parameter>
+ <t:parameter name="title5">Help</t:parameter>
+ <t:parameter name="content5">
+ <div>
+ <p>This is the <a href="http://equanda.org">equanda</a> <a href="http://equanda.org/equanda-tapesty5/">tapestry5 component</a> example.
+ This part on the left demonstrates how the Accordion component can be used to create a full height accrdion with various information.</p>
+ <p>On the right part, there is a Tabs component in action. One tab contains another Accordion component, one another tags compoennt. This is done to demonstrate that you can put multiple objects on one page.</p>
+ </div>
+ </t:parameter>
+ </span>
+</div>
+<div id="layout-right">
+ <div id="layout-context"><t:delegate to="context"/></div>
+
+ <div id="layout-info">
+ <div>
+ <div id="layout-main">
+ <t:body/>
+ </div>
+ </div>
+ </div>
+</div>
+<script type="text/javascript">
+ function setCssSizes()
+ {
+ var one = 15;
+ var padTitle = 8; /* padding + border (top+bottom) for title */
+ var padItem = 20; /* padding + border (top+bottom) for item */
+ var total = getWindowHeight() - 4 * ( one + padTitle ) - padItem;
+ var main = getWindowHeight() - document.getElementById("layout-context").getHeight();
+ var open = String.fromCharCode( 60 );
+ var close = String.fromCharCode( 62 );
+ document.write(open+'style'+close+'.accordion_title { height:'+one+'px; } .accordion_content { height: '+total+'px; } #layout-info { height:'+main+'px; } #layout-main { height:'+main+'px; } '+open+'/style'+close);
+ }
+ setCssSizes();
+</script>
+</body>
+</html>
Added: t5-equanda-example/src/main/resources/org/equanda/example/t5/pages/Start.tml
===================================================================
--- t5-equanda-example/src/main/resources/org/equanda/example/t5/pages/Start.tml (rev 0)
+++ t5-equanda-example/src/main/resources/org/equanda/example/t5/pages/Start.tml 2007-11-23 12:50:25 UTC (rev 164)
@@ -0,0 +1,34 @@
+<t:layout xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
+ <t:parameter name="title">
+ <meta http-equiv="Content-Language" content="en"/>
+ <title>Competency Analyzer</title>
+ </t:parameter>
+ <t:parameter name="context">
+ <span id="context">context info</span>
+ </t:parameter>
+
+ <p>This is the example for the <a href="http://equanda.org/equanda-tapesty5/">tapestry5 component</a> which are part
+ of <a href="http://equanda.org">equanda</a>.</p>
+ <p>This project can be found in SVN at <a href="https://equanda.svn.sourceforge.net/svnroot/equanda/t5-equanda-example">https://equanda.svn.sourceforge.net/svnroot/equanda/t5-equanda-example</a></p>
+
+ <span t:type="equanda/Tabs" id="maintabs">
+ <t:parameter name="title1">Accordion</t:parameter>
+ <t:parameter name="content1">
+ <p>An accordion component, allowing objects to be grouped in sliding panes.</p>
+ <ul>
+ <li><a href="#nowhere">Do something</a></li>
+ <li><a href="#nowhere">Something else</a></li>
+ <li><a href="#nowhere">And even more</a></li>
+ </ul>
+ </t:parameter>
+ <t:parameter name="title2">Tabs</t:parameter>
+ <t:parameter name="content2">
+ <p>An tabs component, allowing objects to be grouped and displayed as tab pages.</p>
+ <ul>
+ <li><a href="#nowhere">Do something</a></li>
+ <li><a href="#nowhere">Something else</a></li>
+ <li><a href="#nowhere">And even more</a></li>
+ </ul>
+ </t:parameter>
+ </span>
+</t:layout>
Added: t5-equanda-example/src/main/webapp/WEB-INF/web.xml
===================================================================
--- t5-equanda-example/src/main/webapp/WEB-INF/web.xml (rev 0)
+++ t5-equanda-example/src/main/webapp/WEB-INF/web.xml 2007-11-23 12:50:25 UTC (rev 164)
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!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>
+ <display-name>ca-t5gui Tapestry 5 Application</display-name>
+ <context-param>
+ <!-- The only significant configuration for Tapestry 5, this informs Tapestry of where to look for pages, components and mixins. -->
+ <param-name>tapestry.app-package</param-name>
+ <param-value>org.equanda.example.t5</param-value>
+ </context-param>
+ <filter>
+ <filter-name>app</filter-name>
+ <filter-class>org.apache.tapestry.TapestryFilter</filter-class>
+ </filter>
+ <filter-mapping>
+ <filter-name>app</filter-name>
+ <url-pattern>/*</url-pattern>
+ </filter-mapping>
+</web-app>
Added: t5-equanda-example/src/main/webapp/css/style.css
===================================================================
--- t5-equanda-example/src/main/webapp/css/style.css (rev 0)
+++ t5-equanda-example/src/main/webapp/css/style.css 2007-11-23 12:50:25 UTC (rev 164)
@@ -0,0 +1,90 @@
+.accordion_title {
+ background-color: lightgray;
+ color: black;
+ height: 15px; /* overwritten by script */
+ font-weight: normal;
+ padding-left: 5px;
+ padding-top: 3px;
+ padding-bottom: 3px;
+ border-bottom: 1px solid white;
+ border-top: 1px solid black;
+ border-right: 1px dashed black;
+ cursor: pointer;
+}
+
+.accordion_title_active {
+ font-weight: bold;
+}
+
+.accordion_content {
+ padding-top: 10px;
+ padding-bottom: 10px;
+ padding-left: 10px;
+ padding-right: 2px;
+ background-color: beige;
+ overflow: auto;
+ border-right: 1px dashed black;
+}
+
+body {
+ margin:0;
+ border:0;
+ font-family: tahoma, verdana, arial, sans-serif;
+ font-size: 13px;
+}
+
+#layout-left { float:left; width:200px; height:100%; }
+#layout-right { position:static; width:100%; height:100%; left:200px; right:auto; top:0; bottom: auto; }
+#layout-context { position:static; width:100%; height:auto; background-color: lightgray; text-align:center; }
+#layout-info { position:static; width:100%; height:220px; } /* height should be corrected by script */
+#layout-main { position:static; height:100%; overflow:auto; overflow-y:scroll; background-color:white; }
+
+.submit {
+ font-weight: bold;
+}
+
+div.domtab {
+ padding:0 3em;
+ width:80%;
+}
+ul.domtabs {
+ float:left;
+ width:100%;
+ margin: 0 0 0 0;
+ list-style:none;
+}
+ul.domtabs li {
+ float:left;
+ padding:0 .5em 0 0;
+}
+ul.domtabs a:link,
+ul.domtabs a:visited,
+ul.domtabs a:active,
+ul.domtabs a:hover {
+ width:8em;
+ padding:.2em 1em;
+ display:block;
+ background:lightgray;
+ color:black;
+ font-weight:bold;
+ text-decoration:none;
+}
+ul.domtabs a:hover {
+ background:gray;
+ color:white;
+}
+div.domtab div {
+ clear:both;
+ width:auto;
+ background:white;
+ border:solid 1px;
+ color:black;
+ padding:1em 3em;
+}
+ul.domtabs li.active a:link,
+ul.domtabs li.active a:visited,
+ul.domtabs li.active a:active,
+ul.domtabs li.active a:hover {
+ background:black;
+ color:white;
+}
Added: t5-equanda-example/src/main/webapp/images/favicon.ico
===================================================================
(Binary files differ)
Property changes on: t5-equanda-example/src/main/webapp/images/favicon.ico
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: t5-equanda-example/src/main/webapp/images/synergetics.png
===================================================================
(Binary files differ)
Property changes on: t5-equanda-example/src/main/webapp/images/synergetics.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: t5-equanda-example/src/main/webapp/script/equanda.js
===================================================================
--- t5-equanda-example/src/main/webapp/script/equanda.js (rev 0)
+++ t5-equanda-example/src/main/webapp/script/equanda.js 2007-11-23 12:50:25 UTC (rev 164)
@@ -0,0 +1,15 @@
+function getWindowHeight()
+{
+ var height = 0;
+ if( typeof( window.innerWidth ) == 'number' ) {
+ //Non-IE
+ height = window.innerHeight;
+ } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
+ //IE 6+ in 'standards compliant mode'
+ height = document.documentElement.clientHeight;
+ } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
+ //IE 4 compatible
+ height = document.body.clientHeight;
+ }
+ return height;
+}
Added: t5-equanda-example/src/test/java/PLACEHOLDER
===================================================================
--- t5-equanda-example/src/test/java/PLACEHOLDER (rev 0)
+++ t5-equanda-example/src/test/java/PLACEHOLDER 2007-11-23 12:50:25 UTC (rev 164)
@@ -0,0 +1 @@
+This placeholder exists to ensure the directory is created. It may be deleted when real files are placed under src/test/java.
\ No newline at end of file
Added: t5-equanda-example/src/test/resources/PLACEHOLDER
===================================================================
--- t5-equanda-example/src/test/resources/PLACEHOLDER (rev 0)
+++ t5-equanda-example/src/test/resources/PLACEHOLDER 2007-11-23 12:50:25 UTC (rev 164)
@@ -0,0 +1 @@
+This placeholder exists to ensure the directory is created. It may be deleted when real files are placed under src/test/resources.
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|