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/26 01:11:48 UTC

svn commit: r569741 - /wicket/trunk/jdk-1.4/wicket-datetime/src/main/java/org/apache/wicket/datetime/DateConverter.java

Author: ehillenius
Date: Sat Aug 25 16:11:47 2007
New Revision: 569741

URL: http://svn.apache.org/viewvc?rev=569741&view=rev
Log:
sorted members of DateConverter

Modified:
    wicket/trunk/jdk-1.4/wicket-datetime/src/main/java/org/apache/wicket/datetime/DateConverter.java

Modified: wicket/trunk/jdk-1.4/wicket-datetime/src/main/java/org/apache/wicket/datetime/DateConverter.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket-datetime/src/main/java/org/apache/wicket/datetime/DateConverter.java?rev=569741&r1=569740&r2=569741&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket-datetime/src/main/java/org/apache/wicket/datetime/DateConverter.java (original)
+++ wicket/trunk/jdk-1.4/wicket-datetime/src/main/java/org/apache/wicket/datetime/DateConverter.java Sat Aug 25 16:11:47 2007
@@ -79,18 +79,6 @@
 	}
 
 	/**
-	 * Gets the locale to use.
-	 * 
-	 * @return the locale from either the component if that is set, or from the
-	 *         session
-	 */
-	protected Locale getLocale()
-	{
-		Component c = getComponent();
-		return (c != null) ? c.getLocale() : Session.get().getLocale();
-	}
-
-	/**
 	 * @see org.apache.wicket.util.convert.IConverter#convertToObject(java.lang.String,
 	 *      java.util.Locale)
 	 */
@@ -193,11 +181,30 @@
 	}
 
 	/**
+	 * @return optional component to use for determining the locale.
+	 */
+	public final Component getComponent()
+	{
+		return component;
+	}
+
+	/**
 	 * @return Gets the pattern that is used for printing and parsing
 	 */
 	public abstract String getDatePattern();
 
 	/**
+	 * Sets component for getting the locale
+	 * 
+	 * @param component
+	 *            optional component to use for determining the locale.
+	 */
+	public final void setComponent(Component component)
+	{
+		this.component = component;
+	}
+
+	/**
 	 * Gets the client's time zone.
 	 * 
 	 * @return The client's time zone or null
@@ -218,32 +225,25 @@
 	protected abstract DateTimeFormatter getFormat();
 
 	/**
-	 * Gets the server time zone. Override this method if you want to fix to a
-	 * certain time zone, regardless of what actual time zone the server is in.
+	 * Gets the locale to use.
 	 * 
-	 * @return The server time zone
-	 */
-	protected DateTimeZone getTimeZone()
-	{
-		return DateTimeZone.getDefault();
-	}
-
-	/**
-	 * @return optional component to use for determining the locale.
+	 * @return the locale from either the component if that is set, or from the
+	 *         session
 	 */
-	public final Component getComponent()
+	protected Locale getLocale()
 	{
-		return component;
+		Component c = getComponent();
+		return (c != null) ? c.getLocale() : Session.get().getLocale();
 	}
 
 	/**
-	 * Sets component for getting the locale
+	 * Gets the server time zone. Override this method if you want to fix to a
+	 * certain time zone, regardless of what actual time zone the server is in.
 	 * 
-	 * @param component
-	 *            optional component to use for determining the locale.
+	 * @return The server time zone
 	 */
-	public final void setComponent(Component component)
+	protected DateTimeZone getTimeZone()
 	{
-		this.component = component;
+		return DateTimeZone.getDefault();
 	}
 }