Packagelunas
Classpublic class CoreComponent
InheritanceCoreComponent Inheritance Background Inheritance CoreSprite Inheritance flash.display.Sprite
Implements Component
Subclasses Container, CoreButton, CoreProgress, CoreTextInput, Label

This class provides a skeletal implementation of all the components in Lunas, to minimize the effort required to implement this interface.



Public Properties
 PropertyDefined By
 Inheritedalign : uint
The alignement of the background.
Background
 InheritedautoSize : Boolean
Indicates if the background is resizing when the stage resize event is invoked.
Background
  border : EdgeMetrics
Indicates the thickness, in pixels, of the four edge regions around a visual component.
CoreComponent
 InheritedbottomLeftRadius : Number
The radius of the bottom-left corner, in pixels.
Background
 InheritedbottomRightRadius : Number
The radius of the bottom-right corner, in pixels.
Background
  bubbles : Boolean = true
Indicates if the events use bubbling when are dispatched.
CoreComponent
  builder : Builder
Indicates the Builder reference of this instance.
CoreComponent
  componentInspectorSetting : Boolean
Initialize when the Flash component settings are initialized (only in Flash with a compiled component).
CoreComponent
 Inheriteddirection : String
Indicates the direction value of the background when the display is in this "full" mode (default value is null).
Background
  enabled : Boolean
Indicates the enabled state of the component.
CoreComponent
 Inheritedfill : IFillStyle
Determinates the IFillStyle reference of this display.
Background
 InheritedgradientMatrix : Matrix
The matrix value to draw the gradient fill.
Background
 InheritedgradientRotation : Number = 0
The rotation value to draw the gradient fill.
Background
 InheritedgradientTranslation : Point
The translation vector to draw the gradient fill.
Background
  group : Boolean
Indicates with a boolean if this object is grouped.
CoreComponent
  groupName : String
Indicates the name of the group of this object.
CoreComponent
 Inheritedh : Number
Determinates the virtual height value of this component.
Background
 InheritedisFull : Boolean
Indicates if the background use full size (use Stage.stageWidth and Stage.stageHeight to resize the background).
Background
  layout : Layout
Determinates the layout of this container.
CoreComponent
 Inheritedline : ILineStyle
Determinates the ILineStyle reference of this display.
Background
 Inheritedlogger : Logger
Determinates the internal ILogger reference of this Logable object.
CoreSprite
 InheritedmaxHeight : Number
This property defined the maximum height of this display.
Background
 InheritedmaxWidth : Number
Defines the maximum width of this display.
Background
 InheritedminHeight : Number
This property defined the mimimun height of this display (This value is >= 0).
Background
 InheritedminWidth : Number
This property defined the mimimun width of this display (This value is >= 0).
Background
  style : Style
Returns the style of this component.
CoreComponent
 InheritedtopLeftRadius : Number
The radius of the upper-left corner, in pixels.
Background
 InheritedtopRightRadius : Number
The radius of the upper-right corner, in pixels.
Background
 InheriteduseGradientBox : Boolean
Indicates if the IFillStyle of this display use gradient box matrix (only if the IFillStyle is a FillGradientStyle).
Background
 Inheritedw : Number
Determinates the virtual height value of this component.
Background
Protected Properties
 PropertyDefined By
  _scope : DisplayObjectContainer
The scope of the active display of this container component.
CoreComponent
Public Methods
 MethodDefined By
  
Creates a new CoreComponent instance.
CoreComponent
 Inherited
doLater():void
Launch an event with a delayed interval.
Background
 Inherited
draw(... arguments):void
Draw the display.
Background
  
Returns the Builder constructor use to initialize this component.
CoreComponent
  
Returns the Style constructor use to initialize this component.
CoreComponent
  
Invoked when the group property or the groupName property changed.
CoreComponent
  
hide():void
Hides the component.
CoreComponent
 Inherited
initBackgroundPen(graphic:* = null):IPen
Init the pen to draw the background of this display.
Background
  
initialize():void
Initialize the component.
CoreComponent
 Inherited
isLocked():Boolean
Returns true if the object is locked.
CoreSprite
  
isVisible():Boolean
Returns true if the component is visible.
CoreComponent
  
lock():void
[override] Locks the object.
CoreComponent
  
move(x:Number, y:Number):void
Moves the component.
CoreComponent
  
Notify a change in this component.
CoreComponent
  
Notify an event when the enabled property is changed.
CoreComponent
 Inherited
Notify an event when you resize the component.
Background
 Inherited
refresh(init:*):void
Refresh and initialize the display with a generic object and invoke the "update" method.
Background
  
registerView(scope:DisplayObjectContainer = null):void
Registers the view of this component.
CoreComponent
 Inherited
resetLock():void
Reset the lock security of the display.
CoreSprite
 Inherited
resize(e:Event = null):void
Resize and update the background.
Background
  
scope():DisplayObject
Returns the real scope reference of this component.
CoreComponent
 Inherited
setCornerRadius(n:Number):void
Defines all corner radius of the background (upper-left, upper-right, bottom-left and bottom-right).
Background
 Inherited
setSize(w:Number, h:Number):void
Sets the virtual width (w) and height (h) values of the component.
Background
  
setStyle(... args):void
Sets the style property on the style declaration or object.
CoreComponent
  
show():void
Shows the component.
CoreComponent
  
unlock():void
[override] Unlocks the display.
CoreComponent
  
Unregisters the view of this component.
CoreComponent
  
update():void
[override] Updates the component.
CoreComponent
 Inherited
This method is invoked after the draw() method in the update() method.
Background
  
viewDestroyed(e:Event = null):void
Invoked when the component is removed.
CoreComponent
 Inherited
Invoked when the enabled property of the component change.
Background
 Inherited
viewResize():void
Invoked when the component is resized.
Background
  
viewStyleChanged(e:Event = null):void
Invoked when the component Style changed.
CoreComponent
Protected Methods
 MethodDefined By
 Inherited
addedToStage(e:Event = null):void
Invoked when the display is added to the stage.
CoreSprite
 Inherited
addedToStageResize(e:Event = null):void
Invoked when the display is removed from the stage to enable the autoSize mode.
Background
  
fireComponentEvent(type:String):void
Dispatchs a ComponentEvent with the specified type.
CoreComponent
 Inherited
removedFromStage(e:Event = null):void
Invoked when the display is removed from the stage.
CoreSprite
 Inherited
removedFromStageResize(e:Event = null):void
Invoked when the display is removed from the stage to disable the autoSize mode.
Background
  
renderLayout(layout:Layout = null):void
Receives a message when the layout emit when is rendered.
CoreComponent
  
updateLayout(layout:Layout = null):void
Receives a message when the layout emit when is updated.
CoreComponent
Property Detail
_scopeproperty
protected var _scope:DisplayObjectContainer

The scope of the active display of this container component.

borderproperty 
border:EdgeMetrics

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
bubblesproperty 
public var bubbles:Boolean = true

Indicates if the events use bubbling when are dispatched.

builderproperty 
builder:Builder

Indicates the Builder reference of this instance.


Implementation
    public function get builder():Builder
    public function set builder(value:Builder):void
componentInspectorSettingproperty 
componentInspectorSetting:Boolean

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
enabledproperty 
enabled:Boolean

Indicates the enabled state of the component.


Implementation
    public function get enabled():Boolean
    public function set enabled(value:Boolean):void
groupproperty 
group:Boolean

Indicates with a boolean if this object is grouped.


Implementation
    public function get group():Boolean
    public function set group(value:Boolean):void
groupNameproperty 
groupName:String

Indicates the name of the group of this object.


Implementation
    public function get groupName():String
    public function set groupName(value:String):void
layoutproperty 
layout:Layout

Determinates the layout of this container.


Implementation
    public function get layout():Layout
    public function set layout(value:Layout):void
styleproperty 
style:Style

Returns the style of this component.


Implementation
    public function get style():Style
    public function set style(value:Style):void
Constructor Detail
CoreComponent()Constructor
public function CoreComponent()

Creates a new CoreComponent instance.

Method Detail
fireComponentEvent()method
protected function fireComponentEvent(type:String):void

Dispatchs a ComponentEvent with the specified type.

Parameters

type:String

getBuilderRenderer()method 
public function getBuilderRenderer():Class

Returns the Builder constructor use to initialize this component.

Returns
Class — the Builder constructor use to initialize this component.
getStyleRenderer()method 
public function getStyleRenderer():Class

Returns the Style constructor use to initialize this component.

Returns
Class — the Style constructor use to initialize this component.
groupPolicyChanged()method 
public function groupPolicyChanged():void

Invoked when the group property or the groupName property changed. Overrides this method in concrete class.

hide()method 
public function hide():void

Hides the component.

initialize()method 
public function initialize():void

Initialize the component. You can override this method.

isVisible()method 
public function isVisible():Boolean

Returns true if the component is visible.

Returns
Booleantrue if the component is visible.
lock()method 
override public function lock():void

Locks the object.

move()method 
public function move(x:Number, y:Number):void

Moves the component.

Parameters

x:Number (default = NaN) — The x position of the component.
 
y:Number (default = NaN) — The y position of the component.

notifyChanged()method 
public function notifyChanged():void

Notify a change in this component.

notifyEnabled()method 
public function notifyEnabled():void

Notify an event when the enabled property is changed. This event can be a ComponentEvent.ENABLED or ComponentEvent.DISABLED event.

registerView()method 
public function registerView(scope:DisplayObjectContainer = null):void

Registers the view of this component. The scope view can be the current DisplayObjectContainer or a child inside it.

Parameters

scope:DisplayObjectContainer (default = null)

renderLayout()method 
protected function renderLayout(layout:Layout = null):void

Receives a message when the layout emit when is rendered.

Parameters

layout:Layout (default = null)

scope()method 
public function scope():DisplayObject

Returns the real scope reference of this component.

Returns
DisplayObject — the real scope reference of this component.
setStyle()method 
public function setStyle(... args):void

Sets the style property on the style declaration or object.

Parameters

... args

show()method 
public function show():void

Shows the component.

unlock()method 
override public function unlock():void

Unlocks the display.

unregisterView()method 
public function unregisterView():void

Unregisters the view of this component.

update()method 
override public function update():void

Updates the component.

updateLayout()method 
protected function updateLayout(layout:Layout = null):void

Receives a message when the layout emit when is updated.

Parameters

layout:Layout (default = null)

viewDestroyed()method 
public function viewDestroyed(e:Event = null):void

Invoked when the component is removed. Overrides this method.

Parameters

e:Event (default = null)

viewStyleChanged()method 
public function viewStyleChanged(e:Event = null):void

Invoked when the component Style changed. Overrides this method.

Parameters

e:Event (default = null)