Enum Class CustomFieldType
- All Implemented Interfaces:
Serializable
,Comparable<CustomFieldType>
,Constable
Represents a custom field.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionRepresents an automatic progress field.Represents a checkbox field.Represents a currency field.Represents a date field.Represents a drop-down field.Represents an email field.Represents an emoji, specifically a rating of emoji, the type config gives the emoji and amount (1-5).Represents a label field.Represents a location field.Represents a manual progress field.Represents a number field.Represents a phone field.Represents a short text field.Represents a task field, may return a task.Represents a text field.Represents a new field unknown to this library.Represents a URL field.Represents a user field, may return a user. -
Method Summary
Modifier and TypeMethodDescriptionClass<? extends ICustomField>
Returns the associated class with this custom field.boolean
Returns if this field has custom type config.static CustomFieldType
Returns the enum constant of this class with the specified name.static CustomFieldType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
URL
Represents a URL field. However, the URL is not validated. -
DROP_DOWN
Represents a drop-down field. Type Config consists of a list of options, with a default and placeholder. -
EMAIL
Represents an email field. -
PHONE
Represents a phone field. -
DATE
Represents a date field. This field is actually validated and returns an OffsetDateTime if cast to a DateCustomField.- See Also:
-
TEXT
Represents a text field. -
CHECKBOX
Represents a checkbox field. -
NUMBER
Represents a number field. -
CURRENCY
Represents a currency field. Type Config refers to the precision, type, and default of the currency. -
TASKS
Represents a task field, may return a task. -
USERS
Represents a user field, may return a user. -
EMOJI
Represents an emoji, specifically a rating of emoji, the type config gives the emoji and amount (1-5). -
LABELS
Represents a label field. Type Config is the labels. -
AUTOMATIC_PROGRESS
Represents an automatic progress field. Type Config is the progress qualifiers. -
MANUAL_PROGRESS
Represents a manual progress field. Type Config is the range. -
SHORT_TEXT
Represents a short text field. -
LOCATION
Represents a location field. -
UNKNOWN
Represents a new field unknown to this library.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
hasTypeConfig
public boolean hasTypeConfig()Returns if this field has custom type config. It's recommended to case theICustomField
to the correct type.- Returns:
- true if this field has custom type config, false otherwise.
-
getAssociatedClass
Returns the associated class with this custom field.- Returns:
- A class extending
ICustomField
-