Ignore:
Timestamp:
Jan 28, 2010, 5:34:50 PM (9 years ago)
Author:
duh
Message:
  • wizard subjects page now build a table with features, does not work properly yet
  • youtube autoplay help items are possible now
  • development grouping page for selecting subjects and grouping them by dragging and dropping
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/domain/dbnp/studycapturing/TemplateFieldType.groovy

    r139 r145  
    33/**
    44 * Enum describing the type of a templated field.
     5 * Revision information:
     6 * $Rev$
     7 * $Author$
     8 * $Date$
    59 */
    610public enum TemplateFieldType {
    7     STRING('String'),
    8     INTEGER('Integer number'),
    9     FLOAT('Decimal number'),
    10     STRINGLIST('List of items'),
    11     ONTOLOGYTERM('Ontology Reference')
     11        STRING('String'),
     12        INTEGER('Integer number'),
     13        FLOAT('Decimal number'),
     14        STRINGLIST('List of items'),
     15        ONTOLOGYTERM('Ontology Reference')
    1216
    13     String name
     17        String name
    1418
    15     TemplateFieldType(String name) {
    16      this.name = name
    17     }
     19        TemplateFieldType(String name) {
     20                this.name = name
     21        }
    1822
    19     static list() {
    20      [STRING, INTEGER, FLOAT, STRINGLIST, ONTOLOGYTERM]
    21     }
     23        static list() {
     24                [STRING, INTEGER, FLOAT, STRINGLIST, ONTOLOGYTERM]
     25        }
    2226
    23   // It would be nice to see the description string in the scaffolding,
    24   // and the following works, but then the item cannot be saved properly.
    25   // TODO: find a way to display the enum description but save the enum value in the scaffolding
    26   /*def String toString() {
    27       return this.name
    28   }*/
    29 
     27        // It would be nice to see the description string in the scaffolding,
     28        // and the following works, but then the item cannot be saved properly.
     29        // TODO: find a way to display the enum description but save the enum value in the scaffolding
     30        /*
     31        def String toString() {
     32                  return this.name
     33        }
     34        */
    3035}
Note: See TracChangeset for help on using the changeset viewer.