| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
The
PropertyAccessor provides read and write access
to the specified property of an object.
public function PropertyAccessor(o:Object, p:String)
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Creates a new PropertyAccessor instance which
allow access to the specified property of the passed-in object.
Parameters
| o:Object — object onto which access methods
|
| |
| p:String — name of the property of the object
|
Throws
| — NullPointerException — Can't create an accessor
on a null object
|
| |
| — NoSuchFieldException — There is no property
of the specified name
|
public function getGetterHelper():String
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Returns the string name of the getter access used
by this accessor to retreive data from its target
object.
Returns
| String — the string name of the getter access used
by this accessor
|
public function getProperty():String
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Returns the property's name onto which this accessor
operate.
Returns
| String — the property's name onto which this accessor
operate
|
public function getSetterHelper():String
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Returns the string name of the setter access used
by this accessor to defines new data to its target
object.
Returns
| String — the string name of the setter access used
by this accessor
|
public function getTarget():Object
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Returns the target object onto which this accessor
operate.
Returns
| Object — the object onto which this accessor operate
|
public function getValue():Number
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Returns the numeric value stored in the property specified
during the creation of the object.
Returns
| Number — current value stored in the target property
|
Throws
| — ClassCastException — The target property
doesn't store a number.
|
public function setValue(value:Number):void
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Sets the new value for the property handled by this
accessor defined during the creation of this instance.
Parameters
| value:Number — the new value for the target property
|
Throws
| — ClassCastException — The target property
doesn't store a number.
|
public function toString():String
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Returns the string representation of this object.
Returns
| String — the string representation of this object
|
LowRA API documentation 2008- 2009
Licensed under the MOZILLA PUBLIC LICENSE, Version 1.1
mer. févr. 25 2009, 9:22 AM GMT+01:00