| Pakiet | mx.data |
| Klasa | public class Conflicts |
| Dziedziczenie | Conflicts ArrayList EventDispatcher Object |
| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
You cannot commit any changes until all conflicts are resolved.
At that point, the DataService.commit() method will call remove
all of these conflicts.
If you attempt to resolve a Conflict which was already resolved,
an error is thrown.
An instance of this class can be accessed from the
DataService.conflicts property.
Because this class implements IList it can be used with an
ArrayCollection.list property,
allowing it to participate as a data source for user interface controls and data binding.
Domyślna właściwość MXMLsource
| Właściwość | Zdefiniowane przez | ||
|---|---|---|---|
![]() | constructor : Object
Odwołanie do obiektu klasy lub funkcji konstruktora, dotyczące danej instancji obiektu. | Object | |
| length : int [przesłanianie] [tylko do odczytu]
The length of the source Array. | Conflicts | ||
| resolved : Boolean [tylko do odczytu]
Indicates if there are any unresolved conflicts in the list. | Conflicts | ||
| source : Array [przesłanianie]
An Array of Conflict objects. | Conflicts | ||
![]() | uid : String
Provides access to the unique id for this list. | ArrayList | |
| Metoda | Zdefiniowane przez | ||
|---|---|---|---|
Conflicts(dataService:ConcreteDataService = null)
Constructor. | Conflicts | ||
This is a convenience method that iterates all of the conflicts within
this list and invokes the Conflict.acceptClient() method. | Conflicts | ||
This is a convenience method that iterates all of the conflicts within
this list and invokes the Conflict.acceptClient() method. | Conflicts | ||
![]() |
Adds a list of items to the current list, placing them at the end of
the list in the order they are passed. | ArrayList | |
![]() |
Adds a list of items to the current list, placing them at the position
index passed in to the function. | ArrayList | |
![]() | addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Rejestruje obiekt detektora zdarzeń w obiekcie EventDispatcher, dzięki czemu detektor będzie otrzymywał powiadomienia o zdarzeniu. | EventDispatcher | |
![]() |
Add the specified item to the end of the list. | ArrayList | |
![]() |
Add the item at the specified index. | ArrayList | |
![]() |
Wywołuje zdarzenie, tj. kieruje je do przepływu zdarzeń. | EventDispatcher | |
If there is an outstanding conflict for the given object, returns that
conflict. | Conflicts | ||
![]() |
Get the item at the specified index. | ArrayList | |
![]() |
Return the index of the item if it is in the list such that
getItemAt(index) == item. | ArrayList | |
![]() |
Sprawdza, czy obiekt EventDispatcher zawiera jakiekolwiek detektory zarejestrowane dla konkretnego typu zdarzeń. | EventDispatcher | |
![]() |
Wskazuje, czy dla obiektu zdefiniowano określoną właściwość. | Object | |
![]() |
Wskazuje, czy instancja klasy Object należy do łańcucha prototypów obiektu określonego jako parametr. | Object | |
![]() | itemUpdated(item:Object, property:Object = null, oldValue:Object = null, newValue:Object = null):void
Notify the view that an item has been updated. | ArrayList | |
![]() |
Wskazuje, czy określona właściwość istnieje i jest przeliczalna. | Object | |
raiseConflict(dataManager:DataManager, cause:DataMessage, serverObject:Object, conflictingProperties:Array):void
This method is used by the DataServiceAdapter implementation when it need to raise
a conflict because a change is in conflict with the server version. | Conflicts | ||
![]() |
Remove all items from the list. | ArrayList | |
Removes all resolved conflicts from this collection. | Conflicts | ||
![]() |
Usuwa detektor z obiektu EventDispatcher. | EventDispatcher | |
![]() |
Removes the specified item from this list, should it exist. | ArrayList | |
![]() |
Remove the item at the specified index and return it. | ArrayList | |
![]() |
Place the item at the specified index. | ArrayList | |
![]() |
Ustawia dostępność właściwości dynamicznej używanej w pętlach. | Object | |
![]() |
Return an Array that is populated in the same order as the IList
implementation. | ArrayList | |
![]() |
Zwraca ciąg reprezentujący obiekt — sformatowany zgodnie z konwencjami właściwymi dla ustawień regionalnych. | Object | |
[przesłanianie]
Returns a String representation of this Conflicts object. | Conflicts | ||
![]() |
Zwraca pierwotną wartość dla określonego obiektu. | Object | |
![]() |
Sprawdza, czy detektor zdarzeń określonego typu jest zarejestrowany w tym obiekcie EventDispatcher lub jego elementach macierzystych. | EventDispatcher | |
length | właściwość |
length:int [tylko do odczytu] [przesłanianie] | Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
The length of the source Array.
Ta właściwość może być używana jako źródło dla tworzenia powiązań danych. Jeśli ta właściwość zostanie zmodyfikowana, zostanie wywołane zdarzenie collectionChange .
Implementacja
override public function get length():intresolved | właściwość |
resolved:Boolean [tylko do odczytu] | Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Indicates if there are any unresolved conflicts in the list.
When this returns true all conflicts have been resolved and
DataService.commit() can be called without an error.
Ta właściwość może być używana jako źródło dla tworzenia powiązań danych. Jeśli ta właściwość zostanie zmodyfikowana, zostanie wywołane zdarzenie propertyChange .
Implementacja
public function get resolved():Booleansource | właściwość |
source:Array[przesłanianie] | Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
An Array of Conflict objects.
Implementacja
override public function get source():Array override public function set source(value:Array):voidConflicts | () | Konstruktor |
public function Conflicts(dataService:ConcreteDataService = null)| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Constructor.
ParametrydataService:ConcreteDataService (default = null) — The DataService that caused the conflict.
|
acceptAllClient | () | metoda |
public function acceptAllClient():void| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
This is a convenience method that iterates all of the conflicts within
this list and invokes the Conflict.acceptClient() method.
Once completed this method will clear all of the conflicts in the list.
Calling this method will requeue each local change and update all
property values such that a subsequent call to
DataService.commit() should succeed, allowing these changes
to override the current ones.
Powiązane elementy interfejsu API
acceptAllServer | () | metoda |
public function acceptAllServer():void| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
This is a convenience method that iterates all of the conflicts within
this list and invokes the Conflict.acceptClient() method.
Once completed this method will clear all of the conflicts in the list.
Calling this method removes the conflicting local change and applies the
property values found on each Conflict.serverObject within
the list to each related local item.
Powiązane elementy interfejsu API
getConflict | () | metoda |
public function getConflict(item:Object):Conflict| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
If there is an outstanding conflict for the given object, returns that conflict. Otherwise, returns null.
Parametry
item:Object — The object to check for conflicts.
|
Conflict — A Conflict object if there is a conflict, and null otherwise.
|
raiseConflict | () | metoda |
public function raiseConflict(dataManager:DataManager, cause:DataMessage, serverObject:Object, conflictingProperties:Array):void| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
This method is used by the DataServiceAdapter implementation when it need to raise a conflict because a change is in conflict with the server version.
Parametry
dataManager:DataManager — The DataManager instance.
| |
cause:DataMessage — The DataMessage object that caused the conflict.
The cause should
be the pending change which is in conflict with the server.
| |
serverObject:Object — The value of the server object whose property was to be changed.
| |
conflictingProperties:Array — An Array of the names of the properties
that were in conflict between the client change and the remote item state.
All property names are String values and exist in the public namespace.
|
removeAllResolved | () | metoda |
public function removeAllResolved():void| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Removes all resolved conflicts from this collection.
toString | () | metoda |
override public function toString():String| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Returns a String representation of this Conflicts object.
ZwracaString — A String representation of this Conflicts object.
|
Tue Jun 12 2018, 12:06 PM Z
Ukryj dziedziczone właściwości publiczne
Pokaż dziedziczone właściwości publiczne