| パッケージ | mx.events |
| public class CollectionEvent | |
| 継承 | CollectionEvent Event Object |
関連項目
| プロパティ | 定義 | ||
|---|---|---|---|
![]() | bubbles : Boolean
イベントがバブリングイベントかどうかを示します。
| Event | |
![]() | cancelable : Boolean
イベントに関連付けられたビヘイビアを回避できるかどうかを示します。
| Event | |
![]() | constructor : Object
特定のオブジェクトインスタンスのクラスオブジェクトまたはコンストラクタ関数への参照です。
| Object | |
![]() | currentTarget : Object
イベントリスナーで Event オブジェクトをアクティブに処理しているオブジェクトです。
| Event | |
![]() | eventPhase : uint
イベントフローの現在の段階です。
| Event | |
items : Array
kind が CollectionEventKind.ADD または CollectionEventKind.REMOVE の場合、items プロパティは追加または削除されたアイテムの配列になります。 | CollectionEvent | ||
| kind : String
発生したイベントの種類を示します。
| CollectionEvent | ||
location : int
kind 値が CollectionEventKind.ADD、CollectionEventKind.MOVE、CollectionEventKind.REMOVE、または CollectionEventKind.REPLACE の場合、このプロパティは、items プロパティで指定されたアイテムのコレクションの 0 から始まるインデックスになります。 | CollectionEvent | ||
oldLocation : int
kind 値が CollectionEventKind.MOVE の場合、このプロパティは、items プロパティで指定されたアイテムの以前の位置にあるターゲットコレクションの 0 から始まるインデックスになります。 | CollectionEvent | ||
![]() | prototype : Object
[static]
クラスまたは関数オブジェクトのプロトタイプオブジェクトへの参照です。
| Object | |
![]() | target : Object
イベントターゲットです。
| Event | |
![]() | type : String
イベントの型です。
| Event | |
| メソッド | 定義 | ||
|---|---|---|---|
| CollectionEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, kind:String = null, location:int = -1, oldLocation:int = -1, items:Array = null)
コンストラクタ。
| CollectionEvent | ||
![]() | clone():Event
Event サブクラスのインスタンスを複製します。
| Event | |
![]() | formatToString(className:String, ... arguments):String
カスタム Event クラスに
toString() メソッドを実装するためのユーティリティ関数です。 | Event | |
![]() | hasOwnProperty(name:String):Boolean
オブジェクトに指定されたプロパティが定義されているかどうかを示します。
| Object | |
![]() | isDefaultPrevented():Boolean
イベントで
preventDefault() が呼び出されたかどうかをチェックします。 | Event | |
![]() | isPrototypeOf(theClass:Object):Boolean
Object クラスのインスタンスが、パラメータとして指定されたオブジェクトのプロトタイプチェーン内にあるかどうかを示します。
| Object | |
![]() | preventDefault():void
イベントのデフォルトビヘイビアをキャンセルできる場合に、そのビヘイビアをキャンセルします。
| Event | |
![]() | propertyIsEnumerable(name:String):Boolean
指定されたプロパティが存在し、列挙可能かどうかを示します。
| Object | |
![]() | setPropertyIsEnumerable(name:String, isEnum:Boolean = true):void
ループ処理に対するダイナミックプロパティの可用性を設定します。
| Object | |
![]() | stopImmediatePropagation():void
イベントフローの現在のノードおよび後続するノードで、イベントリスナーが処理されないようにします。
| Event | |
![]() | stopPropagation():void
イベントフローの現在のノードに後続するノードで、イベントリスナーが処理されないようにします。
| Event | |
![]() | toString():String
Event オブジェクトのすべてのプロパティを含むストリングを返します。
| Event | |
![]() | valueOf():Object
指定されたオブジェクトのプリミティブ値を返します。
| Object | |
| 定数 | 定義 | ||
|---|---|---|---|
![]() | ACTIVATE : String = "activate" [static]
activate イベントオブジェクトの type プロパティの値を定義します。 | Event | |
![]() | ADDED : String = "added" [static]
added イベントオブジェクトの type プロパティの値を定義します。 | Event | |
![]() | CANCEL : String = "cancel" [static]
cancelイベントオブジェクトの type プロパティの値を定義します。 | Event | |
![]() | CHANGE : String = "change" [static]
change イベントオブジェクトの type プロパティの値を定義します。 | Event | |
![]() | CLOSE : String = "close" [static]
close イベントオブジェクトの type プロパティの値を定義します。 | Event | |
| COLLECTION_CHANGE : String = "collectionChange" [static]
CollectionEvent.COLLECTION_CHANGE 定数は、コレクションが変更されるときに送出されるイベントのイベントオブジェクトの
type プロパティ値を定義します。 | CollectionEvent | ||
![]() | COMPLETE : String = "complete" [static]
complete イベントオブジェクトの type プロパティの値を定義します。 | Event | |
![]() | CONNECT : String = "connect" [static]
connect イベントオブジェクトの type プロパティの値を定義します。 | Event | |
![]() | DEACTIVATE : String = "deactivate" [static]
deactivate イベントオブジェクトの type プロパティの値を定義します。 | Event | |
![]() | ENTER_FRAME : String = "enterFrame" [static]
enterFrame イベントオブジェクトの type プロパティの値を定義します。 | Event | |
![]() | ID3 : String = "id3" [static]
id3 イベントオブジェクトの type プロパティの値を定義します。 | Event | |
![]() | INIT : String = "init" [static]
init イベントオブジェクトの type プロパティの値を定義します。 | Event | |
![]() | MOUSE_LEAVE : String = "mouseLeave" [static]
mouseLeave イベントオブジェクトの type プロパティの値を定義します。 | Event | |
![]() | OPEN : String = "open" [static]
open イベントオブジェクトの type プロパティの値を定義します。 | Event | |
![]() | REMOVED : String = "removed" [static]
removed イベントオブジェクトの type プロパティの値を定義します。 | Event | |
![]() | RENDER : String = "render" [static]
render イベントオブジェクトの type プロパティの値を定義します。 | Event | |
![]() | RESIZE : String = "resize" [static]
resize イベントオブジェクトの type プロパティの値を定義します。 | Event | |
![]() | SCROLL : String = "scroll" [static]
scroll イベントオブジェクトの type プロパティの値を定義します。 | Event | |
![]() | SELECT : String = "select" [static]
select イベントオブジェクトの type プロパティの値を定義します。 | Event | |
![]() | SOUND_COMPLETE : String = "soundComplete" [static]
soundComplete イベントオブジェクトの type プロパティの値を定義します。 | Event | |
![]() | TAB_CHILDREN_CHANGE : String = "tabChildrenChange" [static]
tabChildrenChange イベントオブジェクトの type プロパティの値を定義します。 | Event | |
![]() | TAB_ENABLED_CHANGE : String = "tabEnabledChange" [static]
tabEnabledChange イベントオブジェクトの type プロパティの値を定義します。 | Event | |
![]() | TAB_INDEX_CHANGE : String = "tabIndexChange" [static]
tabIndexChange イベントオブジェクトの type プロパティの値を定義します。 | Event | |
![]() | UNLOAD : String = "unload" [static]
unload イベントオブジェクトの type プロパティの値を定義します。 | Event | |
| items | プロパティ |
public var items:Array
kind が CollectionEventKind.ADD または CollectionEventKind.REMOVE の場合、items プロパティは追加または削除されたアイテムの配列になります。kind が CollectionEventKind.REPLACE または CollectionEventKind.UPDATE の場合、items プロパティは、イベントの影響を受けるアイテムの情報を持つ PropertyChangeEvent オブジェクトの配列になります。値が変更された場合は、PropertyChangeEvent オブジェクトの newValue フィールドおよび oldValue フィールドを調べて、古い値と新しい値を見つけます。kind が CollectionEventKind.REFRESH または CollectionEventKind.RESET の場合、この配列の長さは 0 です。
デフォルト値[ ].
関連項目
| kind | プロパティ |
public var kind:String
発生したイベントの種類を示します。プロパティ値は CollectionEventKind クラスのいずれかの値、またはイベントの種類が不明であることを示す null になります。
デフォルト値null.
関連項目
| location | プロパティ |
public var location:int
kind 値が CollectionEventKind.ADD、CollectionEventKind.MOVE、CollectionEventKind.REMOVE、または CollectionEventKind.REPLACE の場合、このプロパティは、items プロパティで指定されたアイテムのコレクションの 0 から始まるインデックスになります。
デフォルト値-1.
関連項目
| oldLocation | プロパティ |
public var oldLocation:int
kind 値が CollectionEventKind.MOVE の場合、このプロパティは、items プロパティで指定されたアイテムの以前の位置にあるターゲットコレクションの 0 から始まるインデックスになります。
デフォルト値-1.
| CollectionEvent | () | コンストラクタ |
public 関数 CollectionEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, kind:String = null, location:int = -1, oldLocation:int = -1, items:Array = null)コンストラクタ。
パラメータtype:String — イベントタイプ。イベントをトリガしたアクションを示します。
|
|
bubbles:Boolean (default = false) — イベントが表示リスト階層を上方にバブルできるかどうかを指定します。
|
|
cancelable:Boolean (default = false) — イベントに関連付けられた動作をキャンセルできるかどうかを指定します。
|
|
kind:String (default = null) — 発生したイベントの種類を示します。パラメータ値は CollectionEventKind クラスのいずれかの値、またはイベントの種類が不明であることを示す null になります。
|
|
location:int (default = -1) — kind が CollectionEventKind.ADD、CollectionEventKind.MOVE、CollectionEventKind.REMOVE、または CollectionEventKind.REPLACE の場合、この値は、items property で指定されたアイテムがターゲットコレクション内のどの位置にあるかを示します。
|
|
oldLocation:int (default = -1) — kind が CollectionEventKind.MOVE の場合、この値は、items プロパティで指定されたアイテムのターゲットコレクション内での以前の位置を示します。
|
|
items:Array (default = null) — items プロパティで説明しているように、イベントの影響を受けるアイテムの情報を持つオブジェクトの配列です。kind が CollectionEventKind.REFRESH または CollectionEventKind.RESET の場合、この配列の長さは 0 です。
|
| COLLECTION_CHANGE | 定数 |
public static const COLLECTION_CHANGE:String = "collectionChange"
CollectionEvent.COLLECTION_CHANGE 定数は、コレクションが変更されるときに送出されるイベントのイベントオブジェクトの type プロパティ値を定義します。
イベントオブジェクトの各プロパティには次の値が設定されています。イベントの種類によっては無効なプロパティもあります。詳細については、各プロパティの説明を参照してください。
| プロパティ | 値 |
|---|---|
bubbles | false |
cancelable | false |
currentTarget | イベントを処理するイベントリスナーを定義するオブジェクト。たとえば、イベントリスナーの登録に myButton.addEventListener() を使用すると、currentTarget の値は "myButton" となります。 |
items | イベントの影響を受けるアイテムの情報を持つオブジェクトの配列です。このフィールドの内容はイベントの種類に応じて異なります。詳細については、items プロパティを参照してください。 |
kind | イベントの種類です。有効な値が定数として CollectionEventKind クラスに定義されます。 |
location | items プロパティで指定されたアイテムのターゲットコレクション内における位置です。 |
oldLocation | items プロパティで指定されたアイテムのコレクション内における以前の位置です。 |
target | イベントを送出したオブジェクトを表します。このオブジェクトは必ずしもイベントを受け取るオブジェクトとは限りません。イベントを受け取るオブジェクトに常にアクセスするには、currentTarget プロパティを使用してください。 |
type | CollectionEvent.COLLECTION_CHANGE |