public enum EPlaceholderType extends Enum<EPlaceholderType> implements INamedUiElement
PlaceholderBean
and the placeholder dialog. Contains methods
for getting a name and description, which may differ for different types of placeholders. For example, a placeholder
of type SYSTEM
is displayed as CLIENT_ID - ID of the current client
, whereas a
placeholder of type TEMPLATE_HTML
is displayed as
[TEMPLATE_NAME] [TEMPLATE_CONTENT]
.Enum Constant and Description |
---|
FORM_COLLECTION |
FORM_SIMPLE |
FORM_UPLOAD |
OTHER
Fallback when no more specific type could be determined.
|
SYSTEM |
TEMPLATE_HTML |
TEMPLATE_MAIL |
TEMPLATE_TEXT |
TEMPLATE_URL |
ATTR_DISPLAY_NAME
Modifier and Type | Method and Description |
---|---|
static int |
compare(EPlaceholderType first,
EPlaceholderType other) |
static EPlaceholderType |
forFormElementType(EFormElementTyp type) |
static EPlaceholderType |
forTemplate(ETextbausteinKategorie category) |
abstract String |
getDetailedDescription(PlaceholderBean.PlaceHolder placeholder,
Locale locale) |
String |
getDisplayName(Locale l) |
abstract String |
getIconClass() |
abstract String |
getIconValue() |
abstract String |
getShortDescription(PlaceholderBean.PlaceHolder placeholder,
Locale locale) |
boolean |
isForm() |
boolean |
isOther() |
boolean |
isSystem() |
boolean |
isTemplate() |
static EPlaceholderType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EPlaceholderType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EPlaceholderType SYSTEM
public static final EPlaceholderType FORM_SIMPLE
public static final EPlaceholderType FORM_COLLECTION
public static final EPlaceholderType FORM_UPLOAD
public static final EPlaceholderType TEMPLATE_HTML
public static final EPlaceholderType TEMPLATE_MAIL
public static final EPlaceholderType TEMPLATE_TEXT
public static final EPlaceholderType TEMPLATE_URL
public static final EPlaceholderType OTHER
public static EPlaceholderType[] values()
for (EPlaceholderType c : EPlaceholderType.values()) System.out.println(c);
public static EPlaceholderType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static EPlaceholderType forFormElementType(EFormElementTyp type)
public static EPlaceholderType forTemplate(ETextbausteinKategorie category)
public static int compare(EPlaceholderType first, EPlaceholderType other)
public boolean isForm()
public boolean isTemplate()
public boolean isSystem()
public boolean isOther()
public String getDisplayName(Locale l)
getDisplayName
in interface INamedUiElement
public abstract String getShortDescription(PlaceholderBean.PlaceHolder placeholder, Locale locale)
public abstract String getDetailedDescription(PlaceholderBean.PlaceHolder placeholder, Locale locale)
public abstract String getIconValue()
public abstract String getIconClass()
Copyright © 2019 XIMA MEDIA GmbH. All rights reserved.