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

NameTypeOptionalDefaultDescripton
sNameStringThe name of this property
nAccessTypesNumbercheckedWhether 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)
oValueObjectcheckedThe value of this property

Properties

NameTypegetsetDescripton
execBooleancheckedcheckedWhether property is executable. Eg. property is a method. Default is false.
getterFunctioncheckedcheckedThe property getter. [Not Implemented]
nameStringcheckedcheckedThe name of this property. The name is also used to construct the name of setters and getters
readBooleancheckedcheckedWhether property is read enabled. Default is true.
setterFunctioncheckedcheckedThe property setter. [Not Implemented]
srcObjectcheckedcheckedA 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.
srcPropertyStringcheckedcheckedA 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.
valueObjectcheckedcheckedThe value of the property.
writeBooleancheckedcheckedWhether property is write enabled. Default is true.

Methods

None.

Events

NameTypeBubblesDescripton
beforechangeBiEventThis event is dispatched before value is set.
changeBiEventThis event is dispatched when value changed.
completedBiEventThis event is dispatched when an call to a executable property is completed.
execBiEventThis event is dispatched when an call to a executable property is initiated.

Static Methods

NameDescription
setNameStatic 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

NameTypeOptionalDefaultDescripton
oSourceBiObjectThe Object to set the name for
sNameStringThe property name

Return Type

void