Class blade.core.Registry

Object
   |
   +--blade.core.Registry

class 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

blade.core.Registry

function blade.core.Registry()
Method Detail

applyToAll

function applyToAll(id, fn)

del

function del(id)

exp

function exp(id)

getAttribute

function getAttribute(id, attrName)

getChildren

function getChildren(id)

getIdList

function getIdList()

getSiblings

function getSiblings(id)

hide

function hide(id)

imp

function imp(row)

insert

function insert(id)

register

function register(id, parent)

remove

function remove(id)

setAttribute

function setAttribute(id, attrName, attrValue)

setGroupFlag

function setGroupFlag(id, bool)

show

function show(id)