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/03/15 20:35:31 UTC
svn commit: r518738 -
/incubator/wicket/branches/wicket-1.x/jdk-1.4/wicket/src/main/java/wicket/markup/html/form/HiddenField.java
Author: ehillenius
Date: Thu Mar 15 12:35:31 2007
New Revision: 518738
URL: http://svn.apache.org/viewvc?view=rev&rev=518738
Log:
formatted
Modified:
incubator/wicket/branches/wicket-1.x/jdk-1.4/wicket/src/main/java/wicket/markup/html/form/HiddenField.java
Modified: incubator/wicket/branches/wicket-1.x/jdk-1.4/wicket/src/main/java/wicket/markup/html/form/HiddenField.java
URL: http://svn.apache.org/viewvc/incubator/wicket/branches/wicket-1.x/jdk-1.4/wicket/src/main/java/wicket/markup/html/form/HiddenField.java?view=diff&rev=518738&r1=518737&r2=518738
==============================================================================
--- incubator/wicket/branches/wicket-1.x/jdk-1.4/wicket/src/main/java/wicket/markup/html/form/HiddenField.java (original)
+++ incubator/wicket/branches/wicket-1.x/jdk-1.4/wicket/src/main/java/wicket/markup/html/form/HiddenField.java Thu Mar 15 12:35:31 2007
@@ -19,23 +19,29 @@
import wicket.model.IModel;
/**
- * TextField doesn't permit the html <input type='hidden'> so this is a simple subclass to allow this
+ * TextField doesn't permit the html <input type='hidden'> so this is a simple
+ * subclass to allow this
*
- * A HiddenField is useful when you have a javascript based component that updates the form state.
- * Either
+ * A HiddenField is useful when you have a javascript based component that
+ * updates the form state. Either
*
- * 1) add a AttributeModified to set the id attribute, then use document.getElementById(id), or
- * 2) lookup the field name=getPath() within the form
+ * <ul>
+ * <li> add a AttributeModified to set the id attribute, then use
+ * document.getElementById(id) </li>
+ * <li> lookup the field name=getPath() within the form </li>
+ * </ul>
*
* @author Cameron Braid
*/
public class HiddenField extends TextField
{
private static final long serialVersionUID = 1L;
-
+
/**
* Construct.
- * @param id component id
+ *
+ * @param id
+ * component id
*/
public HiddenField(String id)
{
@@ -44,8 +50,11 @@
/**
* Construct.
- * @param id component id
- * @param type the type to use when updating the model for this text field
+ *
+ * @param id
+ * component id
+ * @param type
+ * the type to use when updating the model for this text field
*/
public HiddenField(String id, Class type)
{
@@ -53,27 +62,35 @@
}
/**
- * @param id component id
- * @param model the model
- * @param type the type to use when updating the model for this text field
- * @see wicket.Component#Component(String, IModel)
+ * Construct.
+ *
+ * @param id
+ * see Component
+ * @param model
+ * the model
*/
- public HiddenField(String id, IModel model, Class type)
+ public HiddenField(String id, IModel model)
{
- super(id, model, type);
+ super(id, model);
}
/**
- * Construct.
- * @param id see Component
- * @param model the model
+ * @param id
+ * component id
+ * @param model
+ * the model
+ * @param type
+ * the type to use when updating the model for this text field
+ * @see wicket.Component#Component(String, IModel)
*/
- public HiddenField(String id, IModel model)
+ public HiddenField(String id, IModel model, Class type)
{
- super(id, model);
+ super(id, model, type);
}
-
+ /**
+ * @see wicket.markup.html.form.TextField#getInputType()
+ */
protected String getInputType()
{
return "hidden";