Class ChoiceItem
java.lang.Object
org.jline.consoleui.elements.items.impl.ChoiceItem
- All Implemented Interfaces:
ChoiceItemIF
,ConsoleUIItemIF
,ListItemIF
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionChoiceItem
(Character key, String name, String message, boolean isDefaultChoice) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jline.consoleui.elements.items.ConsoleUIItemIF
getDisabledText, isDisabled
-
Field Details
-
key
-
name
-
message
-
defaultChoice
private final boolean defaultChoice
-
-
Constructor Details
-
ChoiceItem
-
-
Method Details
-
getKey
- Specified by:
getKey
in interfaceChoiceItemIF
-
getName
- Specified by:
getName
in interfaceConsoleUIItemIF
-
getMessage
-
getText
- Specified by:
getText
in interfaceConsoleUIItemIF
-
isSelectable
public boolean isSelectable()- Specified by:
isSelectable
in interfaceConsoleUIItemIF
-
isDefaultChoice
public boolean isDefaultChoice()- Specified by:
isDefaultChoice
in interfaceChoiceItemIF
-