| Pacchetto | mx.events |
| Classe | public class PropertyChangeEvent |
| Ereditarietà | PropertyChangeEvent Event Object |
| Versione linguaggio: | ActionScript 3.0 |
| Versione prodotto: | Flex 3 |
| Versioni runtime: | Flash Player 9, AIR 1.1 |
Elementi API correlati
| Proprietà | Definito da | ||
|---|---|---|---|
![]() | bubbles : Boolean [sola lettura]
Indica se un evento è un evento di bubbling. | Event | |
![]() | cancelable : Boolean [sola lettura]
Indica se il comportamento associato all'evento può essere impedito. | Event | |
![]() | constructor : Object
Un riferimento all'oggetto classe o alla funzione di costruzione per una determinata istanza di oggetto. | Object | |
![]() | currentTarget : Object [sola lettura]
L'oggetto che elabora attivamente l'oggetto Event con un listener di eventi. | Event | |
![]() | eventPhase : uint [sola lettura]
La fase attuale del flusso di eventi. | Event | |
| kind : String
Specifies the kind of change. | PropertyChangeEvent | ||
| newValue : Object
The value of the property after the change. | PropertyChangeEvent | ||
| oldValue : Object
The value of the property before the change. | PropertyChangeEvent | ||
| property : Object
A String, QName, or int specifying the property that changed. | PropertyChangeEvent | ||
| source : Object
The object that the change occured on. | PropertyChangeEvent | ||
![]() | target : Object [sola lettura]
Il target dell'evento. | Event | |
![]() | type : String [sola lettura]
Il tipo di evento. | Event | |
| Metodo | Definito da | ||
|---|---|---|---|
PropertyChangeEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, kind:String = null, property:Object = null, oldValue:Object = null, newValue:Object = null, source:Object = null)
Constructor. | PropertyChangeEvent | ||
![]() |
Duplica un'istanza di una sottoclasse Event. | Event | |
createUpdateEvent(source:Object, property:Object, oldValue:Object, newValue:Object):PropertyChangeEvent [statico]
Returns a new PropertyChangeEvent of kind
PropertyChangeEventKind.UPDATE
with the specified properties. | PropertyChangeEvent | ||
![]() |
Una funzione dell'utilità per l'implementazione del metodo toString() in classi Event ActionScript 3.0 personalizzate. | Event | |
![]() |
Indica se per un oggetto è definita una proprietà specifica. | Object | |
![]() |
Verifica se sull'evento è stato chiamato il metodo preventDefault(). | Event | |
![]() |
Indica se un'istanza della classe Object si trova nella catena di prototipi dell'oggetto specificato come parametro. | Object | |
![]() |
Annulla il comportamento predefinito di un evento se tale comportamento può essere annullato. | Event | |
![]() |
Indica se la proprietà specificata esiste ed è enumerabile. | Object | |
![]() |
Imposta la disponibilità di una proprietà dinamica per le operazioni cicliche. | Object | |
![]() |
Impedisce l'elaborazione di tutti i listener di eventi nel nodo corrente e in tutti i nodi successivi del flusso di eventi. | Event | |
![]() |
Impedisce l'elaborazione di tutti i listener di eventi nei nodi del flusso di eventi successivi a quello corrente. | Event | |
![]() |
Restituisce la rappresentazione in formato stringa di questo oggetto, formattato in base alle convenzioni specifiche per le versioni localizzate. | Object | |
![]() |
Restituisce una stringa che contiene tutte le proprietà dell'oggetto Event. | Event | |
![]() |
Restituisce il valore di base dell'oggetto specificato. | Object | |
| Costante | Definito da | ||
|---|---|---|---|
| PROPERTY_CHANGE : String = "propertyChange" [statico]
The PropertyChangeEvent.PROPERTY_CHANGE constant defines the value of the
type property of the event object for a PropertyChange event. | PropertyChangeEvent | ||
kind | proprietà |
public var kind:String| Versione linguaggio: | ActionScript 3.0 |
| Versione prodotto: | Flex 3 |
| Versioni runtime: | Flash Player 9, AIR 1.1 |
Specifies the kind of change.
The possible values are PropertyChangeEventKind.UPDATE,
PropertyChangeEventKind.DELETE, and null.
newValue | proprietà |
public var newValue:Object| Versione linguaggio: | ActionScript 3.0 |
| Versione prodotto: | Flex 3 |
| Versioni runtime: | Flash Player 9, AIR 1.1 |
The value of the property after the change.
oldValue | proprietà |
public var oldValue:Object| Versione linguaggio: | ActionScript 3.0 |
| Versione prodotto: | Flex 3 |
| Versioni runtime: | Flash Player 9, AIR 1.1 |
The value of the property before the change.
property | proprietà |
public var property:Object| Versione linguaggio: | ActionScript 3.0 |
| Versione prodotto: | Flex 3 |
| Versioni runtime: | Flash Player 9, AIR 1.1 |
A String, QName, or int specifying the property that changed.
source | proprietà |
public var source:Object| Versione linguaggio: | ActionScript 3.0 |
| Versione prodotto: | Flex 3 |
| Versioni runtime: | Flash Player 9, AIR 1.1 |
The object that the change occured on.
PropertyChangeEvent | () | Funzione di costruzione |
public function PropertyChangeEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, kind:String = null, property:Object = null, oldValue:Object = null, newValue:Object = null, source:Object = null)| Versione linguaggio: | ActionScript 3.0 |
| Versione prodotto: | Flex 3 |
| Versioni runtime: | Flash Player 9, AIR 1.1 |
Constructor.
Parametritype:String — The event type; indicates the action that triggered the event.
| |
bubbles:Boolean (default = false) — Specifies whether the event can bubble
up the display list hierarchy.
| |
cancelable:Boolean (default = false) — Specifies whether the behavior
associated with the event can be prevented.
| |
kind:String (default = null) — Specifies the kind of change.
The possible values are PropertyChangeEventKind.UPDATE,
PropertyChangeEventKind.DELETE, and null.
| |
property:Object (default = null) — A String, QName, or int
specifying the property that changed.
| |
oldValue:Object (default = null) — The value of the property before the change.
| |
newValue:Object (default = null) — The value of the property after the change.
| |
source:Object (default = null) — The object that the change occured on.
|
createUpdateEvent | () | metodo |
public static function createUpdateEvent(source:Object, property:Object, oldValue:Object, newValue:Object):PropertyChangeEvent| Versione linguaggio: | ActionScript 3.0 |
| Versione prodotto: | Flex 3 |
| Versioni runtime: | Flash Player 9, AIR 1.1 |
Returns a new PropertyChangeEvent of kind
PropertyChangeEventKind.UPDATE
with the specified properties.
This is a convenience method.
Parametri
source:Object — The object where the change occured.
| |
property:Object — A String, QName, or int
specifying the property that changed,
| |
oldValue:Object — The value of the property before the change.
| |
newValue:Object — The value of the property after the change.
|
PropertyChangeEvent — A newly constructed PropertyChangeEvent
with the specified properties.
|
PROPERTY_CHANGE | Costante |
public static const PROPERTY_CHANGE:String = "propertyChange"| Versione linguaggio: | ActionScript 3.0 |
| Versione prodotto: | Flex 3 |
| Versioni runtime: | Flash Player 9, AIR 1.1 |
The PropertyChangeEvent.PROPERTY_CHANGE constant defines the value of the
type property of the event object for a PropertyChange event.
The properties of the event object have the following values:
| Property | Value |
|---|---|
bubbles | Determined by the constructor; defaults to false. |
cancelable | Determined by the constructor; defaults to false. |
kind | The kind of change; PropertyChangeEventKind.UPDATE or PropertyChangeEventKind.DELETE. |
oldValue | The original property value. |
newValue | The new property value, if any. |
property | The property that changed. |
source | The object that contains the property that changed. |
currentTarget | The Object that defines the
event listener that handles the event. For example, if you use
myButton.addEventListener() to register an event listener,
myButton is the value of the currentTarget. |
target | The Object that dispatched the event;
it is not always the Object listening for the event.
Use the currentTarget property to always access the
Object listening for the event. |
Tue Jun 12 2018, 02:44 PM Z
Nascondi proprietà pubbliche ereditate
Mostra proprietà pubbliche ereditate