| Package | lunas.core |
| Class | public class AbstractStyle |
| Inheritance | AbstractStyle ConfigurableObject CoreEventDispatcher CoreObject |
| Implements | IStyle |
| Subclasses | AquaButtonStyle, BackgroundButtonStyle, LightButtonStyle, LightFrameLabelButtonStyle, SimpleScrollbarStyle, SimpleTextInputStyle, VisualTextInputStyle |
IStyle interface, to minimize the effort required to implement this interface.
| Property | Defined by | ||
|---|---|---|---|
![]() | channel : String
Indicates the channel of this dispatcher if this instance is global.
| CoreEventDispatcher | |
![]() | id : *
Returns the id of this object.
| ConfigurableObject | |
![]() | isConfigurable : Boolean
(read-write) Returns
true if the object is configurable and receive the notification of the ConfigCollector in the setup() method. | ConfigurableObject | |
![]() | isGlobal : Boolean
(read-only) Returns the value of the isGlobal flag of this model.
| CoreEventDispatcher | |
| styleSheet : StyleSheet
Indicates the style sheet reference of this object.
| AbstractStyle | ||
| Method | Defined by | ||
|---|---|---|---|
|
AbstractStyle(id:* = null, init:Boolean = null, bGlobal:String = "false", sChannel:* = null)
Creates a new AbstractStyle instance.
| AbstractStyle | ||
![]() |
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0.0, useWeakReference:Boolean = false):void
Allows the registration of event listeners on the event target.
| CoreEventDispatcher | |
![]() |
dispatchEvent(event:Event):Boolean
Dispatches an event into the event flow.
| CoreEventDispatcher | |
![]() |
Returns the internal
EventDispatcher reference. | CoreEventDispatcher | |
![]() |
getIsGlobal():Boolean
Returns the value of the isGlobal flag of this model.
| CoreEventDispatcher | |
![]() |
Returns the internal
ILogger reference of this ILogable object. | CoreObject | |
|
getStyle(prop:String):*
Returns the value of the specified property if it's exist in the object, else returns null.
| AbstractStyle | ||
![]() |
hasEventListener(type:String):Boolean
Checks whether the EventDispatcher object has any listeners registered for a specific type of event.
| CoreEventDispatcher | |
![]() |
hashCode():uint
Returns a hashcode value for the object.
| CoreObject | |
![]() |
Creates and returns the internal
EventDispatcher reference (this method is invoked in the constructor). | CoreEventDispatcher | |
|
initialize():void
Invoked in the constructor of the
IStyle instance. | AbstractStyle | ||
![]() |
isLocked():Boolean
Returns
true if the object is locked. | CoreEventDispatcher | |
![]() |
lock():void
Locks the object.
| CoreEventDispatcher | |
|
notifyStyleChanged():void
Invoked when the style is changed.
| AbstractStyle | ||
![]() |
registerEventListener(type:String, listener:Boolean, useCapture:int = false, priority:Boolean = 0, useWeakReference:* = false):void
Allows the registration of event listeners on the event target (Function or EventListener).
| CoreEventDispatcher | |
![]() |
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Removes a listener from the EventDispatcher object.
| CoreEventDispatcher | |
![]() |
setEventDispatcher(e:EventDispatcher):void
Sets the internal
EventDispatcher reference. | CoreEventDispatcher | |
![]() |
setGlobal(flag:Boolean = false, channel:String = null):void
Sets if the instance use a global
EventDispatcher to dispatch this events, if the flag value is false the instance use a local EventDispatcher. | CoreEventDispatcher | |
![]() |
Sets the internal
ILogger reference of this ILogable object. | CoreObject | |
|
setStyle(... args):void
This method is invoked to change a style attribute in this IStyle object with a generic object or a key(String)/value pair of arguments.
| AbstractStyle | ||
|
setup():void
Invoked when this object when the ConfigCollector is run.
| AbstractStyle | ||
|
styleChanged():void
Invoked when a style property of this
IStyle change. | AbstractStyle | ||
|
styleSheetChanged():void
Invoked when the styleSheet value of this
IStyle change. | AbstractStyle | ||
![]() |
toSource(indent:int = 0):String
Returns the string representation the source code of the object.
| CoreEventDispatcher | |
|
toString():String
Returns the
String representation of this object. | AbstractStyle | ||
![]() |
unlock():void
Unlocks the display.
| CoreEventDispatcher | |
![]() |
unregisterEventListener(type:String, listener:Boolean, useCapture:* = false):void
Removes a listener (Function or EventListener object) from the EventDispatcher object.
| CoreEventDispatcher | |
![]() |
update():void
Update the display.
| ConfigurableObject | |
![]() |
willTrigger(type:String):Boolean
Checks whether an event listener is registered with this EventDispatcher object or any of its ancestors for the specified event type.
| CoreEventDispatcher | |
| Method | Defined by | ||
|---|---|---|---|
|
_setID(id:*):void
Sets the id of the object and register it in the StyleCollector if it's possible.
| AbstractStyle | ||
| styleSheet | property |
styleSheet:StyleSheet [read-write]Indicates the style sheet reference of this object.
Implementation public function get styleSheet():StyleSheet
public function set styleSheet(value:StyleSheet):void
| AbstractStyle | () | constructor |
public function AbstractStyle(id:* = null, init:Boolean = null, bGlobal:String = "false", sChannel:* = null)Creates a new AbstractStyle instance.
Parametersid:* (default = null) — The id of the object.
|
|
init:Boolean (default = null) — An object that contains properties with which to populate the newly IStyle object. If initObject is not an object, it is ignored.
|
|
bGlobal:String (default = "false") — the flag to use a global event flow or a local event flow.
|
|
sChannel:* (default = null) — the name of the global event flow if the bGlobal argument is true.
|
| _setID | () | method |
protected override function _setID(id:*):voidSets the id of the object and register it in the StyleCollector if it's possible.
Parametersid:* |
See also
| getStyle | () | method |
public function getStyle(prop:String):*Returns the value of the specified property if it's exist in the object, else returns null.
Parametersprop:String |
* — the value of the specified property if it's exist in the object or null.
|
| initialize | () | method |
public function initialize():void
Invoked in the constructor of the IStyle instance.
| notifyStyleChanged | () | method |
public function notifyStyleChanged():voidInvoked when the style is changed.
| setStyle | () | method |
public function setStyle(... args):voidThis method is invoked to change a style attribute in this IStyle object with a generic object or a key(String)/value pair of arguments.
Parameters... args |
| setup | () | method |
public override function setup():voidInvoked when this object when the ConfigCollector is run.
| styleChanged | () | method |
public function styleChanged():void
Invoked when a style property of this IStyle change.
By default this method is empty, you can override this method.
| styleSheetChanged | () | method |
public function styleSheetChanged():void
Invoked when the styleSheet value of this IStyle change.
By default this method is empty, you can override this method.
| toString | () | method |
public override function toString():String
Returns the String representation of this object.
String — the String representation of this object.
|