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
to its dedicated
carry the iteration index, and its associated value, provided
by the
LoopCommand classto its dedicated
IterationCommand. The eventcarry 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
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
performed by the
LoopCommand. Returns:
- the index of the iteration in the loop
performed by theLoopCommand
getValue
public function getValue (
) : *
Returns the value of the iteration in the loop
performed by the
performed by the
LoopCommand. Returns:
- the value of the iteration in the loop
performed by theLoopCommand