aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/terminal
diff options
context:
space:
mode:
authorArtur Signell <artur.signell@itmill.com>2010-05-25 10:42:27 +0000
committerArtur Signell <artur.signell@itmill.com>2010-05-25 10:42:27 +0000
commit6725924d262a04513cf54a515e0b2304b7e5efa4 (patch)
tree7970a5f9de9f1f2e6f0740c599fa70c93be25bde /src/com/vaadin/terminal
parent46b0a5b26b1652a6d7f112cb30b82629996afb73 (diff)
downloadvaadin-framework-6725924d262a04513cf54a515e0b2304b7e5efa4.tar.gz
vaadin-framework-6725924d262a04513cf54a515e0b2304b7e5efa4.zip
Javadoc #4913
svn changeset:13349/svn branch:6.4
Diffstat (limited to 'src/com/vaadin/terminal')
-rw-r--r--src/com/vaadin/terminal/ParameterHandler.java36
1 files changed, 19 insertions, 17 deletions
diff --git a/src/com/vaadin/terminal/ParameterHandler.java b/src/com/vaadin/terminal/ParameterHandler.java
index 501dbcd992..be124d4bbd 100644
--- a/src/com/vaadin/terminal/ParameterHandler.java
+++ b/src/com/vaadin/terminal/ParameterHandler.java
@@ -7,17 +7,21 @@ package com.vaadin.terminal;
import java.io.Serializable;
import java.util.Map;
+import com.vaadin.ui.Window;
+
/**
- * Interface implemented by all the classes capable of handling external
- * parameters.
+ * {@code ParameterHandler} is implemented by classes capable of handling
+ * external parameters.
*
* <p>
- * Some terminals can provide external parameters for application. For example
- * GET and POST parameters are passed to application as external parameters on
- * Web Adapter. The parameters can be received at any time during the
- * application lifecycle. All the parameter handlers implementing this interface
- * and registered to {@link com.vaadin.ui.Window} receive all the parameters got
- * from the terminal in the given window.
+ * What parameters are provided depend on what the {@link Terminal} provides and
+ * if the application is deployed as a servlet or portlet. URL GET parameters
+ * are typically provided to the {@link #handleParameters(Map)} method.
+ * </p>
+ * <p>
+ * A {@code ParameterHandler} must be registered to a {@code Window} using
+ * {@link Window#addParameterHandler(ParameterHandler)} to be called when
+ * parameters are available.
* </p>
*
* @author IT Mill Ltd.
@@ -28,27 +32,25 @@ import java.util.Map;
public interface ParameterHandler extends Serializable {
/**
- * <p>
- * Handles the given parameters. The parameters are given as inmodifieable
- * name to value map. All parameters names are of type:
- * {@link java.lang.String}. All the parameter values are arrays of strings.
- * </p>
+ * Handles the given parameters. All parameters names are of type
+ * {@link String} and the values are {@link String} arrays.
*
* @param parameters
- * the Inmodifiable name to value[] mapping.
+ * an unmodifiable map which contains the parameter names and
+ * values
*
*/
public void handleParameters(Map<String, String[]> parameters);
/**
- * ParameterHandler error event.
+ * An ErrorEvent implementation for ParameterHandler.
*/
public interface ErrorEvent extends Terminal.ErrorEvent {
/**
- * Gets the source ParameterHandler.
+ * Gets the ParameterHandler that caused the error.
*
- * @return the source Parameter Handler.
+ * @return the ParameterHandler that caused the error
*/
public ParameterHandler getParameterHandler();