All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class w3c.jigsaw.forms.TextArrayField

java.lang.Object
   |
   +----w3c.jigsaw.forms.FormField
           |
           +----w3c.jigsaw.forms.TextArrayField

public class TextArrayField
extends FormField

Variable Index

 o strval

Constructor Index

 o TextArrayField()
 o TextArrayField(String, String, String)
 o TextArrayField(String, String, String, String[])

Method Index

 o computeString(Object)
Compute the string to display for the given list of items
 o differs(Object, Object)
 o dump(HtmlGenerator)
Dump this fieldas a form element.
 o getValue()
Get this field's value.
 o initialize(String, String, String, Object)
 o parseString(String)
Parse the given \r or \n sparated list of items into an array of items.
 o setValue(String)
Set this field's value to the given String.
 o setValue(String[])
Set this field's value.

Variables

 o strval
 protected String strval

Constructors

 o TextArrayField
 public TextArrayField(String name,
                       String title,
                       String url)
 o TextArrayField
 public TextArrayField(String name,
                       String title,
                       String url,
                       String value[])
 o TextArrayField
 public TextArrayField()

Methods

 o getValue
 public Object getValue()
Get this field's value.

Overrides:
getValue in class FormField
 o parseString
 protected Object parseString(String str)
Parse the given \r or \n sparated list of items into an array of items.

Parameters:
str - The string to parse.
Returns:
An array of String.
 o computeString
 protected String computeString(Object val)
Compute the string to display for the given list of items

 o differs
 protected boolean differs(Object v1,
                           Object v2)
 o setValue
 public boolean setValue(String nval) throws FormFieldException
Set this field's value to the given String. The string is parsed, each line makes one entry in the array of text.

Parameters:
nval - The new value, as a single String to be parsed.
Returns:
A boolean, true indicates that the field's value has changed.
Throws: FormFieldException
If the provided value didn't match the expected type.
Overrides:
setValue in class FormField
 o setValue
 public boolean setValue(String value[])
Set this field's value.

Parameters:
value - The new value for the field.
 o dump
 public void dump(HtmlGenerator into)
Dump this fieldas a form element.

Parameters:
into - The HtmlGenerator to dump the field to.
Overrides:
dump in class FormField
 o initialize
 public void initialize(String name,
                        String title,
                        String url,
                        Object val) throws FormFieldException
Overrides:
initialize in class FormField

All Packages  Class Hierarchy  This Package  Previous  Next  Index