-
- All Superinterfaces:
CheckboxItem,ListItem,PromptItem
- All Known Implementing Classes:
DefaultSeparatorItem
public interface SeparatorItem extends ListItem, CheckboxItem
Interface for separator items in lists and checkboxes. Separators are non-selectable items that provide visual grouping.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.lang.StringgetDisabledText()Separators don't have disabled text.default java.lang.StringgetName()Separators don't have names for selection.java.lang.StringgetText()Get the separator text.default booleanisDisabled()Separators are never disabled.default booleanisInitiallyChecked()Separators are never initially checked.default booleanisSelectable()Separators are never selectable.-
Methods inherited from interface org.jline.prompt.PromptItem
getFooter
-
-
-
-
Method Detail
-
getText
java.lang.String getText()
Get the separator text.- Specified by:
getTextin interfacePromptItem- Returns:
- the separator text
-
isSelectable
default boolean isSelectable()
Separators are never selectable.- Specified by:
isSelectablein interfacePromptItem- Returns:
- always false
-
getName
default java.lang.String getName()
Separators don't have names for selection.- Specified by:
getNamein interfacePromptItem- Returns:
- always null
-
isDisabled
default boolean isDisabled()
Separators are never disabled.- Specified by:
isDisabledin interfacePromptItem- Returns:
- always false
-
getDisabledText
default java.lang.String getDisabledText()
Separators don't have disabled text.- Specified by:
getDisabledTextin interfacePromptItem- Returns:
- always null
-
isInitiallyChecked
default boolean isInitiallyChecked()
Separators are never initially checked.- Specified by:
isInitiallyCheckedin interfaceCheckboxItem- Returns:
- always false
-
-