Class SelectItemStatus
java.lang.Object
de.xima.fc.gui.model.SelectItemStatus
- All Implemented Interfaces:
Serializable
- Since:
- 8.5.4
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic SelectItemStatusforSelectItem(javax.faces.model.SelectItem item, Collection<String> groupNames) Gets the description of the select item, or an empty string if the description is null.Gets the list of labels of all parent groups of the select item, starting with the outermost group and ending with the innermost group.getLabel()Gets the label of the select item, or an empty string if the label is null.booleanChecks if the select item is disabled.booleanisEscape()Checks if the select item's label or description should be escaped (or interpreted as HTML).booleanChecks if the select item is a no selection option ("please select" option).
-
Method Details
-
forSelectItem
public static SelectItemStatus forSelectItem(javax.faces.model.SelectItem item, Collection<String> groupNames) -
getDescription
Gets the description of the select item, or an empty string if the description is null.- Returns:
- The description of the select item, or an empty string if the description is null.
-
getGroupNames
Gets the list of labels of all parent groups of the select item, starting with the outermost group and ending with the innermost group. If the select item is not located inside any group, this list is empty- Returns:
- All group labels of all parent groups that contain the select item.
-
getLabel
Gets the label of the select item, or an empty string if the label is null.- Returns:
- The label of the select item, or an empty string if the label is null.
-
isDisabled
public boolean isDisabled()Checks if the select item is disabled.- Returns:
- True if the select item is disabled, false otherwise.
-
isEscape
public boolean isEscape()Checks if the select item's label or description should be escaped (or interpreted as HTML).- Returns:
- True if the label or description should be escaped, false otherwise.
-
isNoSelectionOption
public boolean isNoSelectionOption()Checks if the select item is a no selection option ("please select" option).- Returns:
- True if the select item is a no selection option, false otherwise.
-