|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--blade.core.Registry
Helper class that holds information about components' sub-elements. For example,
ETables use a Registry to keep track of the parent-child relationship between rows.
Defined in common.js
Constructor Summary | |
blade.core.Registry
()
|
Method Summary | |
function
|
applyToAll(id, fn)
Applies a function to all members of a group |
function
|
del(id)
Deletes an entry from the registry |
function
|
exp(id)
Exports an entry |
function
|
getAttribute(id, attrName)
Gets the specified attribute for an entry |
function
|
getChildren(id)
Gets the children of the element specified by id |
function
|
getIdList()
Gets a list of all IDs in the registry |
function
|
getSiblings(id)
Gets the siblings of the element specified by id |
function
|
hide(id)
Applies hide() to the registry entry (including all sub-entries if the entry is a group) |
function
|
imp(row)
Imports an entry |
function
|
insert(id)
Applies insert() to the registry entry (including all sub-entries if the entry is a group) |
function
|
register(id, parent)
Adds a new entry to the registry |
function
|
remove(id)
Applies remove() to the registry entry (including all sub-entries if the entry is a group) |
function
|
setAttribute(id, attrName, attrValue)
Sets the specified attribute for an entry |
function
|
setGroupFlag(id, bool)
Sets the group flag for an already registered item. |
function
|
show(id)
Applies show() to the registry entry (including all sub-entries if the entry is a group) |
Constructor Detail |
function blade.core.Registry()
Method Detail |
function applyToAll(id, fn)
fn
- function to apply
group
- 's id
function del(id)
id
- entry's id
function exp(id)
id
- entry's id
function getAttribute(id, attrName)
id
- entry's id
attrName
- attribute's name
function getChildren(id)
id
- entry's id
function getIdList()
function getSiblings(id)
id
- entry's id
function hide(id)
id
- entry's id
function imp(row)
row
- an Array holding the entry in the form of (id, parent_id, groupFlag, attribute_array)
function insert(id)
id
- entry's id
function register(id, parent)
id
- id to add
parent
- id of the entry's parent element
function remove(id)
id
- entry's id
function setAttribute(id, attrName, attrValue)
id
- entry's id
attrName
- attribute's name
attrValue
- attribute's value
function setGroupFlag(id, bool)
id
- entry's id
bool
- a boolean value for the group flag
function show(id)
id
- entry's id
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |