Author: ehillenius
Date: Sat Jan 13 18:44:07 2007
New Revision: 496021

URL: http://svn.apache.org/viewvc?view=rev&rev=496021
Log:
tweak for consistency

Modified:
    
incubator/wicket/trunk/wicket/src/main/java/wicket/markup/html/form/FormComponent.java
    
incubator/wicket/trunk/wicket/src/main/java/wicket/markup/html/form/TextField.java

Modified: 
incubator/wicket/trunk/wicket/src/main/java/wicket/markup/html/form/FormComponent.java
URL: 
http://svn.apache.org/viewvc/incubator/wicket/trunk/wicket/src/main/java/wicket/markup/html/form/FormComponent.java?view=diff&rev=496021&r1=496020&r2=496021
==============================================================================
--- 
incubator/wicket/trunk/wicket/src/main/java/wicket/markup/html/form/FormComponent.java
 (original)
+++ 
incubator/wicket/trunk/wicket/src/main/java/wicket/markup/html/form/FormComponent.java
 Sat Jan 13 18:44:07 2007
@@ -168,7 +168,7 @@
        /**
         * Type that the raw input string will be converted to
         */
-       private Class type;
+       private Class<? extends T> type;
 
        /**
         * Make empty strings null values boolean. Used by AbstractTextComponent
@@ -1058,7 +1058,7 @@
        /**
         * @return the type to use when updating the model for this form 
component
         */
-       public final Class getType()
+       public final Class<? extends T> getType()
        {
                return type;
        }
@@ -1070,7 +1070,7 @@
         * @param type
         * @return this for chaining
         */
-       public final FormComponent setType(Class type)
+       public final FormComponent setType(Class<? extends T> type)
        {
                this.type = type;
                if (type != null && type.isPrimitive())

Modified: 
incubator/wicket/trunk/wicket/src/main/java/wicket/markup/html/form/TextField.java
URL: 
http://svn.apache.org/viewvc/incubator/wicket/trunk/wicket/src/main/java/wicket/markup/html/form/TextField.java?view=diff&rev=496021&r1=496020&r2=496021
==============================================================================
--- 
incubator/wicket/trunk/wicket/src/main/java/wicket/markup/html/form/TextField.java
 (original)
+++ 
incubator/wicket/trunk/wicket/src/main/java/wicket/markup/html/form/TextField.java
 Sat Jan 13 18:44:07 2007
@@ -71,7 +71,8 @@
         *            The type to use when updating the model for this text 
field
         * @see wicket.Component#Component(MarkupContainer,String, IModel)
         */
-       public TextField(MarkupContainer parent, final String id, IModel<T> 
model, Class type)
+       public TextField(MarkupContainer parent, final String id, IModel<T> 
model,
+                       Class<? extends T> type)
        {
                super(parent, id, model);
                setType(type);


Reply via email to