-
BObject
- BArray
Class: BArray
Public Properties
| Property | Defined By | |
|---|---|---|
| Expand id |
id : Integer
<read-only>
Unique ID for this object
|
BObject |
Public Methods
| Method | Defined By | |
|---|---|---|
| Expand BArray |
new
BArray ([array:Array])
:
BArray
<constructor>
Arguments
Returns
|
BArray |
| Expand bindTo |
bindTo (key:String,target:BOject,[targetKey:String],[noNotify:Boolean])
:
void
Bind the value of a property on this object to that of another object so
they always have the same value. Setting the value on either object will update
the other too.
Arguments
Returns
|
BObject |
| Expand changed |
changed (key:*)
:
void
Arguments
Returns
|
BObject |
| Expand get |
get (key:String)
:
*
Get a property from the object. Always use this instead of trying to
access the property directly. This will ensure all bindings, setters and
getters work correctly.
Arguments
Returns
|
BObject |
| Expand getArray |
getArray ()
:
Array
Get the internal Javascript Array instance
Returns
|
BArray |
| Expand getAt |
getAt (i:Integer)
:
*
Get an item
Arguments
Returns
|
BArray |
| Expand insertAt |
insertAt (i:Integer,value:*)
:
void
Insert a new item into the array without overwriting anything
Arguments
Returns
|
BArray |
| Expand pop |
pop ()
:
*
Remove value from the end of the array and return it
Returns
|
BArray |
| Expand push |
push (value:*)
:
Integer
Append a value to the end of the array and return its new length
Arguments
Returns
|
BArray |
| Expand removeAt |
removeAt (i:Integer)
:
*
Remove item from the array and return it
Arguments
Returns
|
BArray |
| Expand set |
set (key:String,value:*)
:
void
Set a property on the object. Always use this instead of trying to
access the property directly. This will ensure all bindings, setters and
getters work correctly.
Arguments
Returns
|
BObject |
| Expand setAt |
setAt (i:Integer,value:*)
:
void
Set an item -- Overwrites any existing item at index
Arguments
Returns
|
BArray |
| Expand setValues |
setValues (kvp:Object)
:
void
Set multiple propertys in one go
Arguments
Returns
|
BObject |
| Expand unbind |
unbind (key:String)
:
void
Remove binding from a property which set setup using BObject#bindTo.
Arguments
Returns
|
BObject |
| Expand unbindAll |
unbindAll ()
:
void
Remove all bindings on this object
Returns
|
BObject |
Private Members
This class has no private members.