function TextPrompt (props) {
  props = props || {};
  this._parentLayer = props.parentLayer;
  this._text = "";
  this._x = 0;
  this._y = 0;
  this._color = Color.LIGHTBLUE;
  this._maxLength = -1;
  this._input = [];
  this._hidden = true;
  this._flashInterval = 500;
  this._cursorOn = false;
  this._callback = null;
  this._elapsed = 0;
  this._on = false;

  props.registerKeyHandler("keydown", this.handleKeyboardEvent.bind(this));
}
/** Displays a text prompt on the screen and waits for user input.
* The enter key confirms the input.
* Used by {@link TextLayer}
* @constructor
* @param {Object} props Properties
* @param {TextLayer} props.parentLayer The parent layer will receive text prompts.
* @param {function} props.registerKeyHandler A fuction that can register a handler for a keydown event.
*/
Displays a text prompt on the screen and waits for user input.
The enter key confirms the input.
Displays a text prompt on the screen and waits for user input . The enter key confirms the input .
function TextPrompt (props) {
  props = props || {};
  this._parentLayer = props.parentLayer;
  this._text = "";
  this._x = 0;
  this._y = 0;
  this._color = Color.LIGHTBLUE;
  this._maxLength = -1;
  this._input = [];
  this._hidden = true;
  this._flashInterval = 500;
  this._cursorOn = false;
  this._callback = null;
  this._elapsed = 0;
  this._on = false;
  props.registerKeyHandler("keydown", this.handleKeyboardEvent.bind(this));
}
function TextPrompt ( props ) { props = props || { } ; this . _parentLayer = props . parentLayer ; this . _text = "" ; this . _x = 0 ; this . _y = 0 ; this . _color = Color . LIGHTBLUE ; this . _maxLength = - 1 ; this . _input = [ ] ; this . _hidden = true ; this . _flashInterval = 500 ; this . _cursorOn = false ; this . _callback = null ; this . _elapsed = 0 ; this . _on = false ; props . registerKeyHandler ( "keydown" , this . handleKeyboardEvent . bind ( this ) ) ; }
Displays a text prompt on the screen and waits for user input.
Displays a text prompt on the screen and waits for user input .