The UIXTextField class defines a simple TexField used by many Chart components to display text.
UITextField forces its parent to be a UIComponent (see styleChanged) so we need to create our own UITextField
This is version assumes that the caller will call validateNow after all style updates are complete or
will instead call stylesChanged only once per cycle ie from its commitProperties
Note also that the standard UIComponent addChild causes StyleProtoChain.initTextField and UITextField.validateNow to be called twice.
The order for intialization is (assumes styleName is set first),
set parent,
set level(which calls StyleProtoChain and validateNow)
then call StyleProtoChain again.
then call styleChanged (which calls validateNow again)
So we correct that and for nonUIC parent we add the initializeStyles method, this reduces init time by as much as 70%
flash.text.TextField
mx.core.UITextFormat
nestLevel:int [read-write]
Implementation
public function get nestLevel():int
public function set nestLevel(value:int):void
public function UIXTextField()
public function initializeStyles():void
public override function parentChanged(p:DisplayObjectContainer):void
Set the parent
If parent changes we need to reinitialize our inheriting styles.
Parameters
public override function styleChanged(styleProp:String):voidParameters
public function stylesChanged(styleProp:String):voidParameters