包 | com.adobe.gravity.framework |
类 | public class ServiceEvent |
继承 | ServiceEvent Event Object |
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10 |
运行时版本: | AIR 1.1, Flash Player 9 |
属性 | 由以下参数定义 | ||
---|---|---|---|
bubbles : Boolean [只读]
表示事件是否为冒泡事件。 | Event | ||
cancelable : Boolean [只读]
表示是否可以阻止与事件相关联的行为。 | Event | ||
constructor : Object
对类对象或给定对象实例的构造函数的引用。 | Object | ||
currentTarget : Object [只读]
当前正在使用某个事件侦听器处理 Event 对象的对象。 | Event | ||
eventPhase : uint [只读]
事件流中的当前阶段。 | Event | ||
serviceClass : Class [只读] The service class. | ServiceEvent | ||
serviceReference : IServiceReference [只读] The service undergoing a lifecycle change. | ServiceEvent | ||
target : Object [只读]
事件目标。 | Event | ||
type : String [只读]
事件的类型。 | Event |
方法 | 由以下参数定义 | ||
---|---|---|---|
Constructor. | ServiceEvent | ||
[覆盖]
Duplicates an instance of an Event subclass. | ServiceEvent | ||
用于在自定义 ActionScript 3.0 Event 类中实现 toString() 方法的实用程序函数。 | Event | ||
表示对象是否已经定义了指定的属性。 | Object | ||
检查是否已对事件调用 preventDefault() 方法。 | Event | ||
表示 Object 类的实例是否在指定为参数的对象的原型链中。 | Object | ||
如果可以取消事件的默认行为,则取消该行为。 | Event | ||
表示指定的属性是否存在、是否可枚举。 | Object | ||
设置循环操作动态属性的可用性。 | Object | ||
防止对事件流中当前节点中和所有后续节点中的事件侦听器进行处理。 | Event | ||
防止对事件流中当前节点的后续节点中的所有事件侦听器进行处理。 | Event | ||
返回此对象的字符串表示形式,其格式设置遵守区域设置特定的约定。 | Object | ||
返回一个字符串,其中包含 Event 对象的所有属性。 | Event | ||
返回指定对象的原始值。 | Object |
常量 | 由以下参数定义 | ||
---|---|---|---|
SERVICE_MODIFIED : String = "serviceModified" [静态] The serviceModified event type indicates that the properties of the service have been modified. | ServiceEvent | ||
SERVICE_REGISTERED : String = "serviceRegistered" [静态] The serviceRegistered event type indicates that the service has been registered. | ServiceEvent | ||
SERVICE_UNREGISTERING : String = "serviceUnregistering" [静态] The serviceUnregistering event type indicates that the service is in the process of being unregistered. | ServiceEvent |
serviceClass | 属性 |
serviceReference | 属性 |
serviceReference:IServiceReference
[只读] 语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10 |
运行时版本: | AIR 1.1, Flash Player 9 |
The service undergoing a lifecycle change.
实现
public function get serviceReference():IServiceReference
ServiceEvent | () | 构造函数 |
public function ServiceEvent(type:String, reference:IServiceReference, clazz:Class)
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10 |
运行时版本: | AIR 1.1, Flash Player 9 |
Constructor.
参数type:String — event type.
| |
reference:IServiceReference — service reference for the affected service.
| |
clazz:Class — service class.
|
clone | () | 方法 |
override public function clone():Event
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10 |
运行时版本: | AIR 1.1, Flash Player 9 |
Duplicates an instance of an Event subclass.
Returns a new Event object that is a copy of the original instance of the Event object.
You do not normally call clone()
; the EventDispatcher class calls it automatically
when you redispatch an event—that is, when you call dispatchEvent(event)
from a handler
that is handling event
.
The new Event object includes all the properties of the original.
When creating your own custom Event class, you must override the
inherited Event.clone()
method in order for it to duplicate the
properties of your custom class. If you do not set all the properties that you add
in your event subclass, those properties will not have the correct values when listeners
handle the redispatched event.
In this example, PingEvent
is a subclass of Event
and therefore implements its own version of clone()
.
class PingEvent extends Event { var URL:String; public override function clone():Event { return new PingEvent(type, bubbles, cancelable, URL); } }
Event — A new Event object that is identical to the original.
|
SERVICE_MODIFIED | 常量 |
public static const SERVICE_MODIFIED:String = "serviceModified"
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10 |
运行时版本: | AIR 1.1, Flash Player 9 |
The serviceModified event type indicates that the properties of the service have been modified.
SERVICE_REGISTERED | 常量 |
public static const SERVICE_REGISTERED:String = "serviceRegistered"
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10 |
运行时版本: | AIR 1.1, Flash Player 9 |
The serviceRegistered event type indicates that the service has been registered.
SERVICE_UNREGISTERING | 常量 |
public static const SERVICE_UNREGISTERING:String = "serviceUnregistering"
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10 |
运行时版本: | AIR 1.1, Flash Player 9 |
The serviceUnregistering event type indicates that the service is in the process of being unregistered.
Tue Jun 12 2018, 11:04 AM Z