BiProperty
This class represents a property.@depends : BiEventTarget
This class extends BiEventTarget and therefore all methods and fields available for BiEventTarget are also available for BiProperty .
Constructor
new BiProperty ( sName [ ,nAccessTypes [ ,oValue ] ] )
Parameters
| Name | Type | Optional | Default | Descripton |
sName | String | The name of this property | ||
nAccessTypes | Number | ![]() | Whether property is read/write/exec (r/w/x) enabled. Values represent: 0(-), 1(r), 2(w), 3(rw), 4(x), 5(rx), 6(wx), 7(rwx) | |
oValue | Object | ![]() | The value of this property |
Properties
| Name | Type | get | set | Descripton |
exec | Boolean | ![]() | ![]() | Whether property is executable. Eg. property is a method. Default is false. |
getter | Function | ![]() | ![]() | The property getter. [Not Implemented] |
name | String | ![]() | ![]() | The name of this property. The name is also used to construct the name of setters and getters |
read | Boolean | ![]() | ![]() | Whether property is read enabled. Default is true. |
setter | Function | ![]() | ![]() | The property setter. [Not Implemented] |
src | Object | ![]() | ![]() | A referenced Object. This is an optional object on which the property will be acted upon. In ADF markup, prefixes can be used and have the following meaning: prefix # = id locator - typically referencing the id of another object. prefix . = local property locator - the name of a local member(action or property). no prefix = reference to a name known in the name scope or a direct reference to an object. |
srcProperty | String | ![]() | ![]() | A referenced property name. This is an optional pointer to a property upon which activity(get,set,call) is performed. It is used in conjuction with src. |
value | Object | ![]() | ![]() | The value of the property. |
write | Boolean | ![]() | ![]() | Whether property is write enabled. Default is true. |
Methods
None.
Events
| Name | Type | Bubbles | Descripton |
beforechange | | This event is dispatched before value is set. | |
change | | This event is dispatched when value changed. | |
completed | | This event is dispatched when an call to a executable property is completed. | |
exec | | This event is dispatched when an call to a executable property is initiated. |
Static Methods
| Name | Description |
setName | Static method to make oSource a property of its parent component. It is used during parsing to set a flag later used by the add method to add a property with this name(sName) that refers to oSource. |
Static Fields
None.
Remarks
None.
Static Method Details
setName
Static method to make oSource a property of its parent component. It is used during parsing to set a flag later used by the add method to add a property with this name(sName) that refers to oSource.
Syntax
BiProperty . setName ( oSource,sName ) Parameters
| Name | Type | Optional | Default | Descripton |
oSource | | The Object to set the name for | ||
sName | String | The property name |
Return Type
void
