Class Index | File Index

Classes


Class Alfresco.ObjectRenderer

Extends Alfresco.component.Base
ObjectRenderer component.
Defined in: object-finder.js
Constructor Summary
Constructor Attributes Constructor Name and Description
 
ObjectRenderer constructor.
Field Summary
Field Attributes Field Name and Description
 
Object container for storing button instances, indexed by item id.
 
Create new item input control Dom Id
 
Decoupled event listeners
 
Object container for initialization options
 
Flag to indicate whether the start location (if present)
Fields borrowed from class Alfresco.component.Base:
modules, services, widgets
Method Summary
Method Attributes Method Name and Description
 
Destroy method - deregister Bubbling event handlers
 
Returns Add button datacell formatter
 
Returns Icon datacell formatter
 
Returns Name datacell formatter
 
getIconURL(item, size)
Generate item icon URL
 
Create New Item button click handler
 
onParentChanged(layer, args)
Parent changed event handler
 
The picker has just been shown
 
Fired by YUI when parent element is available for scripting.
 
onRefreshItemList(layer, args)
Refresh item list event handler
 
onSelectedItemChanged(layer, args)
Selected Item Changed event handler
 
renderItem(item, iconSize, template)
Render item using a passed-in template
Methods borrowed from class Alfresco.component.Base:
attachLinkClickListeners, bind, createYUIButtons, fire, invokeAction, msg, onComponentLoaded, onComponentsLoaded, onReadyWrapper, refresh, setMessages, setOptions
Constructor Detail
Alfresco.ObjectRenderer(Instance)
ObjectRenderer constructor.
Parameters:
{object} Instance
of the ObjectFinder
Returns:
{Alfresco.ObjectRenderer} The new ObjectRenderer instance
Field Detail
{object} addItemButtons
Object container for storing button instances, indexed by item id.

{string} createNewItemId
Create new item input control Dom Id

eventGroup
Decoupled event listeners

{object} options
Object container for initialization options

{boolean} startLocationResolved
Flag to indicate whether the start location (if present)
has been resolved yet or not
Method Detail
destroy()
Destroy method - deregister Bubbling event handlers

fnRenderCellAdd()
Returns Add button datacell formatter

fnRenderItemIcon()
Returns Icon datacell formatter

fnRenderItemName()
Returns Name datacell formatter

getIconURL(item, size)
Generate item icon URL
Parameters:
{object} item
Item object literal
{number} size
Icon size (16, 32)

onCreateNewItem()
Create New Item button click handler

onParentChanged(layer, args)
Parent changed event handler
Parameters:
{object} layer
Event fired
{array} args
Event parameters (depends on event type)

onPickerShow()
The picker has just been shown

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

onRefreshItemList(layer, args)
Refresh item list event handler
Parameters:
{object} layer
Event fired
{array} args
Event parameters (depends on event type)

onSelectedItemChanged(layer, args)
Selected Item Changed event handler
Handles selectedItemAdded and selectedItemRemoved events
Parameters:
{object} layer
Event fired
{array} args
Event parameters (depends on event type)

renderItem(item, iconSize, template)
Render item using a passed-in template
Parameters:
{object} item
Item object literal
{number} iconSize
Icon size (16, 32)
{string} template
String with "{parameter}" style placeholders

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