Java org.apache.wicket.markup.html.form FormComponent fields, constructors, methods, implement or subclass

Example usage for Java org.apache.wicket.markup.html.form FormComponent fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.wicket.markup.html.form FormComponent.

The text is from its open source code.

Subclass

org.apache.wicket.markup.html.form.FormComponent has subclasses.
Click this link to see all its subclasses.

Field

StringVALUE_SEPARATOR
The value separator

Constructor

Method

FormComponentadd(final IValidator validator)
Adds a validator to this form component
FormComponentadd(final IValidator... validators)
Adds a validator to this form component.
voidconvertInput()
Converts and validates the conversion of the raw input string into the object specified by FormComponent#getType() and records any thrown ConversionException s.
voiderror(IValidationError error)
Reports a validation error against this form component.
TgetConvertedInput()
Gets the converted input.
ObjectgetDefaultModelObject()
FormgetForm()
StringgetInput()
Gets the request parameter for this component as a string.
StringgetInputName()
Gets the string to be used for the name attribute of the form element.
IModelgetModel()
Typesafe getter for the model
TgetModelObject()
Typesafe getter for the model's object
StringgetRawInput()
Use hasRawInput() to check if this component has raw input because null can mean 2 things: It doesn't have rawinput or the rawinput is really null.
List>getValidators()
Gets an unmodifiable list of validators for this FormComponent.
StringgetValue()
Gets current value for a form component, which can be either input data entered by the user, or the component's model object if no input was provided.
voidinputChanged()
Used by Form to tell the FormComponent that a new user input is available
voidinvalid()
Indicate that validation of this form component failed.
booleanisRequired()
booleanisValid()
Gets whether this component is 'valid'.
voidprocessInput()
This method will retrieve the request parameter, validate it, and if valid update the model.
ComponentsetDefaultModel(IModel model)
ComponentsetDefaultModelObject(Object object)
FormComponentsetLabel(IModel labelModel)
The value will be made available to the validator property by means of ${label}.
CsetModel(IModel model)
Typesafe setter for the model
CsetModelObject(T object)
Typesafe setter for the model object
voidsetModelValue(final String[] value)
Sets the value for a form component.
FormComponentsetRequired(final boolean required)
Sets the required flag
FormComponentsetType(Class type)
Sets the type that will be used when updating the model for this component.
voidupdateCollectionModel(FormComponent> formComponent)
Update the model of a FormComponent containing a Collection .
voidupdateModel()
Updates this components model from the request, it expects that the object is already converted through the convertInput() call that is called by the validate() method when a form is being processed.
voidvalid()
Called to indicate that the user input is valid.
voidvalidate()
Performs full validation of the form component, which consists of calling validateRequired(), convertInput(), and validateValidators().