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) int
boolean
toString()
-
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:
getDetailedDescription
in 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:
getDisplayName
in interfaceIPlaceholderType
- Parameters:
l
- The current language settings.- Returns:
- The name of this placeholder type, shown as the header of the group.
-
getIcon
- Specified by:
getIcon
in 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:
getId
in interfaceIPlaceholderType
- Returns:
- The ID of this placeholder type, used for grouping individual placeholders according to their type.
-
getShortDescription
- Specified by:
getShortDescription
in 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:
getSortKeyFirst
in interfaceIPlaceholderType
- Returns:
- Key by which placeholders types are sorted first.
-
getSortKeySecond
- Specified by:
getSortKeySecond
in interfaceIPlaceholderType
- Returns:
- Key by which placeholders types are sorted second (when the
IPlaceholderType.getSortKeyFirst()
are the same).
-
isExpandInitially
public boolean isExpandInitially()- Specified by:
isExpandInitially
in interfaceIPlaceholderType
- Returns:
true
True if this category should be expanded initially,false
otherwise.
-
toString
-