Enum ETemplateType
- java.lang.Object
-
- java.lang.Enum<ETemplateType>
-
- de.xima.fc.gui.designer.form.utils.ETemplateType
-
- All Implemented Interfaces:
Serializable
,Comparable<ETemplateType>
public enum ETemplateType extends Enum<ETemplateType>
Type of a form element template shown in the designer.- Since:
- 8.0.1
- Author:
- XIMA MEDIA GmbH
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ENTITY
Template from aFormTemplate
entity.PLUGIN
Template from aIPluginFormElementTemplate
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Optional<ETemplateType>
byId(String id)
String
id()
static ETemplateType
valueOf(String name)
Returns the enum constant of this type with the specified name.static ETemplateType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ENTITY
public static final ETemplateType ENTITY
Template from aFormTemplate
entity.
-
PLUGIN
public static final ETemplateType PLUGIN
Template from aIPluginFormElementTemplate
-
-
Method Detail
-
values
public static ETemplateType[] 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 (ETemplateType c : ETemplateType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ETemplateType 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 nameNullPointerException
- if the argument is null
-
id
public String id()
- Returns:
- Technical name or ID of the template as used in the designer.
-
byId
public static Optional<ETemplateType> byId(String id)
- Parameters:
id
- ID to parse.- Returns:
- The template type with the given
id()
.
-
-