Class ChoiceItem
- java.lang.Object
-
- org.jline.consoleui.elements.items.impl.ChoiceItem
-
- All Implemented Interfaces:
ChoiceItemIF
,ConsoleUIItemIF
,ListItemIF
public class ChoiceItem extends java.lang.Object implements ChoiceItemIF
-
-
Constructor Summary
Constructors Constructor Description ChoiceItem(java.lang.Character key, java.lang.String name, java.lang.String message, boolean isDefaultChoice)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Character
getKey()
java.lang.String
getMessage()
java.lang.String
getName()
java.lang.String
getText()
boolean
isDefaultChoice()
boolean
isSelectable()
-
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
-
-
-
-
Method Detail
-
getKey
public java.lang.Character getKey()
- Specified by:
getKey
in interfaceChoiceItemIF
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceConsoleUIItemIF
-
getMessage
public java.lang.String getMessage()
-
getText
public java.lang.String getText()
- Specified by:
getText
in interfaceConsoleUIItemIF
-
isSelectable
public boolean isSelectable()
- Specified by:
isSelectable
in interfaceConsoleUIItemIF
-
isDefaultChoice
public boolean isDefaultChoice()
- Specified by:
isDefaultChoice
in interfaceChoiceItemIF
-
-