Package: groovy.swing.model

## [Java] Class FormModel

- groovy.swing.model.FormModel

-     public class FormModel
      extends Object

  Represents a number of field models which can be ValueModel, PropertyModel, TableModel, TreeModel or nested FormModel instances

- - ### Constructor Summary

    Constructors
    Constructor and description
    `FormModel()` Creates an empty form model.
    `FormModel(Map<String, Object> fieldModels)` Creates a form model backed by the supplied model map.

  - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `public void` | `addModel(String name, Object model)` Registers a model under the given field name.
    `` | `public Object` | `getModel(String name)` Looks up the model associated with the supplied field name.

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class Object` | `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### public FormModel()

      Creates an empty form model.

    - #### public FormModel(Map<String, Object> fieldModels)

      Creates a form model backed by the supplied model map.

      Parameters:
        `fieldModels` - the initial field model map

  - ### Method Detail

    - #### public void addModel(String name, Object model)

      Registers a model under the given field name.

      Parameters:
        `name` - the field name
        `model` - the field model to expose

    - #### public Object getModel(String name)

      Looks up the model associated with the supplied field name.

      Parameters:
        `name` - the field name
      Returns:
        the registered model, or `null` if none exists