All Packages  Class Hierarchy  This Package  Previous  Next  Index
  Class w3c.jigsaw.forms.IntegerField
java.lang.Object
   |
   +----w3c.jigsaw.forms.FormField
           |
           +----w3c.jigsaw.forms.IntegerField
  -  public class IntegerField
  -  extends FormField
   
  -   IntegerField() IntegerField()
-  
  
-   IntegerField(String, String, String, Integer) IntegerField(String, String, String, Integer)
-  
   
  -   dump(HtmlGenerator) dump(HtmlGenerator)
-   Dump this field has a form element.
  
-   getValue() getValue()
-   Get this field value as an Object.
  
-   initialize(String, String, String, Object) initialize(String, String, String, Object)
-  
  
-   setValue(int) setValue(int)
-   Set the field value, as an integer.
  
-   setValue(String) setValue(String)
-   Set this integer field value to the given String value.
   
 IntegerField
IntegerField
 public IntegerField(String name,
                     String title,
                     String url,
                     Integer value)
 IntegerField
IntegerField
 public IntegerField()
   
 getValue
getValue
 public Object getValue()
  -  Get this field value as an Object.
   
- 
    -  Returns:
    
-  An instance of Object.
    
-  Overrides:
    
-  getValue in class FormField
  
 
 setValue
setValue
 public void setValue(int ival)
  -  Set the field value, as an integer.
 This method doesn't notify the form  handler of the change.
   
- 
    -  Parameters:
    
-  ival - The new integer value.
  
 
 setValue
setValue
 public boolean setValue(String nval) throws FormFieldException
  -  Set this integer field value to the given String value.
 If the value is changed, than the handler for this field is notified
 of the change through an appropriate method call.
   
- 
    -  Parameters:
    
-  nval - The new string value for this field.
    
-  Returns:
    
-  A boolean, true indicates that the field value
    has effectively changed.
    
-  Throws: FormFieldException
    
-  If the provided value didn't match
    the expected type for this field.
    
-  Overrides:
    
-  setValue in class FormField
  
 
 dump
dump
 public void dump(HtmlGenerator into)
  -  Dump this field has a form element.
 There is unfortunatelly no better way, right now to improve the
 integer editor.
   
- 
    -  Parameters:
    
-  into - The HtmlGenerator to dump the field to.
    
-  Overrides:
    
-  dump in class FormField
  
 
 initialize
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