All Implemented Interfaces:
Control, View

public class InputView extends BoxView
InputView is used as a text input.
  • Constructor Details

    • InputView

      public InputView()
  • Method Details

    • initInternal

      protected void initInternal()
      Description copied from class: AbstractView
      Internal init method called from AbstractView.init(). Override to do something usefull. Typically key and mousebindings are registered from this method.
      Overrides:
      initInternal in class AbstractView
    • getKeyHandler

      public KeyHandler getKeyHandler()
      Description copied from class: AbstractView
      Handles keys by dispatching registered command runnable into an event loop. Override to change default behaviour.
      Specified by:
      getKeyHandler in interface View
      Overrides:
      getKeyHandler in class AbstractView
      Returns:
      a view key handler
      See Also:
    • drawInternal

      protected void drawInternal(Screen screen)
      Description copied from class: BoxView
      Possibly draws a box around this view and title in a box top boundary. Also calls a draw function if defined.
      Overrides:
      drawInternal in class BoxView
      Parameters:
      screen - the screen
    • getInputText

      public String getInputText()
      Get a current known input text.
      Returns:
      current input text