code: @Override
  	public void setText(String text)
  	{
  		if (password == null) //called from parent ctor
  			return;
  		if (filterFunction != null)
  			text = filterFunction.apply(text);
  
  		password.setLength(0);
  		password.append(text);
  		updateText();
  		selectingText = false;
  		if (focused)
  			cursor.jumpToEnd();
  
  	}
docs: Sets the text.
  
  @param text the new text