Class baja.ComponentSpace
Extends
baja.NavContainer.
Represents a baja:ComponentSpace in BajaScript.
Defined in: comp.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
baja.ComponentSpace(ordInSession, host)
|
- Fields borrowed from class baja.Object:
- equivalent, getIcon
| Method Attributes | Method Name and Description |
|---|---|
| <private> |
$fw(x, a, b, c)
Private framework handler for a Component Space.
|
| <private> |
findByHandle(handle)
Find the Component via its handle (null if not found).
|
|
Return absolute ORD for the Component Space.
|
|
| <private> |
Return the Space Callbacks.
|
|
getNavChildren(obj)
Access the Nav Children.
|
|
|
Return the Nav Icon.
|
|
| <private> |
Return the Nav ORD of the Root Component.
|
|
Return the ORD in Session for the Component Space.
|
|
|
Return the root Component of the Component Space.
|
|
| <private> |
Return true if this Component Space has Space callbacks.
|
| <private> |
init()
Called to initialize the Component Space.
|
| <private> |
resolveByHandle(obj)
Find the Component via its handle (null if not found).
|
|
sync(obj)
Sync the Component Space.
|
- Methods borrowed from class baja.NavContainer:
- $addChildNode, getNavDescription, getNavDisplayName, getNavName, getNavParent
This is a private internal method for framework developers.
- Parameters:
- x
- a
- b
- c
This method does not result in any network calls.
- Parameters:
- {String} handle
- the Component's handle.
- Returns:
- the Component via its handle (null if not found).
- Returns:
- {baja.Ord}
- Returns:
- Space Callbacks
- Parameters:
- obj
- Returns:
- {String}
- Returns:
- {baja.Icon}
- Returns:
- {baja.Ord}
- Returns:
- {baja.Ord}
- Returns:
- the root Component for the Space.
Space callbacks are normally used to make network calls.
- Returns:
- {Boolean}
This method may result in an asynchronous network call if the Component can't be found locally and the Space is a Proxy.
An Object Literal is used for the method's arguments.
- Parameters:
- {Object} obj Optional
- the Object Literal for the method's arguments.
- {Function} obj.ok Optional
- the ok callback. Called if the Component is resolved. The Component instance will be passed to this function.
- {Function} obj.fail Optional
- the fail callback. Call if there's an error or the Component can't be resolved.
- {baja.comm.Batch} obj.batch Optional
- if defined, any network calls will be batched into this object.
If the Space is a Proxy, this method will result in an asynchronous network call to sync the master Space with this one.
An Object Literal is used for the method's arguments.
- Parameters:
- {Object} obj Optional
- the Object Literal for the method's arguments.
- {Function} obj.ok Optional
- the ok callback. Called once the Component Space has been successfully synchronized with the Server.
- {Function} obj.fail Optional
- the fail callback. Called If the Component Space can't be synchronized.
- {baja.comm.Batch} obj.batch Optional
- if defined, any network calls will be batched into this object.