net.sf.colle.forms.test
Class TestForm

java.lang.Object
  extended bynet.sf.colle.forms.test.TestForm

public class TestForm
extends Object

Generated file for validating the TestForm form. DO NOT EDIT. Make changes to net/sf/colle/forms/FormCodeGenerator.gen and regenerate. Some top level java doc goes here. Top level structure java doc here. Created: 6 Jun 2001

Author:
net/sf/colle/forms/FormCodeGenerator.gen

Nested Class Summary
static class TestForm.Car
          Java doc for the car list structure Define the inner car structure class.
static class TestForm.Color
          Define the inner color FormSet class.
static class TestForm.State
          Define the inner state FormSet class.
 
Constructor Summary
TestForm()
          Constructs a TestForm with the same name.
TestForm(String psName)
          Constructs a TestForm with the specified name.
 
Method Summary
 Number getAge()
          Returns the 'age' form element.
 FormList getCarList()
          Returns the 'car' form element.
 TestForm.Color getColor()
          Returns the 'color' form element.
 Form getForm()
          Returns the inner form structure.
 Text getName()
          Returns the 'name' form element.
static String getResource(String psName, String psLocale)
          Returns a resource from the form definition.
static Map getResourceBundles()
          Returns an unmodifiable map keyed by locale, containing resource bundles for each locale.
 TestForm.State getState()
          Returns the 'state' form element.
 boolean isMainState()
          Returns true if the state is main.
 TestForm.Car newCar()
          Creates a new instance of a car that can be put into the list.
 void setMainState()
          Sets the state to main.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestForm

public TestForm()
Constructs a TestForm with the same name.


TestForm

public TestForm(String psName)
Constructs a TestForm with the specified name. When this form is mapped the top level structure will have the name specified here.

Method Detail

getName

public Text getName()
Returns the 'name' form element.

Returns:
form element instance

getAge

public Number getAge()
Returns the 'age' form element.

Returns:
form element instance

getCarList

public FormList getCarList()
Returns the 'car' form element.

Returns:
form element instance

getState

public TestForm.State getState()
Returns the 'state' form element.

Returns:
form element instance

getColor

public TestForm.Color getColor()
Returns the 'color' form element.

Returns:
form element instance

newCar

public TestForm.Car newCar()
Creates a new instance of a car that can be put into the list.


setMainState

public void setMainState()
Sets the state to main.


isMainState

public boolean isMainState()
Returns true if the state is main.


getResource

public static String getResource(String psName,
                                 String psLocale)
Returns a resource from the form definition.


getResourceBundles

public static Map getResourceBundles()
Returns an unmodifiable map keyed by locale, containing resource bundles for each locale. Each resource bundle is another unmodifiable map keyed by resource name strings and containing resource strings.


getForm

public Form getForm()
Returns the inner form structure. Your form 'has-a' net.sf.colle.forms.Form object as opposed to 'is-a' (inheritance) form structure to minimize naming collisions. For instance it would be impossible to have a form text field called 'name' if your form was derived from net.sf.colle.forms.Form because of the getName() method.