Example usage for Java org.apache.wicket.markup.html.form FormComponent fields, constructors, methods, implement or subclass
The text is from its open source code.
String | VALUE_SEPARATOR The value separator |
FormComponent | add(final IValidator super T> validator) Adds a validator to this form component |
FormComponent | add(final IValidator super T>... validators) Adds a validator to this form component. |
void | convertInput() Converts and validates the conversion of the raw input string into the object specified by FormComponent#getType() and records any thrown ConversionException s. |
void | error(IValidationError error) Reports a validation error against this form component. |
T | getConvertedInput() Gets the converted input. |
Object | getDefaultModelObject() |
Form> | getForm() |
String | getInput() Gets the request parameter for this component as a string. |
String | getInputName() Gets the string to be used for the name attribute of the form element. |
IModel | getModel() Typesafe getter for the model |
T | getModelObject() Typesafe getter for the model's object |
String | getRawInput() 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. |
String | getValue() 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. |
void | inputChanged() Used by Form to tell the FormComponent that a new user input is available |
void | invalid() Indicate that validation of this form component failed. |
boolean | isRequired() |
boolean | isValid() Gets whether this component is 'valid'. |
void | processInput() This method will retrieve the request parameter, validate it, and if valid update the model. |
Component | setDefaultModel(IModel> model) |
Component | setDefaultModelObject(Object object) |
FormComponent | setLabel(IModel The value will be made available to the validator property by means of ${label}. |
C | setModel(IModel Typesafe setter for the model |
C | setModelObject(T object) Typesafe setter for the model object |
void | setModelValue(final String[] value) Sets the value for a form component. |
FormComponent | setRequired(final boolean required) Sets the required flag |
FormComponent | setType(Class> type) Sets the type that will be used when updating the model for this component. |
void | updateCollectionModel(FormComponent Update the model of a FormComponent containing a Collection . |
void | updateModel() 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. |
void | valid() Called to indicate that the user input is valid. |
void | validate() Performs full validation of the form component, which consists of calling validateRequired(), convertInput(), and validateValidators(). |