wicket-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thran...@apache.org
Subject svn commit: r722711 - /wicket/trunk/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/form/DateTextField.java
Date Wed, 03 Dec 2008 01:45:09 GMT
Author: thrantal
Date: Tue Dec  2 17:45:08 2008
New Revision: 722711

URL: http://svn.apache.org/viewvc?rev=722711&view=rev
Log:
WICKET-1879: Added missing type parameter

Modified:
    wicket/trunk/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/form/DateTextField.java

Modified: wicket/trunk/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/form/DateTextField.java
URL: http://svn.apache.org/viewvc/wicket/trunk/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/form/DateTextField.java?rev=722711&r1=722710&r2=722711&view=diff
==============================================================================
--- wicket/trunk/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/form/DateTextField.java
(original)
+++ wicket/trunk/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/form/DateTextField.java
Tue Dec  2 17:45:08 2008
@@ -21,8 +21,8 @@
 import java.util.Date;
 import java.util.Locale;
 
-import org.apache.wicket.markup.html.form.TextField;
 import org.apache.wicket.markup.html.form.AbstractTextComponent.ITextFormatProvider;
+import org.apache.wicket.markup.html.form.TextField;
 import org.apache.wicket.model.IModel;
 import org.apache.wicket.util.convert.IConverter;
 import org.apache.wicket.util.convert.converters.DateConverter;
@@ -41,7 +41,7 @@
  * @author Igor Vaynberg (ivaynberg)
  * 
  */
-public class DateTextField extends TextField implements ITextFormatProvider
+public class DateTextField extends TextField<Date> implements ITextFormatProvider
 {
 
 	private static final long serialVersionUID = 1L;
@@ -85,7 +85,7 @@
 	 * 
 	 * @see org.apache.wicket.markup.html.form.TextField
 	 */
-	public DateTextField(String id, IModel model)
+	public DateTextField(String id, IModel<Date> model)
 	{
 		this(id, model, DEFAULT_PATTERN);
 	}
@@ -117,17 +117,18 @@
 	 * 
 	 * @see org.apache.wicket.markup.html.form.TextField
 	 */
-	public DateTextField(String id, IModel model, String datePattern)
+	public DateTextField(String id, IModel<Date> model, String datePattern)
 	{
 		super(id, model, Date.class);
 		this.datePattern = datePattern;
-		this.converter = new DateConverter()
+		converter = new DateConverter()
 		{
 			private static final long serialVersionUID = 1L;
 
 			/**
 			 * @see org.apache.wicket.util.convert.converters.DateConverter#getDateFormat(java.util.Locale)
 			 */
+			@Override
 			public DateFormat getDateFormat(Locale locale)
 			{
 				return new SimpleDateFormat(DateTextField.this.datePattern);
@@ -146,7 +147,8 @@
 	 * 
 	 * @see org.apache.wicket.markup.html.form.TextField
 	 */
-	public IConverter getConverter(Class type)
+	@Override
+	public IConverter getConverter(Class<?> type)
 	{
 		if (converter == null)
 		{



Mime
View raw message