Class Index | File Index

Classes


Class Alfresco.GroupsList

Extends Alfresco.component.Base
GroupsList component.
Defined in: groupslist.js
Constructor Summary
Constructor Attributes Constructor Name and Description
 
GroupsList constructor.
Field Summary
Field Attributes Field Name and Description
 
Object container for storing YUI widget instances used in the list cells
 
Object container for initialization options
 
Auto-incremented unique id for each element added to the table.
Fields borrowed from class Alfresco.component.Base:
modules, services, widgets
Method Summary
Method Attributes Method Name and Description
 
Event handler for "Add" button click. Initiates the add process
 
getRoleLabel(record)
Returns the role label for a given record.
 
onItemSelected(layer, args)
Event handler for "itemSelected" bubbling event.
 
Fired by YUI when parent element is available for scripting.
 
onRoleSelect(sType, aArgs, p_obj)
Called when the user select a role in the role dropdown
 
onSelectAllRoles(sType, aArgs, p_obj)
Select all roles dropdown event handler
 
Remove item action handler
Methods borrowed from class Alfresco.component.Base:
attachLinkClickListeners, bind, createYUIButtons, destroy, fire, invokeAction, msg, onComponentLoaded, onComponentsLoaded, onReadyWrapper, refresh, setMessages, setOptions
Constructor Detail
Alfresco.GroupsList(htmlId)
GroupsList constructor.
Parameters:
{String} htmlId
The HTML id of the parent element
Returns:
{Alfresco.GroupsList} The new GroupsList instance
Field Detail
{array} listWidgets
Object container for storing YUI widget instances used in the list cells

{object} options
Object container for initialization options

{integer} uniqueRecordId
Auto-incremented unique id for each element added to the table.
Method Detail
addButtonClick(e)
Event handler for "Add" button click. Initiates the add process
Parameters:
{Object} e
Event arguments

getRoleLabel(record)
Returns the role label for a given record.
Parameters:
record
{YAHOO.widget.Record} YUI DataTable record

onItemSelected(layer, args)
Event handler for "itemSelected" bubbling event.
Adds an item to the list.
Parameters:
{object} layer
Event fired
{array} args
Event parameters (depends on event type)

onReady()
Fired by YUI when parent element is available for scripting.
Component initialisation, including instantiation of YUI widgets and event listener binding.

onRoleSelect(sType, aArgs, p_obj)
Called when the user select a role in the role dropdown
Parameters:
{String} sType
event type
{Array} aArgs
event arguments
{Object} p_obj
object containing record and role to set

onSelectAllRoles(sType, aArgs, p_obj)
Select all roles dropdown event handler
Parameters:
{String} sType
event type
{Array} aArgs
event arguments
{Object} p_obj
object containing record and role to set

removeItem(row)
Remove item action handler
Parameters:
{HTMLElement} row
DOM reference to a TR element (or child thereof)

Documentation generated by JsDoc Toolkit 2.4.0 on Thu Feb 16 2012 12:24:26 GMT-0000 (GMT)