Package org.jline.consoleui.prompt
Class ExpandableChoiceResult
- java.lang.Object
-
- org.jline.consoleui.prompt.ExpandableChoiceResult
-
- All Implemented Interfaces:
PromptResultItemIF
public class ExpandableChoiceResult extends java.lang.Object implements PromptResultItemIF
Result of an expandable choice. ExpandableChoiceResult contains a String with the IDs of the selected item.
-
-
Constructor Summary
Constructors Constructor Description ExpandableChoiceResult(java.lang.String selectedId)
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getResult()
java.lang.String
getSelectedId()
Returns the selected id.java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.jline.consoleui.prompt.PromptResultItemIF
getDisplayResult
-
-
-
-
Method Detail
-
getSelectedId
public java.lang.String getSelectedId()
Returns the selected id.- Returns:
- selected id.
-
getResult
public java.lang.String getResult()
- Specified by:
getResult
in interfacePromptResultItemIF
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-