Last change
on this file since 158 was
158,
checked in by keesvb, 13 years ago
|
add values to stringlist template fields
|
File size:
554 bytes
|
Line | |
---|
1 | package dbnp.studycapturing |
---|
2 | |
---|
3 | /** |
---|
4 | * This is the superclass for template fields. Normally, this class will not be instantiated. |
---|
5 | * |
---|
6 | * Revision information: |
---|
7 | * $Rev$ |
---|
8 | * $Author$ |
---|
9 | * $Date$ |
---|
10 | */ |
---|
11 | abstract class TemplateField implements Serializable { |
---|
12 | String name |
---|
13 | TemplateFieldType type |
---|
14 | String unit |
---|
15 | |
---|
16 | static hasMany = [listEntries : String] // to store the entries to choose from when the type is 'item from predefined list' |
---|
17 | |
---|
18 | static constraints = { |
---|
19 | name(unique: true) |
---|
20 | unit(nullable: true, blank: true) |
---|
21 | } |
---|
22 | |
---|
23 | def String toString() { |
---|
24 | return name |
---|
25 | } |
---|
26 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.