Package com.im.df.api.capabilities
Enum DFFieldPickListCapability.PickListType
- java.lang.Object
-
- java.lang.Enum<DFFieldPickListCapability.PickListType>
-
- com.im.df.api.capabilities.DFFieldPickListCapability.PickListType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<DFFieldPickListCapability.PickListType>
- Enclosing class:
- DFFieldPickListCapability
public static enum DFFieldPickListCapability.PickListType extends java.lang.Enum<DFFieldPickListCapability.PickListType>
Type of how list is provided.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONSTANT_LIST
Constant list of values, defined by user.FIELD_VALUES
The values are loaded directly from the field.LOADER_SCRIPT
The list of value is provided by a groovy script.NOT_USED
Pick list functionality is switched off.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDisplayName()
static DFFieldPickListCapability.PickListType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static DFFieldPickListCapability.PickListType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NOT_USED
public static final DFFieldPickListCapability.PickListType NOT_USED
Pick list functionality is switched off. No list is offered to user when editing/querying data.
-
FIELD_VALUES
public static final DFFieldPickListCapability.PickListType FIELD_VALUES
The values are loaded directly from the field. Only existing values are offered for the user. This is a replacement for the former feature called Distinct values (seeDFField.isDistinctValues()
).
-
CONSTANT_LIST
public static final DFFieldPickListCapability.PickListType CONSTANT_LIST
Constant list of values, defined by user. This type allows to specify any list and is suitable when you want to have static dictionary for the field values (also when database not yet contains all possible values). It is also supported that for each value there is a label which is offered to user instead of the real field value. For example database can contain codes like 0, 1 and user see "male", "female" in the combo box when defining the query. For more details see description ofDFFieldPickListCapability.Item
.
-
LOADER_SCRIPT
public static final DFFieldPickListCapability.PickListType LOADER_SCRIPT
The list of value is provided by a groovy script. For complete description seeDFFieldPickListCapability.setLoaderScript(java.lang.String, com.im.commons.progress.DFEnvironmentRW)
.
-
-
Method Detail
-
values
public static DFFieldPickListCapability.PickListType[] 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 (DFFieldPickListCapability.PickListType c : DFFieldPickListCapability.PickListType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DFFieldPickListCapability.PickListType valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getDisplayName
public java.lang.String getDisplayName()
-
-