ActionScript® 3.0 — dokumentacja dla platformy Adobe® Flash®
Strona główna  |  Ukryj listę pakietów i klas |  Pakiety  |  Klasy  |  Nowości  |  Indeks  |  Dodatki  |  Dlaczego język angielski?
Filtry: Pobieranie danych z serwera...
Pobieranie danych z serwera...
mx.states 

SetProperty  - AS3 Flex

Pakietmx.states
Klasapublic class SetProperty
DziedziczenieSetProperty Inheritance OverrideBase Inheritance OnDemandEventDispatcher Inheritance Object

Wersja języka: ActionScript 3.0
Wersja produktu: Flex 3
Wersje środowiska wykonawczego: Flash Player 9, AIR 1.1

The SetProperty class specifies a property value that is in effect only during the parent view state. You use this class in the overrides property of the State class.

Składnia MXMLexpandedUkryj składnię MXML

The <mx:SetProperty> tag has the following attributes:

  <mx:SetProperty
   Properties
   name="null"
   target="null"
   value="undefined"
  />
  

Powiązane elementy interfejsu API



Właściwości publiczne
 WłaściwośćZdefiniowane przez
 Inheritedconstructor : Object
Odwołanie do obiektu klasy lub funkcji konstruktora, dotyczące danej instancji obiektu.
Object
  name : String
The name of the property to change.
SetProperty
  target : Object
The object containing the property to be changed.
SetProperty
  value : *
The new value for the property.
SetProperty
  valueFactory : IDeferredInstance
[tylko do zapisu] An optional write-only property from which to obtain a shared value.
SetProperty
Metody publiczne
 MetodaZdefiniowane przez
  
SetProperty(target:Object = null, name:String = null, value:*, valueFactory:IDeferredInstance = null)
Constructor.
SetProperty
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registers an event listener object with an EventDispatcher object so that the listener receives notification of an event.
OnDemandEventDispatcher
  
[przesłanianie] Applies the override.
SetProperty
 Inherited
Dispatches an event into the event flow.
OnDemandEventDispatcher
 Inherited
Checks whether the EventDispatcher object has any listeners registered for a specific type of event.
OnDemandEventDispatcher
 Inherited
Wskazuje, czy dla obiektu zdefiniowano określoną właściwość.
Object
 Inherited
IOverride interface method; this class implements it as an empty method.
OverrideBase
 Inherited
Wskazuje, czy instancja klasy Object należy do łańcucha prototypów obiektu określonego jako parametr.
Object
 Inherited
Wskazuje, czy określona właściwość istnieje i jest przeliczalna.
Object
  
[przesłanianie] Removes the override.
SetProperty
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Removes a listener from the EventDispatcher object.
OnDemandEventDispatcher
 Inherited
Ustawia dostępność właściwości dynamicznej używanej w pętlach.
Object
 Inherited
Zwraca ciąg reprezentujący obiekt — sformatowany zgodnie z konwencjami właściwymi dla ustawień regionalnych.
Object
 Inherited
Zwraca ciąg reprezentujący określony obiekt.
Object
 Inherited
Zwraca pierwotną wartość dla określonego obiektu.
Object
 Inherited
Checks whether an event listener is registered with this EventDispatcher object or any of its ancestors for the specified event type.
OnDemandEventDispatcher
Szczegół właściwości

name

właściwość
public var name:String

Wersja języka: ActionScript 3.0
Wersja produktu: Flex 3
Wersje środowiska wykonawczego: Flash Player 9, AIR 1.1

The name of the property to change. You must set this property, either in the SetProperty constructor or by setting the property value directly.

target

właściwość 
public var target:Object

Wersja języka: ActionScript 3.0
Wersja produktu: Flex 3
Wersje środowiska wykonawczego: Flash Player 9, AIR 1.1

The object containing the property to be changed. If the property value is null, Flex uses the immediate parent of the State object.

Wartością domyślną jest null.

value

właściwość 
value:*

Wersja języka: ActionScript 3.0
Wersja produktu: Flex 3
Wersje środowiska wykonawczego: Flash Player 9, AIR 1.1

The new value for the property.

Wartością domyślną jest undefined.



Implementacja
    public function get value():*
    public function set value(value:any):void

valueFactory

właściwość 
valueFactory:IDeferredInstance  [tylko do zapisu]

Wersja języka: ActionScript 3.0
Wersja produktu: Flex 4
Wersje środowiska wykonawczego: Flash Player 9, AIR 1.1

An optional write-only property from which to obtain a shared value. This is primarily used when this override's value is shared by multiple states or state groups.

Wartością domyślną jest undefined.



Implementacja
    public function set valueFactory(value:IDeferredInstance):void
Konstruktor Szczegół

SetProperty

()Konstruktor
public function SetProperty(target:Object = null, name:String = null, value:*, valueFactory:IDeferredInstance = null)

Wersja języka: ActionScript 3.0
Wersja produktu: Flex 3
Wersje środowiska wykonawczego: Flash Player 9, AIR 1.1

Constructor.

Parametry
target:Object (default = null) — The object whose property is being set. By default, Flex uses the immediate parent of the State object.
 
name:String (default = null) — The property to set.
 
value:* (default = NaN) — The value of the property in the view state.
 
valueFactory:IDeferredInstance (default = null) — An optional write-only property from which to obtain a shared value. This is primarily used when this override's value is shared by multiple states or state groups.
Szczegół metody

apply

()metoda
override public function apply(parent:UIComponent):void

Wersja języka: ActionScript 3.0
Wersja produktu: Flex 3
Wersje środowiska wykonawczego: Flash Player 9, AIR 1.1

Applies the override. Flex retains the original value, so that it can restore the value later in the remove() method.

This method is called automatically when the state is entered. It should not be called directly.

Parametry

parent:UIComponent — The parent of the state object containing this override. The override should use this as its target if an explicit target was not specified.

remove

()metoda 
override public function remove(parent:UIComponent):void

Wersja języka: ActionScript 3.0
Wersja produktu: Flex 3
Wersje środowiska wykonawczego: Flash Player 9, AIR 1.1

Removes the override. The value remembered in the apply() method is restored.

This method is called automatically when the state is entered. It should not be called directly.

Parametry

parent:UIComponent — The parent of the state object containing this override. The override should use this as its target if an explicit target was not specified.





[ X ]Dlaczego język angielski?
Treść dokumentacji języka ActionScript 3.0 wyświetlana w języku angielskim

Niektóre części dokumentacji języka ActionScript 3.0 nie są przetłumaczone na poszczególne języki. Gdy element nie jest przetłumaczony na dany język, jest wyświetlany tekst angielski. Na przykład opis klasy ga.controls.HelpBox nie jest przetłumaczony na żaden dodatkowy język. Z tego powodu polska wersja dokumentacji zawiera opis klasy ga.controls.HelpBox w języku angielskim.