| Package | lunas.events |
| Class | public class StyleEvent |
| Inheritance | StyleEvent BasicEvent flash.events.Event |
StyleEvent to dispatch an event with an IStyle object.
| Property | Defined By | ||
|---|---|---|---|
![]() | context : *
Determinates the optional context of this event. | BasicEvent | |
| style : Style
Returns the Style reference of this event. | StyleEvent | ||
![]() | target : Object [override]
Indicates the custom event target. | BasicEvent | |
![]() | timeStamp : uint [read-only]
Indicates the timestamp of the event. | BasicEvent | |
![]() | type : String [override]
Returns the type of event. | BasicEvent | |
| Method | Defined By | ||
|---|---|---|---|
StyleEvent(type:String, target:* = null, context:* = null, bubbles:Boolean = false, cancelable:Boolean = false, time:Number = 0)
Creates a new StyleEvent instance. | StyleEvent | ||
clone():Event [override]
Returns the shallow copy of this event. | StyleEvent | ||
![]() | dispatch(channel:String = null):void
Dispatch the event with the global event flow. | BasicEvent | |
![]() | toString():String [override]
Returns the string representation of this event. | BasicEvent | |
| Constant | Defined By | ||
|---|---|---|---|
| STYLE_CHANGE : String = styleChange [static]
The type event name of the StyleEvent when the style is changed in the component. | StyleEvent | ||
| STYLE_SHEET_CHANGE : String = styleSheetChange [static]
The type event name of the StyleEvent when the styleSheet in the Style is changed. | StyleEvent | ||
| style | property |
style:StyleReturns the Style reference of this event.
public function get style():Style public function set style(value:Style):void| StyleEvent | () | Constructor |
public function StyleEvent(type:String, target:* = null, context:* = null, bubbles:Boolean = false, cancelable:Boolean = false, time:Number = 0)Creates a new StyleEvent instance.
Parameterstype:String — the string type of the instance.
| |
target:* (default = null) — the target of the event.
| |
context:* (default = null) — the optional context object of the event.
| |
bubbles:Boolean (default = false) — indicates if the event is a bubbling event.
| |
cancelable:Boolean (default = false) — indicates if the event is a cancelable event.
| |
time:Number (default = 0) — this optional parameter is used in the eden deserialization to copy the timestamp value of this event.
|
| clone | () | method |
override public function clone():EventReturns the shallow copy of this event.
ReturnsEvent — the shallow copy of this event.
|
| STYLE_CHANGE | Constant |
public static const STYLE_CHANGE:String = styleChangeThe type event name of the StyleEvent when the style is changed in the component.
| STYLE_SHEET_CHANGE | Constant |
public static const STYLE_SHEET_CHANGE:String = styleSheetChangeThe type event name of the StyleEvent when the styleSheet in the Style is changed.