Packageasgard.text
Classpublic class CoreTextField
InheritanceCoreTextField Inheritance flash.text.TextField
ImplementsIDisplayObject

The CoreTextField class extends the flash.text.TextField class and implements the IDisplayObject interface.

Example :

     import asgard.display.DisplayObjectCollector ;
     import asgard.text.CoreTextField ;
     
     var field:CoreTextField = new CoreTextField( "my_field" , 150 , 22 ) ;
     
     field.x                 = 25 ;
     field.y                 = 25 ;
     field.background        = true ;
     field.backgroundColor   = 0x000000 ;
     field.border            = true ;
     field.borderColor       = 0xFFFFFF ;
     field.defaultTextFormat = new TextFormat("arial", 11, 0xFFFFFF, true, null, null, null, null, "center") ;
     field.text              = "hello world" ;
     
     trace( "DisplayObject contains 'my_field' : " + DisplayObjectCollector.contains( "my_field" ) ) ;
     trace( DisplayObjectCollector.get( "my_field" ) ) ;
     
     addChild(field) ;
     



Public Properties
 PropertyDefined by
  id : *
Returns the id of this object.
CoreTextField
  isConfigurable : Boolean
Indicates if the display is configurable.
CoreTextField
Public Methods
 MethodDefined by
  
CoreTextField(id:* = null, width:Number = 100, height:Number = 100, isConfigurable:Boolean = false, name:String = null)
Creates a new CoreTextField instance.
CoreTextField
  
Returns the internal ILogger reference of this ILogable object.
CoreTextField
  
hashCode():uint
Returns a hashcode value for the object.
CoreTextField
  
isLocked():Boolean
Returns true if the object is locked.
CoreTextField
  
lock():void
Locks the object.
CoreTextField
  
resetLock():void
Reset the lock security of the display.
CoreTextField
  
setLogger(log:ILogger = null):void
Sets the internal ILogger reference of this ILogable object.
CoreTextField
  
setup():void
Setup the IConfigurable object.
CoreTextField
  
toString():String
Returns the String representation of this object.
CoreTextField
  
unlock():void
Unlocks the display.
CoreTextField
  
update():void
Update the display.
CoreTextField
Protected Methods
 MethodDefined by
  
addedToStage(e:Event = null):void
Invoked when the display is added to the stage.
CoreTextField
  
removedFromStage(e:Event = null):void
Invoked when the display is removed from the stage.
CoreTextField
Property detail
idproperty
id:*  [read-write]

Returns the id of this object.

Implementation
    public function get id():*
    public function set id(value:*):void
isConfigurableproperty 
isConfigurable:Boolean  [read-write]

Indicates if the display is configurable.

Implementation
    public function get isConfigurable():Boolean
    public function set isConfigurable(value:Boolean):void
Constructor detail
CoreTextField()constructor
public function CoreTextField(id:* = null, width:Number = 100, height:Number = 100, isConfigurable:Boolean = false, name:String = null)

Creates a new CoreTextField instance.

Parameters
id:* (default = null) — Indicates the id of the object.
 
width:Number (default = 100) — Indicates the width of the display object, in pixels.
 
height:Number (default = 100) — Indicates the height of the display object, in pixels.
 
isConfigurable:Boolean (default = false) — This flag indicates if the IConfigurable object is register in the ConfigCollector.
 
name:String (default = null) — Indicates the instance name of the object.
Method detail
addedToStage()method
protected function addedToStage(e:Event = null):void

Invoked when the display is added to the stage.

Parameters
e:Event (default = null)
getLogger()method 
public function getLogger():ILogger

Returns the internal ILogger reference of this ILogable object.

Returns
ILogger — the internal ILogger reference of this ILogable object.
hashCode()method 
public function hashCode():uint

Returns a hashcode value for the object.

Returns
uint — a hashcode value for the object.
isLocked()method 
public function isLocked():Boolean

Returns true if the object is locked.

Returns
Booleantrue if the object is locked.
lock()method 
public function lock():void

Locks the object.

removedFromStage()method 
protected function removedFromStage(e:Event = null):void

Invoked when the display is removed from the stage.

Parameters
e:Event (default = null)
resetLock()method 
public function resetLock():void

Reset the lock security of the display.

setLogger()method 
public function setLogger(log:ILogger = null):void

Sets the internal ILogger reference of this ILogable object.

Parameters
log:ILogger (default = null)
setup()method 
public function setup():void

Setup the IConfigurable object.

toString()method 
public override function toString():String

Returns the String representation of this object.

Returns
String — the String representation of this object.
unlock()method 
public function unlock():void

Unlocks the display.

update()method 
public function update():void

Update the display. You must override this method. This method is launch by the setup() method when the Config is checked.