Package de.xima.fc.gui.statics
Enum EPlaceholderType
- All Implemented Interfaces:
IPlaceholderType
,INamedUiElement
,Serializable
,Comparable<EPlaceholderType>
public enum EPlaceholderType
extends Enum<EPlaceholderType>
implements INamedUiElement, IPlaceholderType
Common placeholder types. 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]
.- Author:
- XIMA MEDIA GmbH
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFallback when no more specific type could be determined. -
Field Summary
Fields inherited from interface de.xima.fc.interfaces.INamedUiElement
ATTR_DISPLAY_NAME
Fields inherited from interface de.xima.fc.gui.statics.IPlaceholderType
COMPARATOR
-
Method Summary
Modifier and TypeMethodDescriptionstatic IPlaceholderType
static EPlaceholderType
forTemplate
(ETextbausteinKategorie category) abstract String
getDetailedDescription
(PlaceHolder placeholder, Locale locale) abstract IGuiIcon
getIcon
(PlaceHolder placeholder) getId()
abstract String
getShortDescription
(PlaceHolder placeholder, Locale locale) int
abstract boolean
static EPlaceholderType
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.
-
Enum Constant Details
-
ATTACHMENT
-
FORM_COLLECTION
-
FORM_SIMPLE
-
FORM_UPLOAD
-
OTHER
Fallback when no more specific type could be determined. -
SYSTEM
-
USER
-
INITIAL_USER
-
LAST_USER
-
APPOINTMENT
-
TEMPLATE_HTML
-
TEMPLATE_MAIL
-
TEMPLATE_TEXT
-
TEMPLATE_URL
-
COUNTER
-
WEBDAV_CONNECTION
-
WORKFLOW_TRIGGER
-
WORKFLOW_NODE
-
WORKFLOW_ACTION_RESULT
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
getDetailedDescription
- Specified by:
getDetailedDescription
in interfaceIPlaceholderType
- Parameters:
placeholder
- A placeholder of this type for which to get the description.locale
- The current language settings- Returns:
- A detailed description for the given placeholder.
-
getDisplayName
- Specified by:
getDisplayName
in interfaceINamedUiElement
- Specified by:
getDisplayName
in interfaceIPlaceholderType
- Parameters:
l
- The current language settings.- Returns:
- Wert, der das entsprechende Objekt an Oberfläche repräsentiert (wird i.A. zur Laufzeit ermittelt).
-
getIcon
- Specified by:
getIcon
in interfaceIPlaceholderType
- Parameters:
placeholder
- A placeholder of this type for which to get the icon.- Returns:
- Icon to be shown for the given placeholder. May be either a default icon for this group or a specific icon for the given placeholder.
-
getId
- Specified by:
getId
in interfaceIPlaceholderType
- Returns:
- The ID of this placeholder type, used for grouping individual placeholders according to their type.
-
getShortDescription
- Specified by:
getShortDescription
in interfaceIPlaceholderType
- Parameters:
placeholder
- A placeholder of this type for which to get the description.locale
- The current language settings- Returns:
- A short description for the given placeholder
-
getSortKeyFirst
public int getSortKeyFirst()- Specified by:
getSortKeyFirst
in interfaceIPlaceholderType
- Returns:
- Key by which placeholders types are sorted first.
-
getSortKeySecond
- Specified by:
getSortKeySecond
in interfaceIPlaceholderType
- Returns:
- Key by which placeholders types are sorted second (when the
IPlaceholderType.getSortKeyFirst()
are the same).
-
isExpandInitially
public abstract boolean isExpandInitially()- Specified by:
isExpandInitially
in interfaceIPlaceholderType
- Returns:
true
True if this category should be expanded initially,false
otherwise.
-
forFormElementType
-
forTemplate
-