Package de.xima.fc.gui.statics
Class ContextPlaceholderType
java.lang.Object
de.xima.fc.gui.statics.ContextPlaceholderType
- All Implemented Interfaces:
IPlaceholderType
An implementation of
IPlaceholderType for context placeholders of the form [%key.value%].- Author:
- XIMA MEDIA GmbH
-
Field Summary
Fields inherited from interface de.xima.fc.gui.statics.IPlaceholderType
COMPARATOR -
Constructor Summary
ConstructorsConstructorDescriptionContextPlaceholderType(String displayName, String detailedDescription, IGuiIcon defaultIcon) -
Method Summary
Modifier and TypeMethodDescriptiongetDetailedDescription(PlaceHolder placeholder, Locale locale) getIcon(PlaceHolder placeholder) getId()getShortDescription(PlaceHolder placeholder, Locale locale) intbooleantoString()
-
Constructor Details
-
ContextPlaceholderType
- Parameters:
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.
-
-
Method Details
-
getDetailedDescription
- Specified by:
getDetailedDescriptionin 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:
getDisplayNamein interfaceIPlaceholderType- Parameters:
l- The current language settings.- Returns:
- The name of this placeholder type, shown as the header of the group.
-
getIcon
- Specified by:
getIconin 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:
getIdin interfaceIPlaceholderType- Returns:
- The ID of this placeholder type, used for grouping individual placeholders according to their type.
-
getShortDescription
- Specified by:
getShortDescriptionin 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:
getSortKeyFirstin interfaceIPlaceholderType- Returns:
- Key by which placeholders types are sorted first.
-
getSortKeySecond
- Specified by:
getSortKeySecondin interfaceIPlaceholderType- Returns:
- Key by which placeholders types are sorted second (when the
IPlaceholderType.getSortKeyFirst()are the same).
-
isExpandInitially
public boolean isExpandInitially()- Specified by:
isExpandInitiallyin interfaceIPlaceholderType- Returns:
trueTrue if this category should be expanded initially,falseotherwise.
-
toString
-