aboutsummaryrefslogtreecommitdiffstats
path: root/plugin/icedteanp/java/sun/applet/PluginParameterParser.java
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/icedteanp/java/sun/applet/PluginParameterParser.java')
-rw-r--r--plugin/icedteanp/java/sun/applet/PluginParameterParser.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugin/icedteanp/java/sun/applet/PluginParameterParser.java b/plugin/icedteanp/java/sun/applet/PluginParameterParser.java
index 56dabc9..51ffc9e 100644
--- a/plugin/icedteanp/java/sun/applet/PluginParameterParser.java
+++ b/plugin/icedteanp/java/sun/applet/PluginParameterParser.java
@@ -1,6 +1,5 @@
package sun.applet;
-import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
@@ -69,16 +68,15 @@ public class PluginParameterParser {
}
/**
- * Parsers parameters given a string containing
+ * Parsers parameters given a string containing
* parameters in quotes.
- *
* @param width default applet width
* @param height default applet height
- * @param parameterString the parameters
+ * @param parameterString the parameters
+ *
* @return the attributes in a hash table
*/
- public PluginParameters parse(String width,
- String height, String parameterString) {
+ public PluginParameters parse(String xpos, String ypos, String width, String height, String parameterString) {
Map<String, String> params = parseEscapedKeyValuePairs(parameterString);
if (params.get("width") == null || !isInt(params.get("width"))) {
@@ -88,6 +86,8 @@ public class PluginParameterParser {
if (params.get("height") == null || !isInt(params.get("height"))) {
params.put("height", height);
}
+ params.put("xpos", xpos);
+ params.put("ypos", ypos);
return new PluginParameters(params);
}