PropertySetter
| Kind of class: | public class |
|---|---|
| Package: | org.casalib.util |
| Inherits from: | none |
| Version: | 08/06/08 |
| Author: | Aaron Clinger, Mike Creighton, David Nelson |
| Classpath: | org.casalib.util.PropertySetter |
| File last modified: | Wednesday, 31 December 2008, 20:18:28 |
Creates a setter function for properties. Designed to be used with objects where methods require a function but you want to ultimately set a value of a property.
Summary
Constructor
- PropertySetter (scope:Object, property:String, argument:uint = 0)
- Defines the property you wish to define with defineProperty.
Instance methods
- defineProperty (arguments) : void
- Defines property with the value of the targeted argument.
Constructor
PropertySetter
public function PropertySetter (
scope:Object,
property:String,
argument:uint = 0)
Defines the property you wish to define with defineProperty.
Parameters:
scope :
An object that contains the property specified by "property".
property:
Name of the property you want to assign the value of.
argument:
The position the value to assign falls in the argument order.
Throws:
- Error if the property does not exist or is not available in defined scope.
Instance methods
defineProperty
public function defineProperty (
arguments) : void
Defines property with the value of the targeted argument.