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 IPlaceholderTypeplaceholder - A placeholder of this type for which to get the description.locale - The current language settingspublic String getDisplayName(Locale l)
getDisplayName in interface IPlaceholderTypel - The current language settings.public IGuiIcon getIcon(PlaceHolder placeholder)
getIcon in interface IPlaceholderTypeplaceholder - A placeholder of this type for which to get the icon.public String getId()
getId in interface IPlaceholderTypepublic String getShortDescription(PlaceHolder placeholder, Locale locale)
getShortDescription in interface IPlaceholderTypeplaceholder - A placeholder of this type for which to get the description.locale - The current language settingspublic int getSortKeyFirst()
getSortKeyFirst in interface IPlaceholderTypepublic String getSortKeySecond()
getSortKeySecond in interface IPlaceholderTypeIPlaceholderType.getSortKeyFirst() are the same).public boolean isExpandInitially()
isExpandInitially in interface IPlaceholderTypetrue True if this category should be expanded initially, false otherwise.Copyright © 2020 XIMA MEDIA GmbH. All rights reserved.