IterationEvent

Kind of class:public class
Package:com.bourre.events
Inherits from:BasicEvent < Event
Author:Cédric Néhémie
Classpath:com.bourre.events.IterationEvent
File last modified:Monday, 24 November 2008, 11:36:53
Event dispatched by the LoopCommand class
to its dedicated IterationCommand. The event
carry the iteration index, and its associated value, provided
by the Iterator used by the loop command.
See also:
  • BasicEvent
  • com.bourre.event.LoopCommand
  • com.bourre.event.IterationCommand

Summary


Constructor
  • IterationEvent (type:String, target:Object = null, index:Number = 0, value:* = null)
    • Creates a new Iteration event.
Instance properties
Instance properties inherited from BasicEvent
Instance methods
  • getIndex : Number
    • Returns the index of the iteration in the loop
  • getValue : *
    • Returns the value of the iteration in the loop
  • clone : Event
    • Clone the event
Instance methods inherited from BasicEvent

Constructor

IterationEvent

public function IterationEvent (
type:String, target:Object = null, index:Number = 0, value:* = null)

Creates a new Iteration event.
Parameters:
type :
name of this event type
target:
target of this event
index :
index of the current iteration
value :
value associated with this iteration

Instance methods

clone

override public function clone (
) : Event

Clone the event
Returns:
  • a clone of the event
Overrides:

getIndex

public function getIndex (
) : Number

Returns the index of the iteration in the loop
performed by the LoopCommand.
Returns:
  • the index of the iteration in the loop
    performed by the LoopCommand

getValue

public function getValue (
) : *

Returns the value of the iteration in the loop
performed by the LoopCommand.
Returns:
  • the value of the iteration in the loop
    performed by the LoopCommand