public class ContextPlaceholderType extends Object implements IPlaceholderType
IPlaceholderType
for context placeholders of the form [%key.value%]
.COMPARATOR
Constructor and Description |
---|
ContextPlaceholderType(String displayName,
String detailedDescription,
IGuiIcon defaultIcon) |
Modifier and Type | Method and Description |
---|---|
String |
getDetailedDescription(PlaceHolder placeholder,
Locale locale) |
String |
getDisplayName(Locale l) |
IGuiIcon |
getIcon(PlaceHolder placeholder) |
String |
getId() |
String |
getShortDescription(PlaceHolder placeholder,
Locale locale) |
int |
getSortKeyFirst() |
String |
getSortKeySecond() |
boolean |
isExpandInitially() |
String |
toString() |
public ContextPlaceholderType(String displayName, String detailedDescription, IGuiIcon defaultIcon)
displayName
- The name of the group of this placeholder type.detailedDescription
- Detailed description for each placeholder of this type.defaultIcon
- Default icon that is used when the placeholder does not specify an icon of its own.public String getDetailedDescription(PlaceHolder placeholder, Locale locale)
getDetailedDescription
in interface IPlaceholderType
placeholder
- A placeholder of this type for which to get the description.locale
- The current language settingspublic String getDisplayName(Locale l)
getDisplayName
in interface IPlaceholderType
l
- The current language settings.public IGuiIcon getIcon(PlaceHolder placeholder)
getIcon
in interface IPlaceholderType
placeholder
- A placeholder of this type for which to get the icon.public String getId()
getId
in interface IPlaceholderType
public String getShortDescription(PlaceHolder placeholder, Locale locale)
getShortDescription
in interface IPlaceholderType
placeholder
- A placeholder of this type for which to get the description.locale
- The current language settingspublic int getSortKeyFirst()
getSortKeyFirst
in interface IPlaceholderType
public String getSortKeySecond()
getSortKeySecond
in interface IPlaceholderType
IPlaceholderType.getSortKeyFirst()
are the same).public boolean isExpandInitially()
isExpandInitially
in interface IPlaceholderType
true
True if this category should be expanded initially, false
otherwise.Copyright © 2021 XIMA MEDIA GmbH. All rights reserved.