Package de.xima.fc.gui.model
Class PlaceHolder
java.lang.Object
de.xima.fc.gui.model.PlaceHolder
- All Implemented Interfaces:
Serializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic PlaceHolder
empty
(EPlaceholderType type) boolean
getAlias()
getDetailedDescription
(Locale locale) getIcon()
getKind()
getName()
getShortDescription
(Locale locale) Comparable<?>
getText()
getType()
int
hashCode()
boolean
isEmpty()
toString()
-
Field Details
-
COMPARATOR
-
-
Method Details
-
equals
-
getAlias
- Returns:
- Only for form field placeholders: The alias of the form field.
-
getDetailedDescription
- Parameters:
locale
- Current locale.- Returns:
- Detailed description of this placeholder, such as explaning what it does for system placeholders.
-
getIcon
- Returns:
- Icon for this placeholder. Depending on the placeholder type, may overwrite the default icon of that type.
-
getIconStyleClass
- Returns:
- Style class for displaying the icon
-
getIconValue
- Returns:
- Value for displaying the icon (text content of the span element)
-
getKind
- Returns:
- The type or kind of the placeholder. May be used by certain
IPlaceholderType
s for a more detailed description etc.
-
getName
- Returns:
- Name of the placeholder, e.g.
CLIENT_ID
. Usually shown in the list of available placeholders
-
getPlaceholder
- Returns:
- full placeholder name with the brackets, eg.
[%$CLIENT_ID%]
. Used when inserting the placeholder in an input field
-
getSortKey
-
getShortDescription
- Parameters:
locale
- Current locale.- Returns:
- A short description that is shown for this placeholder, usually its name.
-
getText
- Returns:
- Content of this placeholder, eg. the HTML string for HTML template placeholders.
-
getType
- Returns:
- Type of this placeholder (system, form, custom etc).
-
hashCode
public int hashCode() -
isEmpty
public boolean isEmpty() -
toString
-
empty
- 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.
-