Class PlaceHolder
- java.lang.Object
-
- de.xima.fc.gui.common.placeholder.PlaceHolder
-
- All Implemented Interfaces:
IPlaceholder,Serializable
public class PlaceHolder extends Object implements IPlaceholder
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPlaceHolder.PlaceHolderBuilderUtility class for creating aPlaceHolder.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Comparator<IPlaceholder>comparator(Locale locale)static PlaceHolderempty(EPlaceholderType type)booleanequals(Object obj)static PlaceHolderformLang()static PlaceHolderformXfAction()static PlaceHolderformXfQualifier()StringgetAlias()StringgetDetailedDescription(Locale locale)StringgetDisplayName(Locale locale)IGuiIcongetIcon()StringgetIconStyleClass()StringgetIconValue()StringgetKind()Deprecated.StringgetName()Deprecated.StringgetPlaceholder()StringgetShortDescription(Locale locale)Deprecated.Comparable<?>getSortKey()StringgetText()IPlaceholderTypegetType()inthashCode()booleanisEmpty()StringtoString()
-
-
-
Method Detail
-
comparator
public static Comparator<IPlaceholder> comparator(Locale locale)
-
empty
public static PlaceHolder empty(EPlaceholderType type)
- Parameters:
type- Type of placeholder- Returns:
- A new empty placeholder that cannot be inserted into a text field. Usually this is shown in the list of placeholders when no placeholders are available.
-
formLang
public static PlaceHolder formLang()
-
formXfAction
public static PlaceHolder formXfAction()
-
formXfQualifier
public static PlaceHolder formXfQualifier()
-
getAlias
public String getAlias()
- Specified by:
getAliasin interfaceIPlaceholder- Returns:
- Only for form field placeholders: The alias of the form field.
-
getDetailedDescription
public String getDetailedDescription(Locale locale)
- Specified by:
getDetailedDescriptionin interfaceIPlaceholder- Parameters:
locale- The locale to get the description for.- Returns:
- Detailed description of this placeholder, explaining what it does and how it works.
-
getDisplayName
public String getDisplayName(Locale locale)
- Specified by:
getDisplayNamein interfaceIPlaceholder- Parameters:
locale- The locale to get the display name for.- Returns:
- Display name of the placeholder, e.g.
Client ID. Usually shown in the list of available placeholders
-
getIcon
public IGuiIcon getIcon()
- Specified by:
getIconin interfaceIPlaceholder- Returns:
- Icon for this placeholder. Depending on the placeholder type, may overwrite the default icon of that type.
-
getIconStyleClass
public String getIconStyleClass()
- Returns:
- Style class for displaying the icon
-
getIconValue
public String getIconValue()
- Returns:
- Value for displaying the icon (text content of the span element)
-
getKind
@Deprecated public String getKind()
Deprecated.- Specified by:
getKindin interfaceIPlaceholder- Returns:
- The type or kind of the placeholder. May be used by certain
IPlaceholderTypes for a more detailed description etc.
-
getName
@Deprecated public String getName()
Deprecated.- Specified by:
getNamein interfaceIPlaceholder- Returns:
- Name of the placeholder, e.g.
CLIENT_ID. Usually shown in the list of available placeholders
-
getPlaceholder
public String getPlaceholder()
- Specified by:
getPlaceholderin interfaceIPlaceholder- Returns:
- full placeholder name with the brackets, eg.
[%$CLIENT_ID%]. Used when inserting the placeholder in an input field
-
getShortDescription
@Deprecated public String getShortDescription(Locale locale)
Deprecated.- Specified by:
getShortDescriptionin interfaceIPlaceholder- Parameters:
locale- The locale to get the description for.- Returns:
- Short description of this placeholder, explaining what it does.
-
getSortKey
public Comparable<?> getSortKey()
- Specified by:
getSortKeyin interfaceIPlaceholder- Returns:
- The sort key of this placeholder. Used for sorting placeholders in the list of available placeholders.
-
getText
public String getText()
- Specified by:
getTextin interfaceIPlaceholder- Returns:
- Content of this placeholder, eg. the HTML string for HTML template placeholders.
-
getType
public IPlaceholderType getType()
- Specified by:
getTypein interfaceIPlaceholder- Returns:
- Type of this placeholder (e.g. system, template, form field, etc.)
-
isEmpty
public boolean isEmpty()
-
-