public final class FieldRef extends Object
A fieldref is is useful when a set of fields are created programmatically from a database table and need to be retrieved from the form (but we don't know the names of those fields since they were created dynamically -- however, those fields can be added both to the form and to a fieldref and obtained via then the name of the fieldref (whose name we do know.)
Note: Any fields contained in this object must also be added directly to the form.
Constructor and Description |
---|
FieldRef(String name)
Creates a new field with the specified name.
|
FieldRef(String name,
Object obj)
Creates a new field with the specified name and the
specified object (which may be any data structure like a
list, map or whatever containing references to fields in
the form).
|
Modifier and Type | Method and Description |
---|---|
void |
add(Object obj)
Adds an object to this fieldref.
|
List |
getList()
Returns the data object contained in this fieldref as a List.
|
Map |
getMap()
Returns the data object contained in this fieldref as a Map.
|
Object |
getObject()
Returns the data object contained in this fieldref.
|
String |
toString() |
public FieldRef(String name)