Class TextInputScene
java.lang.Object
com.calebleavell.textinterface.scenes.GenericScene
com.calebleavell.textinterface.scenes.TextInputScene
- All Implemented Interfaces:
Function,Inputtable<String>,Scene
TextScene Class
Collects User Input in the Form of Text from the User
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.calebleavell.textinterface.scenes.GenericScene
MAX_ITERATIONS_ON_TOSTRING -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.calebleavell.textinterface.scenes.GenericScene
addChild, executeFunctions, getChild, getChild, getChild, getChild, getChildren, getFunctions, getID, getName, isTerminated, runChildren, setChildren, setName, terminate, toString, toString
-
Constructor Details
-
TextInputScene
Returns- Parameters:
builder-
-
-
Method Details
-
getInput
Description copied from interface:InputtableGetter for the input collected from the user- Specified by:
getInputin interfaceInputtable<String>- Returns:
- The user input
-
run
Executes the scene by displaying the prompt, collecting the input, then running children and functions- Specified by:
runin interfaceFunction- Overrides:
runin classGenericScene- Throws:
Exception
-