Pakiet | spark.events |
Klasa | public class ListEvent |
Dziedziczenie | ListEvent MouseEvent Event Object |
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Flex 4.5 |
Wersje środowiska wykonawczego: | Flash Player 10.2, AIR 2.5 |
Właściwość | Zdefiniowane przez | ||
---|---|---|---|
altKey : Boolean
Określa, czy klawisz Alt jest aktywny (true), czy nieaktywny (false). | MouseEvent | ||
bubbles : Boolean [tylko do odczytu]
Określa, czy zdarzenie może przechodzić fazę propagacji. | Event | ||
buttonDown : Boolean
Określa, czy główny przycisk myszy jest naciśnięty (true), czy nie (false). | MouseEvent | ||
cancelable : Boolean [tylko do odczytu]
Wskazuje, czy można uniemożliwić operacje skojarzone ze zdarzeniem. | Event | ||
clickCount : int [tylko do odczytu]
Określa, czy dane naciśnięcie przycisku myszy należy do sekwencji wielu kliknięć. | MouseEvent | ||
commandKey : Boolean
Określa, czy klawisz Command jest aktywny (tylko w systemach Mac). W systemach Mac właściwość commandKey będzie miała tę samą wartość, co właściwość ctrlKey. | MouseEvent | ||
constructor : Object
Odwołanie do obiektu klasy lub funkcji konstruktora, dotyczące danej instancji obiektu. | Object | ||
controlKey : Boolean
Określa, czy klawisz Control jest aktywny w systemie Mac lub czy klawisz Ctrl jest aktywny w systemie Windows lub Linux. | MouseEvent | ||
ctrlKey : Boolean
W systemach Windows lub Linux określa, czy klawisz Ctrl jest aktywny (true), czy nieaktywny (false). | MouseEvent | ||
currentTarget : Object [tylko do odczytu]
Obiekt przetwarzający aktywnie obiekt Event za pomocą detektora zdarzeń. | Event | ||
delta : int
Określa liczbę wierszy przewijanych w odpowiedzi na elementarny ruch pokrętłem myszy. | MouseEvent | ||
eventPhase : uint [tylko do odczytu]
Bieżąca faza przepływu zdarzeń. | Event | ||
isRelatedObjectInaccessible : Boolean
Jeśli wartość to true, właściwość relatedObject zostanie ustawiona na wartość null z przyczyn związanych z bezpiecznymi obszarami izolowanymi. | MouseEvent | ||
item : Object
The data provider item the item renderer is displaying. | ListEvent | ||
itemIndex : int
The index of the data item the item renderer is displaying. | ListEvent | ||
itemRenderer : IItemRenderer
The item renderer that is displaying the item. | ListEvent | ||
localX : Number
Współrzędna pozioma miejsca wystąpienia zdarzenia (określana względem ikonki), gdy jest wyłączone blokowanie myszy. | MouseEvent | ||
localY : Number
Współrzędna pionowa miejsca wystąpienia zdarzenia (określana względem ikonki), gdy jest wyłączone blokowanie myszy. | MouseEvent | ||
movementX : Number
Zmiana pozycji myszy w kierunku X od ostatniego zdarzenia myszy, gdy jest włączone blokowanie myszy. | MouseEvent | ||
movementY : Number
Zmiana pozycji myszy w kierunku Y od ostatniego zdarzenia myszy, gdy jest włączone blokowanie myszy. | MouseEvent | ||
relatedObject : InteractiveObject
Odwołanie do listy powiązanej ze zdarzeniem. | MouseEvent | ||
shiftKey : Boolean
Określa, czy klawisz Shift jest aktywny (true), czy nieaktywny (false). | MouseEvent | ||
stageX : Number [tylko do odczytu]
Współrzędna pozioma miejsca wystąpienia zdarzenia (w globalnym układzie współrzędnych stołu montażowego). | MouseEvent | ||
stageY : Number [tylko do odczytu]
Współrzędna pionowa miejsca wystąpienia zdarzenia (w globalnym układzie współrzędnych stołu montażowego). | MouseEvent | ||
target : Object [tylko do odczytu]
Miejsce docelowe zdarzenia. | Event | ||
type : String [tylko do odczytu]
Typ zdarzenia. | Event |
Metoda | Zdefiniowane przez | ||
---|---|---|---|
ListEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, localX:Number = NaN, localY:Number = NaN, relatedObject:InteractiveObject = null, ctrlKey:Boolean = false, altKey:Boolean = false, shiftKey:Boolean = false, buttonDown:Boolean = false, delta:int = 0, itemIndex:int = -1, item:Object = null, itemRenderer:IItemRenderer = null)
Constructor. | ListEvent | ||
[przesłanianie]
Tworzy kopię obiektu MouseEvent i ustawia wartości poszczególnych właściwości zgodnie z właściwościami oryginału. | MouseEvent | ||
Funkcja narzędziowa umożliwiająca implementację metody toString() w niestandardowych klasach Event w języku ActionScript 3.0. | Event | ||
Wskazuje, czy dla obiektu zdefiniowano określoną właściwość. | Object | ||
Sprawdza, czy w odniesieniu do tego zdarzenia wywołano metodę preventDefault(). | Event | ||
Wskazuje, czy instancja klasy Object należy do łańcucha prototypów obiektu określonego jako parametr. | Object | ||
Anuluje domyślne ustawienia zdarzenia, o ile zachowanie to może być anulowane. | Event | ||
Wskazuje, czy określona właściwość istnieje i jest przeliczalna. | Object | ||
Ustawia dostępność właściwości dynamicznej używanej w pętlach. | Object | ||
Zapobiega przetwarzaniu wszelkich detektorów zdarzeń w węźle bieżącym i węzłach następujących po nim. | Event | ||
Zapobiega przetwarzaniu wszelkich detektorów zdarzeń w węzłach następujących po węźle bieżącym w przepływie zdarzeń. | Event | ||
Zwraca ciąg reprezentujący obiekt — sformatowany zgodnie z konwencjami właściwymi dla ustawień regionalnych. | Object | ||
[przesłanianie]
Zwraca ciąg znaków, który zawiera wszystkie właściwości obiektu MouseEvent. | MouseEvent | ||
Powoduje, że po zakończeniu przetwarzania tego zdarzenia program Flash Player lub środowisko wykonawcze Adobe AIR zrenderuje obraz, jeśli lista wyświetlania została zmodyfikowana. | MouseEvent | ||
Zwraca pierwotną wartość dla określonego obiektu. | Object |
Stała | Zdefiniowane przez | ||
---|---|---|---|
ITEM_ROLL_OUT : String = "itemRollOut" [statyczny]
The ListEvent.ITEM_ROLL_OUT constant defines the value of the
type property of the ListEvent object for an
itemRollOut event, which indicates that the user rolled
the mouse pointer out of a visual item in the control. | ListEvent | ||
ITEM_ROLL_OVER : String = "itemRollOver" [statyczny]
The ListEvent.ITEM_ROLL_OVER constant defines the value of the
type property of the ListEvent object for an
itemRollOver event, which indicates that the user rolled
the mouse pointer over a visual item in the control. | ListEvent |
item | właściwość |
public var item:Object
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Flex 4.5 |
Wersje środowiska wykonawczego: | Flash Player 10.2, AIR 2.5 |
The data provider item the item renderer is displaying.
itemIndex | właściwość |
public var itemIndex:int
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Flex 4.5 |
Wersje środowiska wykonawczego: | Flash Player 10.2, AIR 2.5 |
The index of the data item the item renderer is displaying. You can access the data provider item using this property.
itemRenderer | właściwość |
public var itemRenderer:IItemRenderer
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Flex 4.5 |
Wersje środowiska wykonawczego: | Flash Player 10.2, AIR 2.5 |
The item renderer that is displaying the item.
ListEvent | () | Konstruktor |
public function ListEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, localX:Number = NaN, localY:Number = NaN, relatedObject:InteractiveObject = null, ctrlKey:Boolean = false, altKey:Boolean = false, shiftKey:Boolean = false, buttonDown:Boolean = false, delta:int = 0, itemIndex:int = -1, item:Object = null, itemRenderer:IItemRenderer = null)
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Flex 4.5 |
Wersje środowiska wykonawczego: | Flash Player 10.2, AIR 2.5 |
Constructor. Normally called by the Flex control and not used in application code.
Parametrytype:String — The event type; indicates the action that caused 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.
| |
localX:Number (default = NaN ) — Distinguishes the mouse gesture that caused this event to be dispatched.
| |
localY:Number (default = NaN ) — Specifies whether the event can bubble up the display list hierarchy.
| |
relatedObject:InteractiveObject (default = null ) — Specifies whether the behavior associated with the event can be prevented.
| |
ctrlKey:Boolean (default = false ) — The event's x coordinate relative to the List.
| |
altKey:Boolean (default = false ) — The event's y coordinate relative to the List.
| |
shiftKey:Boolean (default = false ) — The relatedObject property of the
MouseEvent that triggered this ListEvent.
| |
buttonDown:Boolean (default = false ) — Whether the Control key is down.
| |
delta:int (default = 0 ) — Whether the Alt key is down.
| |
itemIndex:int (default = -1 ) — Whether the Shift key is down.
| |
item:Object (default = null ) — Whether the Control key is down.
| |
itemRenderer:IItemRenderer (default = null ) — Not used.
|
ITEM_ROLL_OUT | Stała |
public static const ITEM_ROLL_OUT:String = "itemRollOut"
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Flex 4.5 |
Wersje środowiska wykonawczego: | Flash Player 10.2, AIR 2.5 |
The ListEvent.ITEM_ROLL_OUT constant defines the value of the
type
property of the ListEvent object for an
itemRollOut
event, which indicates that the user rolled
the mouse pointer out of a visual item in the control.
The properties of the event object have the following values:
Property | Value |
---|---|
bubbles | false |
cancelable | false |
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 . |
itemIndex | The data provider index of the item displayed by the item renderer where the event occurred. |
item | The data provider item for the item renderer. |
itemRenderer | The The item renderer that displayed this item. |
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. |
Type | ListEvent.ITEM_ROLL_OUT |
ITEM_ROLL_OVER | Stała |
public static const ITEM_ROLL_OVER:String = "itemRollOver"
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Flex 4.5 |
Wersje środowiska wykonawczego: | Flash Player 10.2, AIR 2.5 |
The ListEvent.ITEM_ROLL_OVER constant defines the value of the
type
property of the ListEvent object for an
itemRollOver
event, which indicates that the user rolled
the mouse pointer over a visual item in the control.
The properties of the event object have the following values:
Property | Value |
---|---|
bubbles | false |
cancelable | false |
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 . |
itemIndex | The data provider index of the item displayed by the item renderer where the event occurred. |
item | The data provider item for the item renderer. |
itemRenderer | The The item renderer that displayed this item. |
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. |
Type | ListEvent.ITEM_ROLL_OVER |
Tue Jun 12 2018, 12:06 PM Z