Class Index | File Index

Classes


Class Alfresco.AuthorityFinder

Extends Alfresco.component.Base
AuthorityFinder component.
Constructor Summary
Constructor Attributes Constructor Name and Description
 
AuthorityFinder constructor.
Field Summary
Field Attributes Field Name and Description
 
Object container for storing YUI button instances
 
Authorities for whom the action is not allowed
 
Object container for initialization options
 
Current search term, obtained from form input field.
 
Selected items. Keeps a list of selected items for correct Add button state.
 
Single selected item, for when in single select mode
Fields borrowed from class Alfresco.component.Base:
modules, services, widgets
Method Summary
Method Attributes Method Name and Description
 
Public function to clear the results DataTable
 
onItemDeselected(layer, args)
Item Deselected event handler
 
onItemSelect(e, p_obj)
Select person button click handler
 
onItemSelected(layer, args)
Item Selected event handler
 
Fired by YUI when parent element is available for scripting.
 
onSearchClick(e, p_obj)
Search button click event handler
Methods borrowed from class Alfresco.component.Base:
attachLinkClickListeners, bind, createYUIButtons, destroy, fire, invokeAction, msg, onComponentLoaded, onComponentsLoaded, onReadyWrapper, refresh, setMessages, setOptions
Constructor Detail
Alfresco.AuthorityFinder(htmlId)
AuthorityFinder constructor.
Parameters:
{String} htmlId
The HTML id of the parent element
Returns:
{Alfresco.AuthorityFinder} The new AuthorityFinder instance
Field Detail
{object} itemSelectButtons
Object container for storing YUI button instances

{array} notAllowed
Authorities for whom the action is not allowed

{object} options
Object container for initialization options

{string} searchTerm
Current search term, obtained from form input field.

{object} selectedItems
Selected items. Keeps a list of selected items for correct Add button state.

{string} singleSelectedItem
Single selected item, for when in single select mode
Method Detail
clearResults()
Public function to clear the results DataTable

onItemDeselected(layer, args)
Item Deselected event handler
Parameters:
{object} layer
Event fired
{array} args
Event parameters (depends on event type)

onItemSelect(e, p_obj)
Select person button click handler
Parameters:
{object} e
DomEvent
{object} p_obj
Object passed back from addListener method

onItemSelected(layer, args)
Item Selected event handler
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.

onSearchClick(e, p_obj)
Search button click event handler
Parameters:
{object} e
DomEvent
{object} p_obj
Object passed back from addListener method

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