Class TextInputScene

java.lang.Object
com.calebleavell.textinterface.scenes.GenericScene
com.calebleavell.textinterface.scenes.TextInputScene
All Implemented Interfaces:
Function, Inputtable<String>, Scene

public class TextInputScene extends GenericScene implements Inputtable<String>

TextScene Class

Collects User Input in the Form of Text from the User

  • Constructor Details

  • Method Details

    • getInput

      public String getInput()
      Description copied from interface: Inputtable
      Getter for the input collected from the user
      Specified by:
      getInput in interface Inputtable<String>
      Returns:
      The user input
    • run

      public void run() throws Exception
      Executes the scene by displaying the prompt, collecting the input, then running children and functions
      Specified by:
      run in interface Function
      Overrides:
      run in class GenericScene
      Throws:
      Exception