Packagexp.core
Classpublic class UIXTextField
InheritanceUIXTextField Inheritance mx.core.UITextField
SubclassesChartTextField

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%

See also

flash.text.TextField
mx.core.UITextFormat


Public Properties
 PropertyDefined by
  nestLevel : int
UIXTextField
Public Methods
 MethodDefined by
  
UIXTextField
  
UIXTextField
  
parentChanged(p:DisplayObjectContainer):void
Set the parent If parent changes we need to reinitialize our inheriting styles.
UIXTextField
  
styleChanged(styleProp:String):void
UIXTextField
  
stylesChanged(styleProp:String):void
UIXTextField
Property detail
nestLevelproperty
nestLevel:int  [read-write]

Implementation
    public function get nestLevel():int
    public function set nestLevel(value:int):void
Constructor detail
UIXTextField()constructor
public function UIXTextField()
Method detail
initializeStyles()method
public function initializeStyles():void
parentChanged()method 
public override function parentChanged(p:DisplayObjectContainer):void

Set the parent If parent changes we need to reinitialize our inheriting styles.

Parameters
p:DisplayObjectContainer
styleChanged()method 
public override function styleChanged(styleProp:String):voidParameters
styleProp:String
stylesChanged()method 
public function stylesChanged(styleProp:String):voidParameters
styleProp:String