| Package | lunas |
| Class | public class CoreComponent |
| Inheritance | CoreComponent Background CoreSprite flash.display.Sprite |
| Implements | Component |
| Subclasses | Container, CoreButton, CoreProgress, CoreTextInput, Label |
| Property | Defined By | ||
|---|---|---|---|
![]() | align : uint
The alignement of the background. | Background | |
![]() | autoSize : 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 | ||
![]() | bottomLeftRadius : Number
The radius of the bottom-left corner, in pixels. | Background | |
![]() | bottomRightRadius : 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 | ||
![]() | direction : 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 | ||
![]() | fill : IFillStyle
Determinates the IFillStyle reference of this display. | Background | |
![]() | gradientMatrix : Matrix
The matrix value to draw the gradient fill. | Background | |
![]() | gradientRotation : Number = 0
The rotation value to draw the gradient fill. | Background | |
![]() | gradientTranslation : 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 | ||
![]() | h : Number
Determinates the virtual height value of this component. | Background | |
![]() | isFull : 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 | ||
![]() | line : ILineStyle
Determinates the ILineStyle reference of this display. | Background | |
![]() | logger : Logger
Determinates the internal ILogger reference of this Logable object. | CoreSprite | |
![]() | maxHeight : Number
This property defined the maximum height of this display. | Background | |
![]() | maxWidth : Number
Defines the maximum width of this display. | Background | |
![]() | minHeight : Number
This property defined the mimimun height of this display (This value is >= 0). | Background | |
![]() | minWidth : Number
This property defined the mimimun width of this display (This value is >= 0). | Background | |
| style : Style
Returns the style of this component. | CoreComponent | ||
![]() | topLeftRadius : Number
The radius of the upper-left corner, in pixels. | Background | |
![]() | topRightRadius : Number
The radius of the upper-right corner, in pixels. | Background | |
![]() | useGradientBox : Boolean
Indicates if the IFillStyle of this display use gradient box matrix (only if the IFillStyle is a FillGradientStyle). | Background | |
![]() | w : Number
Determinates the virtual height value of this component. | Background | |
| Property | Defined By | ||
|---|---|---|---|
| _scope : DisplayObjectContainer
The scope of the active display of this container component. | CoreComponent | ||
| Method | Defined By | ||
|---|---|---|---|
Creates a new CoreComponent instance. | CoreComponent | ||
![]() | doLater():void
Launch an event with a delayed interval. | Background | |
![]() | draw(... arguments):void
Draw the display. | Background | |
getBuilderRenderer():Class
Returns the Builder constructor use to initialize this component. | CoreComponent | ||
getStyleRenderer():Class
Returns the Style constructor use to initialize this component. | CoreComponent | ||
groupPolicyChanged():void
Invoked when the group property or the groupName property changed. | CoreComponent | ||
hide():void
Hides the component. | CoreComponent | ||
![]() | initBackgroundPen(graphic:* = null):IPen
Init the pen to draw the background of this display. | Background | |
initialize():void
Initialize the component. | CoreComponent | ||
![]() | 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 | ||
notifyChanged():void
Notify a change in this component. | CoreComponent | ||
notifyEnabled():void
Notify an event when the enabled property is changed. | CoreComponent | ||
![]() | notifyResized():void
Notify an event when you resize the component. | Background | |
![]() | 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 | ||
![]() | resetLock():void
Reset the lock security of the display. | CoreSprite | |
![]() | resize(e:Event = null):void
Resize and update the background. | Background | |
scope():DisplayObject
Returns the real scope reference of this component. | CoreComponent | ||
![]() | setCornerRadius(n:Number):void
Defines all corner radius of the background (upper-left, upper-right, bottom-left and bottom-right). | Background | |
![]() | 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 | ||
unregisterView():void
Unregisters the view of this component. | CoreComponent | ||
update():void [override]
Updates the component. | CoreComponent | ||
![]() | viewChanged():void
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 | ||
![]() | viewEnabled():void
Invoked when the enabled property of the component change. | Background | |
![]() | viewResize():void
Invoked when the component is resized. | Background | |
viewStyleChanged(e:Event = null):void
Invoked when the component Style changed. | CoreComponent | ||
| Method | Defined By | ||
|---|---|---|---|
![]() | addedToStage(e:Event = null):void
Invoked when the display is added to the stage. | CoreSprite | |
![]() | 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 | ||
![]() | removedFromStage(e:Event = null):void
Invoked when the display is removed from the stage. | CoreSprite | |
![]() | 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 | ||
| _scope | property |
protected var _scope:DisplayObjectContainerThe scope of the active display of this container component.
| border | property |
border:EdgeMetricsIndicates the thickness, in pixels, of the four edge regions around a visual component.
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:BuilderIndicates the Builder reference of this instance.
public function get builder():Builder public function set builder(value:Builder):void| componentInspectorSetting | property |
componentInspectorSetting:BooleanInitialize when the Flash component settings are initialized (only in Flash with a compiled component).
public function get componentInspectorSetting():Boolean public function set componentInspectorSetting(value:Boolean):void| enabled | property |
enabled:BooleanIndicates the enabled state of the component.
public function get enabled():Boolean public function set enabled(value:Boolean):void| group | property |
group:BooleanIndicates with a boolean if this object is grouped.
public function get group():Boolean public function set group(value:Boolean):void| groupName | property |
groupName:StringIndicates the name of the group of this object.
public function get groupName():String public function set groupName(value:String):void| layout | property |
layout:LayoutDeterminates the layout of this container.
public function get layout():Layout public function set layout(value:Layout):void| style | property |
style:StyleReturns the style of this component.
public function get style():Style public function set style(value:Style):void| CoreComponent | () | Constructor |
public function CoreComponent()Creates a new CoreComponent instance.
| fireComponentEvent | () | method |
protected function fireComponentEvent(type:String):voidDispatchs a ComponentEvent with the specified type.
Parameters
type:String |
| getBuilderRenderer | () | method |
public function getBuilderRenderer():Class
Returns the Builder constructor use to initialize this component.
Class — the Builder constructor use to initialize this component.
|
| getStyleRenderer | () | method |
public function getStyleRenderer():Class
Returns the Style constructor use to initialize this component.
Class — the Style 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.
|
| lock | () | method |
override public function lock():voidLocks the object.
| move | () | method |
public function move(x:Number, y:Number):voidMoves 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():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.
| registerView | () | method |
public function registerView(scope:DisplayObjectContainer = null):voidRegisters 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):voidReceives a message when the layout emit when is rendered.
Parameters
layout:Layout (default = null) |
| scope | () | method |
public function scope():DisplayObjectReturns the real scope reference of this component.
ReturnsDisplayObject — the real scope reference of this component.
|
| 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.
| unlock | () | method |
override public function unlock():voidUnlocks the display.
| unregisterView | () | method |
public function unregisterView():voidUnregisters the view of this component.
| update | () | method |
override public function update():voidUpdates the component.
| updateLayout | () | method |
protected function updateLayout(layout:Layout = null):voidReceives a message when the layout emit when is updated.
Parameters
layout:Layout (default = null) |
| viewDestroyed | () | method |
public function viewDestroyed(e:Event = null):voidInvoked when the component is removed. Overrides this method.
Parameters
e:Event (default = null) |
| viewStyleChanged | () | method |
public function viewStyleChanged(e:Event = null):voidInvoked when the component Style changed. Overrides this method.
Parameters
e:Event (default = null) |