| Package | asgard.text |
| Class | public class CoreTextField |
| Inheritance | CoreTextField flash.text.TextField |
| Implements | IDisplayObject |
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) ;
| Property | Defined by | ||
|---|---|---|---|
| id : *
Returns the id of this object.
| CoreTextField | ||
| isConfigurable : Boolean
Indicates if the display is configurable.
| CoreTextField | ||
| Method | Defined 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 | ||
|
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 | ||
| Method | Defined 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 | ||
| id | property |
id:* [read-write]Returns the id of this object.
Implementation public function get id():*
public function set id(value:*):void
| isConfigurable | property |
isConfigurable:Boolean [read-write]Indicates if the display is configurable.
Implementation public function get isConfigurable():Boolean
public function set isConfigurable(value:Boolean):void
| CoreTextField | () | constructor |
public function CoreTextField(id:* = null, width:Number = 100, height:Number = 100, isConfigurable:Boolean = false, name:String = null)Creates a new CoreTextField instance.
Parametersid:* (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.
|
| addedToStage | () | method |
protected function addedToStage(e:Event = null):voidInvoked when the display is added to the stage.
Parameterse:Event (default = null) |
| getLogger | () | method |
public function getLogger():ILogger
Returns the internal ILogger reference of this ILogable object.
ILogger —
the internal ILogger reference of this ILogable object.
|
| hashCode | () | method |
public function hashCode():uintReturns a hashcode value for the object.
Returnsuint — a hashcode value for the object.
|
| isLocked | () | method |
public function isLocked():Boolean
Returns true if the object is locked.
Boolean — true if the object is locked.
|
| lock | () | method |
public function lock():voidLocks the object.
| removedFromStage | () | method |
protected function removedFromStage(e:Event = null):voidInvoked when the display is removed from the stage.
Parameterse:Event (default = null) |
| resetLock | () | method |
public function resetLock():voidReset the lock security of the display.
| setLogger | () | method |
public function setLogger(log:ILogger = null):void
Sets the internal ILogger reference of this ILogable object.
log:ILogger (default = null) |
| setup | () | method |
public function setup():voidSetup the IConfigurable object.
| toString | () | method |
public override function toString():String
Returns the String representation of this object.
String — the String representation of this object.
|
| unlock | () | method |
public function unlock():voidUnlocks the display.
| update | () | method |
public function update():voidUpdate the display. You must override this method. This method is launch by the setup() method when the Config is checked.