Interface IPlaceholder
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
GenericTextFragment, PlaceHolder
Common interface for placeholders.
- Since:
- 8.4.0
- Author:
- XIMA MEDIA GmbH
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetAlias()getDetailedDescription(Locale locale) getDisplayName(Locale locale) getIcon()default EPlaceholderInsertHintThe preferred way for this text fragment to be inserted into input elements, although this might not be supported by all target components.getKind()Deprecated.getName()Deprecated.Gets the full placeholder name with the brackets, e.g.getShortDescription(Locale locale) Deprecated.UsegetDisplayName(Locale)instead.Comparable<?> getText()@NotNull IPlaceholderTypegetType()
-
Field Details
-
LINK_RECOGNITION_PATTERN
-
-
Method Details
-
getAlias
String getAlias()- Returns:
- Only for form field placeholders: The alias of the form field.
-
getDetailedDescription
-
getDisplayName
-
getIcon
IGuiIcon getIcon()- Returns:
- Icon for this placeholder. Depending on the placeholder type, may overwrite the default icon of that type.
-
getKind
Deprecated.- Returns:
- The type or kind of the placeholder. May be used by certain
IPlaceholderTypes for a more detailed description etc.
-
getName
Deprecated.UsegetDisplayName(Locale)instead.- Returns:
- Name of the placeholder, e.g.
CLIENT_ID. Usually shown in the list of available placeholders
-
getPlaceholder
String getPlaceholder()Gets the full placeholder name with the brackets, e.g.[%$CLIENT_ID%]. Used when inserting the placeholder in an input field- Returns:
- The full placeholder name including brackets.
-
getShortDescription
Deprecated.UsegetDisplayName(Locale)instead.- Parameters:
locale- The locale to get the description for.- Returns:
- Short description of this placeholder, explaining what it does.
-
getSortKey
Comparable<?> getSortKey()- Returns:
- The sort key of this placeholder. Used for sorting placeholders in the list of available placeholders.
-
getText
String getText()- Returns:
- Content of this placeholder, eg. the HTML string for HTML template placeholders.
-
getType
- Returns:
- Type of this placeholder (e.g. system, template, form field, etc.)
-
getInsertHint
The preferred way for this text fragment to be inserted into input elements, although this might not be supported by all target components.The default implementation behaves as follows: If the placeholder starts with "LINK_", ends with "_LINK", or contains "_LINK_" or "_LINK." returns
LINK. Otherwise, returnsTEXT.- Returns:
- The preferred insert mode for this text fragment.
- Since:
- 8.4.1
-
getDisplayName(Locale)instead.