You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by eh...@apache.org on 2007/08/28 08:09:37 UTC

svn commit: r570320 - /wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/ClientProperties.java

Author: ehillenius
Date: Mon Aug 27 23:09:37 2007
New Revision: 570320

URL: http://svn.apache.org/viewvc?rev=570320&view=rev
Log:
added setTimeZone

Modified:
    wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/ClientProperties.java

Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/ClientProperties.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/ClientProperties.java?rev=570320&r1=570319&r2=570320&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/ClientProperties.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/ClientProperties.java Mon Aug 27 23:09:37 2007
@@ -49,6 +49,7 @@
 {
 	private static final long serialVersionUID = 1L;
 
+	private int browserHeight = -1;
 	private boolean browserInternetExplorer;
 	private boolean browserKonqueror;
 	private boolean browserMozilla;
@@ -57,11 +58,12 @@
 	private boolean browserSafari;
 	private int browserVersionMajor = -1;
 	private int browserVersionMinor = -1;
+	private int browserWidth = -1;
+	private boolean cookiesEnabled;
+	private boolean javaEnabled;
 	private String navigatorAppCodeName;
 	private String navigatorAppName;
 	private String navigatorAppVersion;
-	private boolean cookiesEnabled;
-	private boolean javaEnabled;
 	private String navigatorLanguage;
 	private String navigatorPlatform;
 	private String navigatorUserAgent;
@@ -79,17 +81,15 @@
 	private boolean quirkIETextareaNewlineObliteration;
 	private boolean quirkMozillaPerformanceLargeDomRemove;
 	private boolean quirkMozillaTextInputRepaint;
+	private String remoteAddress;
 	private int screenColorDepth = -1;
 	private int screenHeight = -1;
 	private int screenWidth = -1;
-	private int browserWidth = -1;
-	private int browserHeight = -1;
-	private String utcOffset;
-	private String utcDSTOffset;
-	private String remoteAddress;
-
 	/** Cached timezone for repeating calls to {@link #getTimeZone()} */
 	private TimeZone timeZone;
+	private String utcDSTOffset;
+
+	private String utcOffset;
 
 
 	/**
@@ -330,24 +330,24 @@
 	}
 
 	/**
-	 * @return The client's time offset from UTC in minutes (note: if you do this yourself, use 'new
-	 *         Date(new Date().getFullYear(), 0, 1, 0, 0, 0, 0).getTimezoneOffset() / -60' (note the
-	 *         -)).
+	 * @return The client's time DST offset from UTC in minutes (note: if you do this yourself, use
+	 *         'new Date(new Date().getFullYear(), 0, 6, 0, 0, 0, 0).getTimezoneOffset() / -60'
+	 *         (note the -)).
 	 */
-	public String getUtcOffset()
+	public String getUtcDSTOffset()
 	{
-		return utcOffset;
+		return utcDSTOffset;
 	}
 
 
 	/**
-	 * @return The client's time DST offset from UTC in minutes (note: if you do this yourself, use
-	 *         'new Date(new Date().getFullYear(), 0, 6, 0, 0, 0, 0).getTimezoneOffset() / -60'
-	 *         (note the -)).
+	 * @return The client's time offset from UTC in minutes (note: if you do this yourself, use 'new
+	 *         Date(new Date().getFullYear(), 0, 1, 0, 0, 0, 0).getTimezoneOffset() / -60' (note the
+	 *         -)).
 	 */
-	public String getUtcDSTOffset()
+	public String getUtcOffset()
 	{
-		return utcDSTOffset;
+		return utcOffset;
 	}
 
 	/**
@@ -1016,13 +1016,13 @@
 	}
 
 	/**
-	 * @param utcOffset
-	 *            The client's time offset from UTC in minutes (note: if you do this yourself, use
-	 *            'new Date().getTimezoneOffset() / -60' (note the -)).
+	 * Sets time zone.
+	 * 
+	 * @param timeZone
 	 */
-	public void setUtcOffset(String utcOffset)
+	public void setTimeZone(TimeZone timeZone)
 	{
-		this.utcOffset = utcOffset;
+		this.timeZone = timeZone;
 	}
 
 	/**
@@ -1031,6 +1031,16 @@
 	public void setUtcDSTOffset(String utcDSTOffset)
 	{
 		this.utcDSTOffset = utcDSTOffset;
+	}
+
+	/**
+	 * @param utcOffset
+	 *            The client's time offset from UTC in minutes (note: if you do this yourself, use
+	 *            'new Date().getTimezoneOffset() / -60' (note the -)).
+	 */
+	public void setUtcOffset(String utcOffset)
+	{
+		this.utcOffset = utcOffset;
 	}
 
 	public String toString()