| Package | lunas.core |
| Class | public class AbstractComponent |
| Inheritance | AbstractComponent CoreSprite flash.display.Sprite |
| Implements | IComponent |
| Subclasses | AbstractButton, AbstractProgress, AbstractTextInput, Container |
| Property | Defined by | ||
|---|---|---|---|
| border : EdgeMetrics
Indicates the thickness, in pixels, of the four edge regions around a visual component.
| AbstractComponent | ||
| bubbles : Boolean = true
Indicates if the events use bubbling when are dispatched.
| AbstractComponent | ||
| builder : IBuilder
Indicates the IBuilder reference of this instance.
| AbstractComponent | ||
| componentInspectorSetting : Boolean
Initialize when the Flash component settings are initialized (only in Flash with a compiled component).
| AbstractComponent | ||
| enabled : Boolean
Indicates the enabled state of the component.
| AbstractComponent | ||
| group : Boolean
Indicates with a boolean if this object is grouped.
| AbstractComponent | ||
| groupName : String
Indicates the name of the group of this object.
| AbstractComponent | ||
| h : Number
(read-only) Indicates the virtual height value of this component.
| AbstractComponent | ||
![]() | id : *
Returns the id of this object.
| CoreSprite | |
![]() | isConfigurable : Boolean
Indicates if the display is configurable.
| CoreSprite | |
| maxHeight : Number
This property defined the maximum height of this component.
| AbstractComponent | ||
| maxWidth : Number
This property defined the maximum width of this component.
| AbstractComponent | ||
| minHeight : Number
This property defined the mimimun height of this component.
| AbstractComponent | ||
| minWidth : Number
This property defined the mimimun width of this component.
| AbstractComponent | ||
| style : IStyle
Returns the style of this component.
| AbstractComponent | ||
| w : Number
(read-only) Indicates the virtual width value of this component.
| AbstractComponent | ||
| Property | Defined by | ||
|---|---|---|---|
| _h : Number = 0
The protected virtual height value of the component.
| AbstractComponent | ||
| _w : Number = 0
The protected virtual width value of the component.
| AbstractComponent | ||
| Method | Defined by | ||
|---|---|---|---|
|
AbstractComponent(id:* = null, isConfigurable:Boolean = false, name:String = null)
Creates a new AbstractComponentDisplay instance.
| AbstractComponent | ||
|
doLater():void
Launch an event with a delayed interval.
| AbstractComponent | ||
|
draw(... arguments):void
Draw the view of the component.
| AbstractComponent | ||
|
getBuilderRenderer():Class
Returns the
IBuilder constructor use to initialize this component. | AbstractComponent | ||
![]() |
Returns the internal
ILogger reference of this ILogable object. | CoreSprite | |
|
getStyleRenderer():Class
Returns the
IStyle constructor use to initialize this component. | AbstractComponent | ||
|
groupPolicyChanged():void
Invoked when the group property or the groupName property changed.
| AbstractComponent | ||
![]() |
hashCode():uint
Returns a hashcode value for the object.
| CoreSprite | |
|
hide():void
Hides the component.
| AbstractComponent | ||
|
initialize():void
Initialize the component.
| AbstractComponent | ||
![]() |
isLocked():Boolean
Returns
true if the object is locked. | CoreSprite | |
|
isVisible():Boolean
Returns
true if the component is visible. | AbstractComponent | ||
![]() |
lock():void
Locks the object.
| CoreSprite | |
|
move(x:Number, y:Number):void
Moves the component.
| AbstractComponent | ||
|
notifyChanged():void
Notify a change in this component.
| AbstractComponent | ||
|
notifyEnabled():void
Notify an event when the enabled property is changed.
| AbstractComponent | ||
|
notifyResized():void
Notify an event when you resize the component.
| AbstractComponent | ||
|
refresh(init:*):void
Refresh the component with an object of initialization.
| AbstractComponent | ||
![]() |
resetLock():void
Reset the lock security of the display.
| CoreSprite | |
![]() |
Sets the internal
ILogger reference of this ILogable object. | CoreSprite | |
|
setSize(w:Number, h:Number):void
Sets the virtuals width and height of the component.
| AbstractComponent | ||
|
setStyle(... args):void
Sets the style property on the style declaration or object.
| AbstractComponent | ||
![]() |
setup():void
Setup the IConfigurable object.
| CoreSprite | |
|
show():void
Shows the component.
| AbstractComponent | ||
![]() |
toString():String
Returns the
String representation of this object. | CoreSprite | |
![]() |
unlock():void
Unlocks the display.
| CoreSprite | |
|
update():void
Updates the component.
| AbstractComponent | ||
|
viewChanged():void
Invoked after the draw method and when the IBuilder is updated.
| AbstractComponent | ||
|
viewDestroyed(e:Event = null):void
Invoked when the component is destroyed with a removeMovieClip.
| AbstractComponent | ||
|
viewEnabled():void
Invoked when the enabled property of the component change.
| AbstractComponent | ||
|
viewResize():void
Invoked when the component is resized.
| AbstractComponent | ||
|
viewStyleChanged(e:Event = null):void
Invoked when the component IStyle changed.
| AbstractComponent | ||
| Method | Defined by | ||
|---|---|---|---|
![]() |
addedToStage(e:Event = null):void
Invoked when the display is added to the stage.
| CoreSprite | |
|
fireComponentEvent(type:String):void
Dispatchs a ComponentEvent with the specified type.
| AbstractComponent | ||
![]() |
removedFromStage(e:Event = null):void
Invoked when the display is removed from the stage.
| CoreSprite | |
| border | property |
border:EdgeMetrics [read-write]Indicates the thickness, in pixels, of the four edge regions around a visual component.
Implementation public function get border():EdgeMetrics
public function set border(value:EdgeMetrics):void
| bubbles | property |
public var bubbles:Boolean = trueIndicates if the events use bubbling when are dispatched.
| builder | property |
builder:IBuilder [read-write]Indicates the IBuilder reference of this instance.
Implementation public function get builder():IBuilder
public function set builder(value:IBuilder):void
| componentInspectorSetting | property |
componentInspectorSetting:Boolean [read-write]Initialize when the Flash component settings are initialized (only in Flash with a compiled component).
Implementation public function get componentInspectorSetting():Boolean
public function set componentInspectorSetting(value:Boolean):void
| enabled | property |
enabled:Boolean [read-write]Indicates the enabled state of the component.
Implementation public function get enabled():Boolean
public function set enabled(value:Boolean):void
| group | property |
group:Boolean [read-write]Indicates with a boolean if this object is grouped.
Implementation public function get group():Boolean
public function set group(value:Boolean):void
| groupName | property |
groupName:String [read-write]Indicates the name of the group of this object.
Implementation public function get groupName():String
public function set groupName(value:String):void
| _h | property |
protected var _h:Number = 0The protected virtual height value of the component.
| h | property |
h:Number [read-write](read-only) Indicates the virtual height value of this component.
Implementation public function get h():Number
public function set h(value:Number):void
| maxHeight | property |
public var maxHeight:NumberThis property defined the maximum height of this component.
| maxWidth | property |
public var maxWidth:NumberThis property defined the maximum width of this component.
| minHeight | property |
public var minHeight:NumberThis property defined the mimimun height of this component.
| minWidth | property |
public var minWidth:NumberThis property defined the mimimun width of this component.
| style | property |
style:IStyle [read-write]Returns the style of this component.
Implementation public function get style():IStyle
public function set style(value:IStyle):void
| _w | property |
protected var _w:Number = 0The protected virtual width value of the component.
| w | property |
w:Number [read-write](read-only) Indicates the virtual width value of this component.
Implementation public function get w():Number
public function set w(value:Number):void
| AbstractComponent | () | constructor |
public function AbstractComponent(id:* = null, isConfigurable:Boolean = false, name:String = null)Creates a new AbstractComponentDisplay instance.
Parametersid:* (default = null) — Indicates the id of the object.
|
|
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.
|
| doLater | () | method |
public function doLater():voidLaunch an event with a delayed interval.
| draw | () | method |
public function draw(... arguments):voidDraw the view of the component.
Parameters... arguments |
| fireComponentEvent | () | method |
protected function fireComponentEvent(type:String):voidDispatchs a ComponentEvent with the specified type.
Parameterstype:String |
| getBuilderRenderer | () | method |
public function getBuilderRenderer():Class
Returns the IBuilder constructor use to initialize this component.
Class — the IBuilder constructor use to initialize this component.
|
| getStyleRenderer | () | method |
public function getStyleRenderer():Class
Returns the IStyle constructor use to initialize this component.
Class — the IStyle constructor use to initialize this component.
|
| groupPolicyChanged | () | method |
public function groupPolicyChanged():voidInvoked when the group property or the groupName property changed. Overrides this method in concrete class.
| hide | () | method |
public function hide():voidHides the component.
| initialize | () | method |
public function initialize():voidInitialize the component. You can override this method.
| isVisible | () | method |
public function isVisible():Boolean
Returns true if the component is visible.
Boolean — true if the component is visible.
|
| move | () | method |
public function move(x:Number, y:Number):voidMoves the component.
Parametersx:Number — The x position of the component.
|
|
y:Number — The y position of the component.
|
| notifyChanged | () | method |
public function notifyChanged():voidNotify a change in this component.
| notifyEnabled | () | method |
public function notifyEnabled():voidNotify an event when the enabled property is changed. This event can be a ComponentEvent.ENABLED or ComponentEvent.DISABLED event.
| notifyResized | () | method |
public function notifyResized():voidNotify an event when you resize the component.
| refresh | () | method |
public function refresh(init:*):voidRefresh the component with an object of initialization. This method launch the update() method.
Parametersinit:* |
| setSize | () | method |
public function setSize(w:Number, h:Number):voidSets the virtuals width and height of the component.
Parametersw:Number |
|
h:Number |
| setStyle | () | method |
public function setStyle(... args):voidSets the style property on the style declaration or object.
Parameters... args |
| show | () | method |
public function show():voidShows the component.
| update | () | method |
public override function update():voidUpdates the component. This method is invoked when the component must be refresh.
| viewChanged | () | method |
public function viewChanged():voidInvoked after the draw method and when the IBuilder is updated. This method is empty you can override it.
| viewDestroyed | () | method |
public function viewDestroyed(e:Event = null):voidInvoked when the component is destroyed with a removeMovieClip. Overrides this method.
Parameterse:Event (default = null) |
| viewEnabled | () | method |
public function viewEnabled():voidInvoked when the enabled property of the component change. Overrides this method.
| viewResize | () | method |
public function viewResize():voidInvoked when the component is resized. Overrides this method.
| viewStyleChanged | () | method |
public function viewStyleChanged(e:Event = null):voidInvoked when the component IStyle changed. Overrides this method.
Parameterse:Event (default = null) |