Interface SeparatorItem

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

    Modifier and Type
    Method
    Description
    default String
    Separators don't have disabled text.
    default String
    Separators don't have names for selection.
    Get the separator text.
    default boolean
    Separators are never disabled.
    default boolean
    Separators are never initially checked.
    default boolean
    Separators are never selectable.

    Methods inherited from interface org.jline.prompt.PromptItem

    getFooter
  • Method Details

    • getText

      String getText()
      Get the separator text.
      Specified by:
      getText in interface PromptItem
      Returns:
      the separator text
    • isSelectable

      default boolean isSelectable()
      Separators are never selectable.
      Specified by:
      isSelectable in interface PromptItem
      Returns:
      always false
    • getName

      default String getName()
      Separators don't have names for selection.
      Specified by:
      getName in interface PromptItem
      Returns:
      always null
    • isDisabled

      default boolean isDisabled()
      Separators are never disabled.
      Specified by:
      isDisabled in interface PromptItem
      Returns:
      always false
    • getDisabledText

      default String getDisabledText()
      Separators don't have disabled text.
      Specified by:
      getDisabledText in interface PromptItem
      Returns:
      always null
    • isInitiallyChecked

      default boolean isInitiallyChecked()
      Separators are never initially checked.
      Specified by:
      isInitiallyChecked in interface CheckboxItem
      Returns:
      always false