套件 | mx.data |
類別 | public class UpdateCollectionRange |
繼承 | UpdateCollectionRange Object |
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
body
property.
相關 API 元素
屬性 | 定義自 | ||
---|---|---|---|
constructor : Object
類別物件的參照或是特定物件實體的建構函數。 | Object | ||
identities : Array
An Array of identity objects that represent which items
were either deleted or inserted in the associated collection starting
at the position indicated by the position property. | UpdateCollectionRange | ||
position : int
Indicates the beginning index for the range of updates made to the
associated collection. | UpdateCollectionRange | ||
size : int
Indicates the increase in collection size. | UpdateCollectionRange | ||
updateType : int
Indicates what operation this range represents. | UpdateCollectionRange |
方法 | 定義自 | ||
---|---|---|---|
Constructs an empty UpdateCollectionRange. | UpdateCollectionRange | ||
指出物件是否有已定義的指定屬性。 | Object | ||
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。 | Object | ||
指出指定的屬性是否存在,以及是否可列舉。 | Object | ||
為迴圈作業設定動態屬性的可用性。 | Object | ||
傳回代表此物件的字串,根據地區特定慣例進行格式化。 | Object | ||
會傳回指定之物件的字串形式。 | Object | ||
會傳回指定之物件的基本值。 | Object |
常數 | 定義自 | ||
---|---|---|---|
DECREMENT_COLLECTION_SIZE : int = 3 [靜態]
Indicates a derease in the collection size. | UpdateCollectionRange | ||
DELETE_FROM_COLLECTION : int = 1 [靜態]
Indicates a range of items that have been deleted from the collection. | UpdateCollectionRange | ||
INCREMENT_COLLECTION_SIZE : int = 2 [靜態]
Indicates an increase in the collection size. | UpdateCollectionRange | ||
INSERT_INTO_COLLECTION : int = 0 [靜態]
Indicates a range of items have been inserted into the collection. | UpdateCollectionRange | ||
UPDATE_COLLECTION_SIZE : int = 4 [靜態]
Indicates an update to the collection size sent by the server. | UpdateCollectionRange |
identities | 屬性 |
public var identities:Array
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
An Array of identity objects that represent which items
were either deleted or inserted in the associated collection starting
at the position indicated by the position
property.
position | 屬性 |
public var position:int
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Indicates the beginning index for the range of updates made to the
associated collection.
The updateType
indicates if the range was an insert or a
remove operation.
size | 屬性 |
public var size:int
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Indicates the increase in collection size. Only applicatble when update type is INCREMENT_COLLECTION_SIZE or DECREMENT_COLLECTION_SIZE
updateType | 屬性 |
public var updateType:int
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Indicates what operation this range represents. Valid values are:
UpdateCollectionRange.INSERT_INTO_COLLECTION
UpdateCollectionRange.DELETE_FROM_COLLECTION
UpdateCollectionRange.INCREMENT_COLLECTION_SIZE
UpdateCollectionRange.DECREMENT_COLLECTION_SIZE
UpdateCollectionRange.UPDATE_COLLECTION_SIZE
UpdateCollectionRange | () | 建構函式 |
public function UpdateCollectionRange()
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Constructs an empty UpdateCollectionRange.
DECREMENT_COLLECTION_SIZE | 常數 |
public static const DECREMENT_COLLECTION_SIZE:int = 3
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Indicates a derease in the collection size.
The size
property will contain an increase amount
DELETE_FROM_COLLECTION | 常數 |
public static const DELETE_FROM_COLLECTION:int = 1
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Indicates a range of items that have been deleted from the collection.
The identities
property will contain an Array
of item identity objects for each item that was inserted into the
collection.
The position
property indicates at what index the insertion
operation began.
Inspect the identityies.length
to determine how many items
were inserted.
INCREMENT_COLLECTION_SIZE | 常數 |
public static const INCREMENT_COLLECTION_SIZE:int = 2
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Indicates an increase in the collection size.
The size
property will contain an increase amount
INSERT_INTO_COLLECTION | 常數 |
public static const INSERT_INTO_COLLECTION:int = 0
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Indicates a range of items have been inserted into the collection.
The identities
property will contain an Array
of item identity objects for each item that was inserted into the
collection.
The position
property indicates at what index the insertion
operation began.
Inspect the identityies.length
to determine how many items
were inserted.
UPDATE_COLLECTION_SIZE | 常數 |
public static const UPDATE_COLLECTION_SIZE:int = 4
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Indicates an update to the collection size sent by the server.
This will occur when a paged-fill is refreshed on the server.
The size
property will contain an increase amount
var ucm:UpdateCollectionMessage = UpdateCollectionMessage(msg); var ucr:UpdateCollectionRange = UpdateCollectionRange(ucm.body[0]); trace("First change to the collection was "+ ucr.updateType +" at "+ ucr.position);
Tue Jun 12 2018, 03:47 PM Z