Pacote | spark.events |
Classe | public class ListEvent |
Herança | ListEvent MouseEvent Event Object |
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | Flex 4.5 |
Versões de runtime: | Flash Player 10.2, AIR 2.5 |
Propriedade | Definido por | ||
---|---|---|---|
altKey : Boolean
Indica se a tecla Alt está ativa (true) ou inativa (false). | MouseEvent | ||
bubbles : Boolean [somente leitura]
Indica se um evento é do tipo bubbling. | Event | ||
buttonDown : Boolean
Indica se o botão do mouse principal está pressionado (true) ou não (false). | MouseEvent | ||
cancelable : Boolean [somente leitura]
Indica se o comportamento associado ao evento pode ser impedido. | Event | ||
clickCount : int [somente leitura]
Indica se o evento mouse down é parte ou não de uma sequência de vários cliques. | MouseEvent | ||
commandKey : Boolean
Indica se a tecla Command está ativada (só no Mac). O valor da propriedade commandKey terá o mesmo valor que a propriedade ctrlKey no Mac. | MouseEvent | ||
constructor : Object
Uma referência ao objeto de classe ou à função de construtor de uma determinada ocorrência de objeto. | Object | ||
controlKey : Boolean
Indica se a tecla Control está ativada no Mac e se a tecla Ctrl está ativada no Windows ou no Linux. | MouseEvent | ||
ctrlKey : Boolean
No Windows ou no Linux, indica se a tecla Ctrl está ativa (true) ou inativa (false). | MouseEvent | ||
currentTarget : Object [somente leitura]
O objeto que está processando ativamente o objeto Event com um ouvinte de evento. | Event | ||
delta : int
Indica quantas linhas devem ser roladas para cada unidade em que o usuário gira a roda do mouse. | MouseEvent | ||
eventPhase : uint [somente leitura]
A fase atual no fluxo de eventos. | Event | ||
isRelatedObjectInaccessible : Boolean
Se verdadeiro, a propriedade relatedObject será definida como nula por motivos relacionados às caixas de proteção de segurança. | 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
Quando o travamento de mouse está desativado, a coordenada horizontal na qual o evento ocorreu relacionada à entidade gráfica que contém. | MouseEvent | ||
localY : Number
Quando o travamento de mouse está desativado, a coordenada vertical na qual o evento ocorreu relacionada à entidade gráfica que contém. | MouseEvent | ||
movementX : Number
Quando o travamento de mouse é ativado, a alteração na posição do mouse na direção X desde o último evento de mouse. | MouseEvent | ||
movementY : Number
Quando o travamento de mouse é ativado, a alteração na posição do mouse na direção Y desde o último evento de mouse. | MouseEvent | ||
relatedObject : InteractiveObject
Uma referência a um objeto de lista de exibição relacionado ao evento. | MouseEvent | ||
shiftKey : Boolean
Indica se a tecla Shift está ativa (true) ou inativa (false). | MouseEvent | ||
stageX : Number [somente leitura]
A coordenada horizontal na qual o evento ocorreu em coordenadas globais de Palco. | MouseEvent | ||
stageY : Number [somente leitura]
A coordenada vertical na qual o evento ocorreu em coordenadas globais de Palco. | MouseEvent | ||
target : Object [somente leitura]
O destino de evento. | Event | ||
type : String [somente leitura]
O tipo de evento. | Event |
Método | Definido por | ||
---|---|---|---|
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 | ||
[substituir]
Cria uma cópia do objeto MouseEvent e define o valor de cada propriedade para corresponder ao do original. | MouseEvent | ||
Uma função de utilitário para implementar o método toString() em classes ActionScript 3.0 Event personalizadas. | Event | ||
Indica se um objeto tem uma propriedade especificada definida. | Object | ||
Verifica se o método preventDefault() foi chamado no evento. | Event | ||
Indica se uma ocorrência da classe Object está na cadeia de protótipos do objeto especificado como o parâmetro. | Object | ||
Cancela um comportamento padrão de evento se esse comportamento puder ser cancelado. | Event | ||
Indica se a propriedade especificada existe e é enumerável. | Object | ||
Define a disponibilidade de uma propriedade dinâmica para operações de repetição. | Object | ||
Impede o processamento de qualquer ouvinte de evento no nó atual e qualquer nó subsequente no fluxo de eventos. | Event | ||
Impede o processamento de algum ouvinte de evento em nós subsequentes ao nó atual no fluxo de eventos. | Event | ||
Retorna a representação da string deste objeto, formatado segundo as convenções específicas para a localidade. | Object | ||
[substituir]
Retorna uma string que contém todas as propriedades do objeto MouseEvent. | MouseEvent | ||
Instrui o Flash Player ou Adobe AIR a aplicar acabamento após o término do processamento desse evento, se a lista de exibição tiver sido modificada. | MouseEvent | ||
Retorna o valor primitivo do objeto especificado. | Object |
Constante | Definido por | ||
---|---|---|---|
ITEM_ROLL_OUT : String = "itemRollOut" [estático]
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" [estático]
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 | propriedade |
public var item:Object
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | Flex 4.5 |
Versões de runtime: | Flash Player 10.2, AIR 2.5 |
The data provider item the item renderer is displaying.
itemIndex | propriedade |
public var itemIndex:int
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | Flex 4.5 |
Versões de runtime: | 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 | propriedade |
public var itemRenderer:IItemRenderer
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | Flex 4.5 |
Versões de runtime: | Flash Player 10.2, AIR 2.5 |
The item renderer that is displaying the item.
ListEvent | () | Construtor |
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)
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | Flex 4.5 |
Versões de runtime: | Flash Player 10.2, AIR 2.5 |
Constructor. Normally called by the Flex control and not used in application code.
Parâmetrostype: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 | Constante |
public static const ITEM_ROLL_OUT:String = "itemRollOut"
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | Flex 4.5 |
Versões de runtime: | 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 | Constante |
public static const ITEM_ROLL_OVER:String = "itemRollOver"
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | Flex 4.5 |
Versões de runtime: | 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 |
Wed Jun 13 2018, 11:10 AM Z