Enum FieldType

  • All Implemented Interfaces:
    Serializable, Comparable<FieldType>

    public enum FieldType
    extends Enum<FieldType>

    Java class for fieldType.

    The following schema fragment specifies the expected content contained within this class.

     <simpleType name="fieldType">
       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
         <enumeration value="text"/>
         <enumeration value="longtext"/>
         <enumeration value="richtext"/>
         <enumeration value="password"/>
         <enumeration value="url"/>
         <enumeration value="int"/>
         <enumeration value="long"/>
         <enumeration value="decimal"/>
         <enumeration value="checkbox"/>
         <enumeration value="coordinate"/>
         <enumeration value="date"/>
         <enumeration value="file"/>
         <enumeration value="file-multiple"/>
         <enumeration value="image"/>
         <enumeration value="linkpanel"/>
         <enumeration value="list:checkbox"/>
         <enumeration value="list:radio"/>
         <enumeration value="list:select"/>
         <enumeration value="list:text"/>
         <enumeration value="object"/>
         <enumeration value="list:object"/>
       </restriction>
     </simpleType>
     
    • Enum Constant Detail

      • LONGTEXT

        public static final FieldType LONGTEXT
        A property containing a (possibly large) String.
      • RICHTEXT

        public static final FieldType RICHTEXT
        A property containing a (possibly large) String, which contains richtext (usually HTML).
      • PASSWORD

        public static final FieldType PASSWORD
        A property containing a String which represents a password.
      • URL

        public static final FieldType URL
        A property containing a URL.
      • CHECKBOX

        public static final FieldType CHECKBOX
        A field containing a Boolean or a boolean, usually displayed as checkbox.
      • COORDINATE

        public static final FieldType COORDINATE
        A property containing a org.appng.tools.locator.Coordinate, usually displayed as two input fields together with a map.
      • DATE

        public static final FieldType DATE
        A property containing a Date, formatted with the format defined in FieldDef.getFormat(). Usually displayed together with a calendar.
      • FILE

        public static final FieldType FILE
        A property containing a org.appng.forms.FormUpload, usually displayed as file-upload dialog for a single file.
      • FILE_MULTIPLE

        public static final FieldType FILE_MULTIPLE
        A property containing a collection of org.appng.forms.FormUploads, usually displayed as file-upload dialog for a multiple files.
      • IMAGE

        public static final FieldType IMAGE
        Displays an icon.
      • LIST_CHECKBOX

        public static final FieldType LIST_CHECKBOX
        A property containing a collection which is being displayed as a list of checkboxes.
      • LIST_RADIO

        public static final FieldType LIST_RADIO
        A property containing a collection which is being displayed as a list of radio-buttons.
      • LIST_SELECT

        public static final FieldType LIST_SELECT
        A property containing a collection which is being displayed as a dropdown list.
      • LIST_TEXT

        public static final FieldType LIST_TEXT
        A property containing a collection of Strings
      • OBJECT

        public static final FieldType OBJECT
        A property containing an object
      • LIST_OBJECT

        public static final FieldType LIST_OBJECT
        A property containing a collection of objects
    • Method Detail

      • values

        public static FieldType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (FieldType c : FieldType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static FieldType valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • value

        public String value()