class haxe.ui.toolkit.controls.TextInput extends StateComponent

Available on all platforms

Generic editable text component (supports multiline text)

Instance Fields

Show inherited public instance fieldsHide inherited public instance fields

Inherited from StateComponent

var state:String
var states:Array<String>
function addState(stateName:String, ?rebuildStyles:Bool):Void
function addStates(stateNames:Array<String>, ?rebuildStyles:Bool):Void
function clone():StateComponent
function hasState(state:String):Bool

Inherited from Component

var clipContent:Bool
var clipHeight:Float
var clipWidth:Float
var disabled:Bool
var namedComponents:Array<IComponent>
var scriptletSource:String
var text:String
var userData:Dynamic
var value:Dynamic
function addEventListener(type:String, listener:Dynamic ->Void?useCapture:Bool, ?priority:Int, ?useWeakReference:Bool):Void
function addScriptlet(scriptlet:String):Void
function addScriptletEventHandler(event:String, scriptlet:String):Void
function clearClip():Void
function clone():Component
function executeScriptletExpr(expr:String):Void
function invalidate(?type:Int, ?recursive:Bool):Void
function removeEventListener(type:String, listener:Dynamic ->Void?useCapture:Bool):Void

Inherited from StyleableDisplayObject

var baseStyle:Style
var style:Style
var styleName:String
var styleString:String
function applyStyle():Void
function clone():StyleableDisplayObject
function invalidate(?type:Int, ?recursive:Bool):Void
function paint():Void
function retrieveStyle(id:String):Style
function storeStyle(id:String, value:Style):Void

Inherited from DisplayObjectContainer

var autoSize:Bool
var children:Array<IDisplayObject>
var layout:ILayout
var numChildren:Int
function addChild(child:IDisplayObject):IDisplayObject
function addChildAt(child:IDisplayObject, index:Int):IDisplayObject
function clone():DisplayObjectContainer
function contains(child:IDisplayObject):Bool
function dispose():Void
function findChild<T>(id:String, ?type:Class<T>, ?recursive:Bool):Null<T>
function findChildAs<T>(type:Class<T>):Null<T>
function findComponentUnderPoint(stageX:Float, stageY:Float):IDisplayObject
function getChildAt(index:Int):IDisplayObject
function indexOfChild(child:IDisplayObject):Int
function invalidate(?type:Int, ?recursive:Bool):Void
function removeAllChildren(?dispose:Bool):Void
function removeChild(child:IDisplayObject, ?dispose:Bool):IDisplayObject
function removeChildAt(index:Int, ?dispose:Bool):IDisplayObject
function setChildIndex(child:IDisplayObject, index:Int):Void

Inherited from DisplayObject

var alpha:Float
var graphics:Graphics
var height:Float
var horizontalAlign:String
var id:String
var includeInLayout:Bool
var parent:IDisplayObjectContainer
var percentHeight:Float
var percentWidth:Float
var ready:Bool
var root:Root
var sprite:Sprite
var stageX:Float
var stageY:Float
var useHandCursor:Bool
var verticalAlign:String
var visible:Bool
var width:Float
var x:Float
var y:Float
function addEventListener(type:String, listener:Dynamic ->Void?useCapture:Bool, ?priority:Int, ?useWeakReference:Bool):Void
function clone():DisplayObject
function dispatchEvent(event:Event):Bool
function dispose():Void
function hasEventListener(type:String):Bool
function hitTest(xpos:Float, ypos:Float):Bool
function invalidate(?type:Int, ?recursive:Bool):Void
function removeEventListener(type:String, listener:Dynamic ->Void?useCapture:Bool):Void
function removeEventListenerType(eventType:String):Void
function willTrigger(type:String):Bool

var maxChars:Int

var multiline:Bool

Defines whether or not the text can span more than a single line. Vertical and horizontal scrollbars will be added as needed.

var placeholderText:String

var restrictChars:String

var selectedTextFormat:TextFormat

Sets the currently selected text (if available) to the specified text format

var selectionBeginIndex:Int

The start position of the selected text

var selectionEndIndex:Int

The end position of the selected text

var textAlign:String

var vscrollMax:Float

var vscrollMin:Float

var vscrollPos:Float

var wrapLines:Bool

function new():Void

function applyStyle():Void

function clone():TextInput

function dispose():Void

function focus():Void

function invalidate(?type:Int = 1118481, ?recursive:Bool = false):Void

function replaceSelectedText(s:String):Void

Replaces the selected text (if available) to with the specified string