BooleanEvent

Kind of class:class
Inherits from:BasicEvent
Version:1.0
Author:Francis Bourre
Classpath:com.bourre.events.BooleanEvent
File last modified:Wednesday, 31 October 2007, 07:35:29
BooleanEvent defines specific event structure to work with
Boolean value.

Based on BasicEvent class, BooleanEvent add access
to his specific Boolean property with getBoolean and
setBoolean methods.

Summary

Constructor
Instance properties
Instance properties inherited from BasicEvent
Instance methods
Instance methods inherited from BasicEvent

Constructor

BooleanEvent

function BooleanEvent (
e:EventType, b:Boolean)
Constructs a new BooleanEvent instance.

Example

var e : BooleanEvent = new BooleanEvent(MyClass.onSomething, true);
Parameters:
e:
an EventType instance (event name).
b:
a Boolean value

Instance properties

isTrue

isTrue:Boolean
(read)
Indicates if Boolean instance property is true
or false

Example

var e : BooleanEvent = new BooleanEvent(MyClass.onSomething, true);
trace( e.isTrue() ); //return true;
Returns:
true if instance Boolean is true, either false

Instance methods

getBoolean

function getBoolean (
) : Boolean
Returns instance Boolean value.

Example

var e : BooleanEvent = new BooleanEvent(MyClass.onSomething, true);
trace( e.getBoolean() ); //return true
Returns:
a Boolean value

setBoolean

function setBoolean (
b:Boolean) : Void
Defines instance Boolean value.

Example

var e : BooleanEvent = new BooleanEvent(MyClass.onSomething);
e.setBoolean(false);
Parameters:
b:
Boolean value

toString

function toString (
) : String
Returns the string representation of this instance.
Returns:
String representation of this instance