All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class w3c.jigsaw.forms.DoubleField

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

public class DoubleField
extends FormField

Constructor Index

 o DoubleField()
 o DoubleField(String, String, String, Double)
Create a new double field.

Method Index

 o dump(HtmlGenerator)
Dump this field as a form element.
 o getValue()
Get this field value.
 o initialize(String, String, String, Object)
 o setValue(String)
Set this field's value, by parsing the provided String.

Constructors

 o DoubleField
 public DoubleField(String name,
                    String title,
                    String url,
                    Double value) throws FormFieldException
Create a new double field.

Parameters:
name - The name of the field.
title - The title of the field.
url - The URL of the field.
value - Its initial value.
 o DoubleField
 public DoubleField()

Methods

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

Overrides:
getValue in class FormField
 o setValue
 public boolean setValue(String nval) throws FormFieldException
Set this field's value, by parsing the provided String.

Parameters:
nval - The new field value.
Returns:
A boolean true if the value is valid.
Overrides:
setValue in class FormField
 o dump
 public void dump(HtmlGenerator into)
Dump this field as 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