From 3b66927df49de1f98901c225d720dff584cc11ae Mon Sep 17 00:00:00 2001 From: Joonas Lehtinen Date: Wed, 3 Jan 2007 14:26:07 +0000 Subject: Millstone -> IT Mill Toolkit svn changeset:220/svn branch:toolkit --- src/com/itmill/toolkit/event/Action.java | 2 +- src/com/itmill/toolkit/event/EventRouter.java | 2 +- .../itmill/toolkit/event/MethodEventSource.java | 12 +++++----- src/com/itmill/toolkit/event/package.html | 6 ++--- src/com/itmill/toolkit/package.html | 14 ++++++----- .../itmill/toolkit/service/ApplicationContext.java | 2 +- src/com/itmill/toolkit/service/package.html | 4 ++-- src/com/itmill/toolkit/terminal/PaintTarget.java | 2 +- .../toolkit/terminal/web/AjaxPaintTarget.java | 2 +- .../toolkit/terminal/web/ApplicationServlet.java | 2 +- .../toolkit/terminal/web/HttpVariableMap.java | 2 +- src/com/itmill/toolkit/terminal/web/Theme.java | 27 +--------------------- .../toolkit/terminal/web/ThemeFunctionLibrary.java | 2 -- .../toolkit/terminal/web/UIDLTransformer.java | 2 +- .../terminal/web/UIDLTransformerFactory.java | 2 +- .../terminal/web/WebApplicationContext.java | 2 +- .../toolkit/terminal/web/WebPaintTarget.java | 2 +- src/com/itmill/toolkit/terminal/web/XSLReader.java | 5 ++-- src/com/itmill/toolkit/terminal/web/package.html | 3 +-- src/com/itmill/toolkit/ui/AbstractComponent.java | 14 +++++------ .../toolkit/ui/AbstractComponentContainer.java | 2 +- src/com/itmill/toolkit/ui/Component.java | 3 +-- src/com/itmill/toolkit/ui/Layout.java | 3 +-- src/com/itmill/toolkit/ui/package.html | 2 +- 24 files changed, 45 insertions(+), 74 deletions(-) diff --git a/src/com/itmill/toolkit/event/Action.java b/src/com/itmill/toolkit/event/Action.java index ce61c97022..2b8e72e053 100644 --- a/src/com/itmill/toolkit/event/Action.java +++ b/src/com/itmill/toolkit/event/Action.java @@ -30,7 +30,7 @@ package com.itmill.toolkit.event; import com.itmill.toolkit.terminal.*; -/** Implements the MillStone action framework. This class contains +/** Implements the action framework. This class contains * subinterfaces for action handling and listing, and for action handler * registrations and unregistration. * diff --git a/src/com/itmill/toolkit/event/EventRouter.java b/src/com/itmill/toolkit/event/EventRouter.java index db83085300..7e1849756d 100644 --- a/src/com/itmill/toolkit/event/EventRouter.java +++ b/src/com/itmill/toolkit/event/EventRouter.java @@ -33,7 +33,7 @@ import java.util.LinkedList; import java.util.Iterator; import java.lang.reflect.Method; -/** Event router class implementing the MillStone inheritable event +/** Event router class implementing the inheritable event * listening model. For more information on the event model see the * {@link com.itmill.toolkit.event package documentation}. * diff --git a/src/com/itmill/toolkit/event/MethodEventSource.java b/src/com/itmill/toolkit/event/MethodEventSource.java index fa994ee9b7..4851f34d9a 100644 --- a/src/com/itmill/toolkit/event/MethodEventSource.java +++ b/src/com/itmill/toolkit/event/MethodEventSource.java @@ -33,7 +33,7 @@ import java.lang.reflect.Method; /**

Interface for classes supporting registeration of methods as event * receivers.

* - *

For more information on the MillStone inheritable event mechanism + *

For more information on the inheritable event mechanism * see the * {@link com.itmill.toolkit.event com.itmill.toolkit.event package documentation}.

* @@ -48,7 +48,7 @@ public interface MethodEventSource { * activation method does not have any arguments the event object will * not be passed to it when it's called.

* - *

For more information on the MillStone inheritable event mechanism + *

For more information on the inheritable event mechanism * see the * {@link com.itmill.toolkit.event com.itmill.toolkit.event package documentation}.

* @@ -71,7 +71,7 @@ public interface MethodEventSource { * object, and unless exactly one match is found, * java.lang.IllegalArgumentException is thrown.

* - *

For more information on the MillStone inheritable event mechanism + *

For more information on the inheritable event mechanism * see the * {@link com.itmill.toolkit.event com.itmill.toolkit.event package documentation}.

* @@ -90,7 +90,7 @@ public interface MethodEventSource { * are registered to listen to events of type eventType * generated by this component. * - *

For more information on the MillStone inheritable event mechanism + *

For more information on the inheritable event mechanism * see the * {@link com.itmill.toolkit.event com.itmill.toolkit.event package documentation}.

* @@ -104,7 +104,7 @@ public interface MethodEventSource { * the given object will no longer be called when the specified events * are generated by this component. * - *

For more information on the MillStone inheritable event mechanism + *

For more information on the inheritable event mechanism * see the * {@link com.itmill.toolkit.event com.itmill.toolkit.event package documentation}.

* @@ -125,7 +125,7 @@ public interface MethodEventSource { * target, and unless exactly one match is found, * java.lang.IllegalArgumentException is thrown.

* - *

For more information on the MillStone inheritable event mechanism + *

For more information on the inheritable event mechanism * see the * {@link com.itmill.toolkit.event com.itmill.toolkit.event package documentation}.

* diff --git a/src/com/itmill/toolkit/event/package.html b/src/com/itmill/toolkit/event/package.html index aed4f0f052..0b82b94989 100644 --- a/src/com/itmill/toolkit/event/package.html +++ b/src/com/itmill/toolkit/event/package.html @@ -7,16 +7,16 @@ -

Provides classes and interfaces for the MillStone inheritable event +

Provides classes and interfaces for the inheritable event model. The model supports inheritable events and a flexible way of registering and unregistering event listeners. It's a fundamental building -block of the MillStone framework, and as it is included in +block of the IT Mill Toolkit, and as it is included in {@link com.itmill.toolkit.ui.AbstractComponent}, all UI components automatically support it.

Package Specification

-

The core of the MillStone event model is the inheritable event class +

The core of the event model is the inheritable event class hierarchy, and the {@link com.itmill.toolkit.event.EventRouter EventRouter} which provide a simple, ubiquitous mechanism to transport events to all interested parties.

diff --git a/src/com/itmill/toolkit/package.html b/src/com/itmill/toolkit/package.html index d731f0ce0f..be8e7fe395 100644 --- a/src/com/itmill/toolkit/package.html +++ b/src/com/itmill/toolkit/package.html @@ -5,29 +5,31 @@ -

This package is the base of the Millstone library. The base package -contains the Application class, the starting point of the Millstone Terminal Independent application. +

This package is the base of the IT Mill Toolkit. The base package +contains the Application class, the starting point of any aplication that uses IT Mill Toolkit. The sub-packages from this point contain application components and utilities.

Package Specification

- The Millstone library base is composed of the following packages: + IT Mill Toolkit is composed of the following packages:
com.itmill.toolkit.data
A library of interfaces for transparently binding UI components to datasources.
com.itmill.toolkit.data.util
Basic implementations of data-intfaces and utidtties for working with data-bound components.
-
com.itmill.toolkit.data.vadtdator
-
Classes providing data-vadtdation for Properties.
+
com.itmill.toolkit.data.validator
+
Classes providing data-validation for Properties.
com.itmill.toolkit.event
Interfaces defining how to send and recieve events.
com.itmill.toolkit.service
Classes provding miscelaneous utidtty services.
com.itmill.toolkit.terminal
Classes and interfaces for implementing the terminal specific adapters.
+
com.itmill.toolkit.terminal.web
+
Classes that implement support both for AJAX-based and more limited web browsers.
com.itmill.toolkit.ui
-
The Millstone UI components.
+
UI components.
diff --git a/src/com/itmill/toolkit/service/ApplicationContext.java b/src/com/itmill/toolkit/service/ApplicationContext.java index 2cc36fe2b9..e25a58cc9f 100644 --- a/src/com/itmill/toolkit/service/ApplicationContext.java +++ b/src/com/itmill/toolkit/service/ApplicationContext.java @@ -45,7 +45,7 @@ public interface ApplicationContext { /** Returns application context base directory. * - * Typically millstone application is deployed in a such way that is + * Typically an application is deployed in a such way that is * has application directory. For web applications this directory is the * root directory of the web applications. In some cases application * might not have application directory (for example web applications diff --git a/src/com/itmill/toolkit/service/package.html b/src/com/itmill/toolkit/service/package.html index 393fe83544..03857d9cad 100644 --- a/src/com/itmill/toolkit/service/package.html +++ b/src/com/itmill/toolkit/service/package.html @@ -7,8 +7,8 @@ -

Provides some general service classes used throughout a MillStone -application.

+

Provides some general service classes used throughout a IT Mill Toolkit +based applications.

diff --git a/src/com/itmill/toolkit/terminal/PaintTarget.java b/src/com/itmill/toolkit/terminal/PaintTarget.java index e5bd6f80b9..322a5e1dcc 100644 --- a/src/com/itmill/toolkit/terminal/PaintTarget.java +++ b/src/com/itmill/toolkit/terminal/PaintTarget.java @@ -79,7 +79,7 @@ public interface PaintTarget { /** Print element end tag. * * If the parent tag is closed before - * every child tag is closed an MillstoneException is raised. + * every child tag is closed an PaintException is raised. * * @param tag The name of the end tag * @exception IOException The writing failed due to input/output error diff --git a/src/com/itmill/toolkit/terminal/web/AjaxPaintTarget.java b/src/com/itmill/toolkit/terminal/web/AjaxPaintTarget.java index 62183609bf..be289fa766 100644 --- a/src/com/itmill/toolkit/terminal/web/AjaxPaintTarget.java +++ b/src/com/itmill/toolkit/terminal/web/AjaxPaintTarget.java @@ -180,7 +180,7 @@ public class AjaxPaintTarget implements PaintTarget { * Print element end tag. * * If the parent tag is closed before every child tag is closed an - * MillstoneException is raised. + * PaintException is raised. * * @param tag * The name of the end tag diff --git a/src/com/itmill/toolkit/terminal/web/ApplicationServlet.java b/src/com/itmill/toolkit/terminal/web/ApplicationServlet.java index e72c9d2b8f..4de1b052bc 100644 --- a/src/com/itmill/toolkit/terminal/web/ApplicationServlet.java +++ b/src/com/itmill/toolkit/terminal/web/ApplicationServlet.java @@ -389,7 +389,7 @@ public class ApplicationServlet extends HttpServlet implements * Get ThemeSources from given path. Construct the list of avalable themes * in path using the following sources: 1. content of THEME_PATH directory * (if available) 2. The themes listed in THEME_LIST_FILE 3. "themesource" - * application parameter - "org. millstone.webadapter. themesource" system + * application parameter - "ThemeSource" system * property * * @param THEME_DIRECTORY_PATH diff --git a/src/com/itmill/toolkit/terminal/web/HttpVariableMap.java b/src/com/itmill/toolkit/terminal/web/HttpVariableMap.java index b14739f862..9e52ddf261 100644 --- a/src/com/itmill/toolkit/terminal/web/HttpVariableMap.java +++ b/src/com/itmill/toolkit/terminal/web/HttpVariableMap.java @@ -51,7 +51,7 @@ import java.util.LinkedList; import java.util.Iterator; /** - * Class implementing the MillStone WebAdapter variable mappings. + * Class implementing the variable mappings. * * @author IT Mill Ltd. * @version @VERSION@ diff --git a/src/com/itmill/toolkit/terminal/web/Theme.java b/src/com/itmill/toolkit/terminal/web/Theme.java index ee204c7f95..9fcac790fa 100644 --- a/src/com/itmill/toolkit/terminal/web/Theme.java +++ b/src/com/itmill/toolkit/terminal/web/Theme.java @@ -48,7 +48,7 @@ import org.xml.sax.Attributes; /** * This class provides an interface to the meta-information regarding a - * particular webadapter theme. This entails for instanace the inheritance tree + * particular theme. This entails for instanace the inheritance tree * of the various xsl-template files, the different requirments that the theme * imposes on the client browser, etc. *

@@ -77,31 +77,6 @@ import org.xml.sax.Attributes; *

* The theme description is XML data, and it can be loaded from file or stream. * The default filename is specified by Theme.DESCRIPTIONFILE. - * Example of theme description file: - * - *

- *   <?xml version="1.0" encoding="UTF-8"?>
- * 
- * 	<theme name="normal">
- *  
- * 	<extends theme="simple"/>
- *      
- * 	<description>The normal theme for all browsers</description>
- *  	<author name="IT Mill Ltd" email="millstone@itmill.com" />
- * 
- * 		<fileset>
- *   		<require>
- *    			<supports javascript="JavaScript 1.0"/>
- *    		</require>
- * 
- * 			<file name="common/error.xsl" /> 
- * 			<file name="components/button.xsl" /> 
- * 			<file name="components/select.xsl" />
- * 			<file name="components/textfield.xsl" />
- * 			<file name="components/table.xsl" />
- *  		</fileset>
- *  	</theme>
- * 
* *

* diff --git a/src/com/itmill/toolkit/terminal/web/ThemeFunctionLibrary.java b/src/com/itmill/toolkit/terminal/web/ThemeFunctionLibrary.java index 6a9398f049..ab24228fbe 100644 --- a/src/com/itmill/toolkit/terminal/web/ThemeFunctionLibrary.java +++ b/src/com/itmill/toolkit/terminal/web/ThemeFunctionLibrary.java @@ -168,8 +168,6 @@ public class ThemeFunctionLibrary { /** * Generate JavaScript for page that performs client-side combility checks. - * The script includes HTML/JavaScript commands to be included in the body - * of the millstone-form. */ static public boolean probeClient() { return (browser().performClientCheck() && !browser() diff --git a/src/com/itmill/toolkit/terminal/web/UIDLTransformer.java b/src/com/itmill/toolkit/terminal/web/UIDLTransformer.java index 2796cc3190..057ab369e2 100644 --- a/src/com/itmill/toolkit/terminal/web/UIDLTransformer.java +++ b/src/com/itmill/toolkit/terminal/web/UIDLTransformer.java @@ -51,7 +51,7 @@ import javax.xml.transform.ErrorListener; import javax.xml.transform.SourceLocator; import javax.xml.transform.OutputKeys; -/** Class implementing the MillStone WebAdapter UIDLTransformer. +/** Class implementing the UIDLTransformer. * * The thansformer should not be created directly; it should be contructed * using getTransformer() provided by UIDLTransformerFactory. diff --git a/src/com/itmill/toolkit/terminal/web/UIDLTransformerFactory.java b/src/com/itmill/toolkit/terminal/web/UIDLTransformerFactory.java index 616b54a46e..16e240db62 100644 --- a/src/com/itmill/toolkit/terminal/web/UIDLTransformerFactory.java +++ b/src/com/itmill/toolkit/terminal/web/UIDLTransformerFactory.java @@ -35,7 +35,7 @@ import java.util.LinkedList; import java.util.Map; import java.util.Iterator; -/** Class implementing the MillStone WebAdapter UIDLTransformer Factory. +/** Class implementing the UIDLTransformer Factory. * The factory creates and maintains a pool of transformers that are used * for transforming UIDL to HTML. * diff --git a/src/com/itmill/toolkit/terminal/web/WebApplicationContext.java b/src/com/itmill/toolkit/terminal/web/WebApplicationContext.java index 5df7fe66c9..f083f99bd8 100644 --- a/src/com/itmill/toolkit/terminal/web/WebApplicationContext.java +++ b/src/com/itmill/toolkit/terminal/web/WebApplicationContext.java @@ -46,7 +46,7 @@ import com.itmill.toolkit.service.ApplicationContext; import com.itmill.toolkit.ui.Window; /** - * Web application context for Millstone applications. + * Web application context for the IT Mill Toolkit applications. * * @author IT Mill Ltd. * @version diff --git a/src/com/itmill/toolkit/terminal/web/WebPaintTarget.java b/src/com/itmill/toolkit/terminal/web/WebPaintTarget.java index 0fa63ed1b1..1e2a1ffb27 100644 --- a/src/com/itmill/toolkit/terminal/web/WebPaintTarget.java +++ b/src/com/itmill/toolkit/terminal/web/WebPaintTarget.java @@ -153,7 +153,7 @@ public class WebPaintTarget implements PaintTarget { /** Print element end tag. * * If the parent tag is closed before - * every child tag is closed an MillstoneException is raised. + * every child tag is closed a PaintException is raised. * * @param tag The name of the end tag */ diff --git a/src/com/itmill/toolkit/terminal/web/XSLReader.java b/src/com/itmill/toolkit/terminal/web/XSLReader.java index f3d4b63548..a3a5545236 100644 --- a/src/com/itmill/toolkit/terminal/web/XSLReader.java +++ b/src/com/itmill/toolkit/terminal/web/XSLReader.java @@ -46,7 +46,7 @@ import org.xml.sax.SAXNotSupportedException; import org.xml.sax.SAXParseException; import org.xml.sax.XMLReader; -/** Class implementing XMLReader for the MillStone WebAdapter UIDLTransformer. +/** Class implementing XMLReader for the UIDLTransformer. * * @author IT Mill Ltd. * @version @VERSION@ @@ -90,7 +90,7 @@ public class XSLReader implements XMLReader, ContentHandler { xsltProcessor = XSLT_WEBLOGIC; else { throw new RuntimeException( - "\nThis version of Millstone Web Adapter " + "\nThis version of IT Mill Toolkit " + " does not support the selected XSLT-processer:\n " + transformerName + "\n" @@ -421,7 +421,6 @@ public class XSLReader implements XMLReader, ContentHandler { public String getURI(int index) { String uri = original.getURI(index); - // Map millstone:// namespaces to transformer specific namespaces if (uri != null && uri.startsWith(JAVA_PREFIX)) { System.out.print("DEBUG " + uri + " --> "); diff --git a/src/com/itmill/toolkit/terminal/web/package.html b/src/com/itmill/toolkit/terminal/web/package.html index 5e034235df..774ad5f5af 100644 --- a/src/com/itmill/toolkit/terminal/web/package.html +++ b/src/com/itmill/toolkit/terminal/web/package.html @@ -8,8 +8,7 @@ -

Provides the functionality of the MillStone Web Adapter, which adapts the -MillStone applications to Web standards. (FIXME: We need a rather more extensive lithany here.)

+

This package implement web terminal for both AJAX-capable and more limited web browsers.

Package Specification

diff --git a/src/com/itmill/toolkit/ui/AbstractComponent.java b/src/com/itmill/toolkit/ui/AbstractComponent.java index dfbcc90913..3016861790 100644 --- a/src/com/itmill/toolkit/ui/AbstractComponent.java +++ b/src/com/itmill/toolkit/ui/AbstractComponent.java @@ -44,7 +44,7 @@ import java.lang.reflect.Method; /** An abstract class that defines default implementation for the * {@link Component} interface. Basic UI components that are not derived * from an external component can inherit this class to easily qualify as a - * MillStone component. Most components in the MillStone base UI package do + * IT Mill Toolkit component. Most components in the toolkit do * just that. * * @author IT Mill Ltd. @@ -83,7 +83,7 @@ public abstract class AbstractComponent /** The container this component resides in. */ private Component parent = null; - /** The EventRouter used for the MillStone event model. */ + /** The EventRouter used for the event model. */ private EventRouter eventRouter = null; /** The internal error message of the component. */ @@ -625,7 +625,7 @@ public abstract class AbstractComponent * does not have any arguments the event object will not be passed to it * when it's called.

* - *

For more information on the MillStone inheritable event mechanism + *

For more information on the inheritable event mechanism * see the * {@link com.itmill.toolkit.event com.itmill.toolkit.event package documentation}.

* @@ -652,7 +652,7 @@ public abstract class AbstractComponent * object, and unless exactly one match is found, * java.lang.IllegalArgumentException is thrown.

* - *

For more information on the MillStone inheritable event mechanism + *

For more information on the inheritable event mechanism * see the * {@link com.itmill.toolkit.event com.itmill.toolkit.event package documentation}.

* @@ -678,7 +678,7 @@ public abstract class AbstractComponent * are registered to listen to events of type eventType * generated by this component. * - *

For more information on the MillStone inheritable event mechanism + *

For more information on the inheritable event mechanism * see the * {@link com.itmill.toolkit.event com.itmill.toolkit.event package documentation}.

* @@ -695,7 +695,7 @@ public abstract class AbstractComponent * the given object will no longer be called when the specified events * are generated by this component. * - *

For more information on the MillStone inheritable event mechanism + *

For more information on the inheritable event mechanism * see the * {@link com.itmill.toolkit.event com.itmill.toolkit.event package documentation}.

* @@ -719,7 +719,7 @@ public abstract class AbstractComponent * target, and unless exactly one match is found, * java.lang.IllegalArgumentException is thrown.

* - *

For more information on the MillStone inheritable event mechanism + *

For more information on the inheritable event mechanism * see the * {@link com.itmill.toolkit.event com.itmill.toolkit.event package documentation}.

* diff --git a/src/com/itmill/toolkit/ui/AbstractComponentContainer.java b/src/com/itmill/toolkit/ui/AbstractComponentContainer.java index e7b142f828..282f3d489a 100644 --- a/src/com/itmill/toolkit/ui/AbstractComponentContainer.java +++ b/src/com/itmill/toolkit/ui/AbstractComponentContainer.java @@ -35,7 +35,7 @@ import java.util.Iterator; /** Extension to {@link AbstractComponent} that defines the default * implementation for the methods in {@link ComponentContainer}. Basic UI * components that need to contain other components inherit this class to - * easily qualify as a MillStone component container. + * easily qualify as a component container. * * @author IT Mill Ltd * @version @VERSION@ diff --git a/src/com/itmill/toolkit/ui/Component.java b/src/com/itmill/toolkit/ui/Component.java index 1f0b25e18c..fe7dcfeb94 100644 --- a/src/com/itmill/toolkit/ui/Component.java +++ b/src/com/itmill/toolkit/ui/Component.java @@ -40,8 +40,7 @@ import java.util.EventObject; import java.util.Locale; /** The top-level component interface which must be implemented by all - * MillStone UI components. It contains the methods the MillStone framework - * needs to handle the components in a user interface. + * UI components that use IT Mill Toolkit * * @author IT Mill Ltd. * @version @VERSION@ diff --git a/src/com/itmill/toolkit/ui/Layout.java b/src/com/itmill/toolkit/ui/Layout.java index e3805f6dd1..3164c0933d 100644 --- a/src/com/itmill/toolkit/ui/Layout.java +++ b/src/com/itmill/toolkit/ui/Layout.java @@ -31,8 +31,7 @@ package com.itmill.toolkit.ui; /** Extension to the {@link ComponentContainer} interface which adds the * layouting control to the elements in the container. This is * required by the various layout components to enable them to place other - * components in specific locations in the UI. This interface is empty in - * MillStone 3.0, but will be extended in MillStone 3.1. + * components in specific locations in the UI. * * @author IT Mill Ltd. * @version @VERSION@ diff --git a/src/com/itmill/toolkit/ui/package.html b/src/com/itmill/toolkit/ui/package.html index aa30b19b61..026793ba9a 100644 --- a/src/com/itmill/toolkit/ui/package.html +++ b/src/com/itmill/toolkit/ui/package.html @@ -8,7 +8,7 @@ -

Provides interfaces and classes in the the MillStone UI component library.

+

Provides interfaces and classes in the IT Mill Toolkit.

Package Specification

-- cgit v1.2.3