Package | Description |
---|---|
fc.web.forms |
Encapsulates HTML forms as java objects (Usage Diagram [in new window], Class Hierarchy Diagram).
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractText
Represents a field that:
returns one (1) string as their value.
|
class |
Checkbox
Represents a HTML form's checkbox element.
|
class |
CheckboxGroup
Represents a grouped set of check boxes.
|
class |
Choice
Abstracts an HTML choice type such as choicebox or radio.
|
class |
ChoiceGroup
Abstracts a HTML grouped choice element type such as choicebox or radio.
|
class |
DependentField
A dependent field.
|
class |
DependentSelect
A dependent HTML DependentSelect field.
|
class |
Hidden
Represents an HTML hidden field.
|
class |
MaxSizable
Represents an HTML field that accepts a 'maxlength' html
attribute
|
class |
Password
Encapsulates a password field.
|
class |
Radio
Represents a HTML form's radio element.
|
class |
RadioGroup
Represents a grouped set of radio buttons
|
class |
RefreshableSelect
An refreshable HTML Select field.
|
class |
Select
An HTML Select field
|
class |
Text
Represents an HTML text field
|
class |
TextArea
A HTML TextArea
|
Modifier and Type | Method and Description |
---|---|
Field |
Form.get(String name)
Returns the form field with the specified name.
|
Field |
FieldValidator.getField()
Returns the field associated with this validator.
|
Field |
Field.renderError(FormData fd,
Writer writer)
Calls
renderError(Writer, String) with <br> as
the message seperator string. |
Field |
Field.renderError(FormData fd,
Writer writer,
String htmlSep)
Convenience method to render validation errors.
|
Modifier and Type | Method and Description |
---|---|
Form |
Form.add(Field field)
Adds the specified element to the form.
|
Object |
TestDependency.getInitialValues(Field f) |
Object |
Dependency.getInitialValues(Field f)
Returns the initial values for the target field These are the values that
are displayed when the form is first rendered.
|
Object |
Form.remove(Field field)
Removes the specified field from the form.
|
Constructor and Description |
---|
FieldValidator(Field field,
String errorMessage)
Creates a new validator.
|
VFilled(Field field,
String errorMessage)
Creates a new validator that fails validation if the fields
is not filled out by the user.
|
VFilledGroup(Form f,
String name,
String errorMessage,
Field[] fields) |
VFilledOnChoice(Form f,
String name,
String errorMessage,
ChoiceGroup cg,
String choiceValue,
Field[] postFields) |