Package org.molgenis.fieldtypes

Examples of org.molgenis.fieldtypes.EnumField


    {
      addType(new BoolField());
      addType(new DateField());
      addType(new DatetimeField());
      addType(new DecimalField());
      addType(new EnumField());
      addType(new EmailField());
      addType(new FileField());
      addType(new HyperlinkField());
      addType(new ImageField());
      addType(new LongField());
View Full Code Here


  {
    MolgenisFieldTypes.addType(new BoolField());
    MolgenisFieldTypes.addType(new DateField());
    MolgenisFieldTypes.addType(new DatetimeField());
    MolgenisFieldTypes.addType(new DecimalField());
    MolgenisFieldTypes.addType(new EnumField());
    MolgenisFieldTypes.addType(new FileField());
    MolgenisFieldTypes.addType(new ImageField());
    MolgenisFieldTypes.addType(new HyperlinkField());
    MolgenisFieldTypes.addType(new LongField());
    MolgenisFieldTypes.addType(new MrefField());
View Full Code Here

  {
    Vector<String> enumOptions = new Vector<String>();
    enumOptions.add("option1");
    enumOptions.add("option2");

    Field field = new Field(mock(Entity.class), "field", new EnumField());
    field.setEnumOptions(enumOptions);
    assertEquals(field.getEnumOptions(), enumOptions);
  }
View Full Code Here

        {
          enumOptions.add(firstToUpper(subclass.getName()));
        }
        if (e.getField(Field.TYPE_FIELD) == null)
        {
          Field type_field = new Field(e, new EnumField(), Field.TYPE_FIELD, Field.TYPE_FIELD, true, false,
              true, null);
          type_field.setDescription("Subtypes have to be set to allow searching");
          // FIXME should be true, but breaks existing apps
          // type_field.setSystem(true);
          type_field.setHidden(true);
View Full Code Here

        enumOptions.add(entity.getName());
        for (Entity subclass : subclasses)
        {
          enumOptions.add(subclass.getName());
        }
        Field type_field = new Field(rootAncestor, new EnumField(), Field.TYPE_FIELD, Field.TYPE_FIELD, true,
            false, false, null);
        type_field.setDescription("Subtypes of " + entity.getName() + ". Have to be set to allow searching");
        type_field.setEnumOptions(enumOptions);
        type_field.setHidden(true);
        rootAncestor.addField(0, type_field);
View Full Code Here

TOP

Related Classes of org.molgenis.fieldtypes.EnumField

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.