- All Superinterfaces:
PromptItem
- All Known Subinterfaces:
SeparatorItem
- All Known Implementing Classes:
DefaultCheckboxItem,DefaultSeparatorItem
Interface for checkbox items in the Prompter.
Checkbox items are immutable - their checked state is managed by the builder.
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanWhether this checkbox is initially checked.Methods inherited from interface org.jline.prompt.PromptItem
getDisabledText, getFooter, getName, getText, isDisabled, isSelectable
-
Method Details
-
isInitiallyChecked
default boolean isInitiallyChecked()Whether this checkbox is initially checked. This represents the default/initial state, not the current selection.- Returns:
- true if this checkbox is initially checked
-