harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apetre...@apache.org
Subject svn commit: r628036 - /harmony/enhanced/classlib/trunk/modules/applet/src/main/java/org/apache/harmony/applet/Parameters.java
Date Fri, 15 Feb 2008 12:13:36 GMT
Author: apetrenko
Date: Fri Feb 15 04:13:36 2008
New Revision: 628036

URL: http://svn.apache.org/viewvc?rev=628036&view=rev
Log:
New constructor has been added

Modified:
    harmony/enhanced/classlib/trunk/modules/applet/src/main/java/org/apache/harmony/applet/Parameters.java

Modified: harmony/enhanced/classlib/trunk/modules/applet/src/main/java/org/apache/harmony/applet/Parameters.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/applet/src/main/java/org/apache/harmony/applet/Parameters.java?rev=628036&r1=628035&r2=628036&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/applet/src/main/java/org/apache/harmony/applet/Parameters.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/applet/src/main/java/org/apache/harmony/applet/Parameters.java
Fri Feb 15 04:13:36 2008
@@ -22,6 +22,7 @@
 
 import java.net.URL;
 import java.util.Map;
+import java.util.HashMap;
 
 /**
  * Applet's startup parameters
@@ -66,6 +67,30 @@
         this.className = className;
         this.name = name;
         this.container = container;
+    }
+
+    Parameters(int id,
+                long parentWindowId,
+                URL documentBase,
+                int documentId,
+                URL codeBase,
+                String className,
+                String []paramStrings,
+                String name,
+                Object container) {
+
+        this.id = id;
+        this.parentWindowId = parentWindowId;
+        this.documentBase = documentBase;
+        this.documentId = documentId;
+        this.codeBase = codeBase;
+        this.className = className;
+        this.name = name;
+        this.container = container;
+        
+        this.parameters = new HashMap<String, String>(paramStrings.length/2);
+        for (int i = 0; i+1 < paramStrings.length; i += 2)
+            parameters.put(paramStrings[i], paramStrings[i+1]);
     }
 
     String getParameter(String name) {



Mime
View raw message