public void setText(String text)
	{
		if (this.filterFunction != null)
			text = this.filterFunction.apply(text);

		if (text == null)
			text = "";
		this.text.setLength(0);
		this.text.append(text);
		guiText.setText(text);

		selectingText = false;
		xOffset = 0;
		if (focused)
			cursor.jumpToEnd();
		// fireEvent(new TextChanged(this));
	}
public void setText ( String text ) { if ( this . filterFunction != null ) text = this . filterFunction . apply ( text ) ; if ( text == null ) text = "" ; this . text . setLength ( 0 ) ; this . text . append ( text ) ; guiText . setText ( text ) ; selectingText = false ; xOffset = 0 ; if ( focused ) cursor . jumpToEnd ( ) ; }
Sets the text of this {@link UITextField} and place the cursor at the end.

@param text the new text