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 withBoolean value.Based on BasicEvent class, BooleanEvent add access
to his specific Boolean property with getBoolean and
setBoolean methods.
Summary
Constructor
Instance methods
Constructor
Instance properties
isTrue
isTrue:Boolean
(read)
Indicates if
or
Boolean instance property is true or
falseExample
var e : BooleanEvent = new BooleanEvent(MyClass.onSomething, true); trace( e.isTrue() ); //return true;
Returns:
true if instance Boolean is true, either falseInstance 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 valuesetBoolean
function setBoolean (
b:Boolean) : Void
Defines instance
Boolean value.Example
var e : BooleanEvent = new BooleanEvent(MyClass.onSomething); e.setBoolean(false);
Parameters:
b:
Boolean valuetoString
function toString (
) : String
Returns the string representation of this instance.
Returns:
String representation of this instanceOverrides: