Package groovy.swing.model
Class FormModel
java.lang.Object
groovy.swing.model.FormModel
Represents a number of field models which can be ValueModel,
PropertyModel, TableModel, TreeModel or nested FormModel instances
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
FormModel
public FormModel()Creates an empty form model. -
FormModel
Creates a form model backed by the supplied model map.- Parameters:
fieldModels- the initial field model map
-
-
Method Details
-
addModel
Registers a model under the given field name.- Parameters:
name- the field namemodel- the field model to expose
-
getModel
Looks up the model associated with the supplied field name.- Parameters:
name- the field name- Returns:
- the registered model, or
nullif none exists
-