Class Index | File Index

Classes


Class Alfresco.CreateComment

Extends Alfresco.component.Base
CreateComment component.
Defined in: createcomment.js
Constructor Summary
Constructor Attributes Constructor Name and Description
 
CreateComment constructor.
Field Summary
Field Attributes Field Name and Description
 
States whether the view has already been initialized
 
Object container for initialization options
Fields borrowed from class Alfresco.component.Base:
modules, services, widgets
Method Summary
Method Attributes Method Name and Description
 
Reenables the inputs which got disabled as part of a comment submit
 
Initializes the create comment form.
 
Success handler for the form submit ajax request
 
onSetCanCreateComment(layer, args)
Called by a bubble event to set whether the user is allowed to comment.
 
onSetCommentedNode(layer, args)
Called by a bubble event to set the node for which comments should be displayed
 
Registers the form with the html (that should be available in the page)
Methods borrowed from class Alfresco.component.Base:
attachLinkClickListeners, bind, createYUIButtons, destroy, fire, invokeAction, msg, onComponentLoaded, onComponentsLoaded, onReadyWrapper, refresh, setMessages, setOptions
Constructor Detail
Alfresco.CreateComment(htmlId)
CreateComment constructor.
Parameters:
{String} htmlId
The HTML id of the parent element
Returns:
{Alfresco.CreateComment} The new CreateComment instance
Field Detail
{boolean} initialized
States whether the view has already been initialized

{object} options
Object container for initialization options
Method Detail
enableInputs()
Reenables the inputs which got disabled as part of a comment submit

initializeCreateCommentForm()
Initializes the create comment form.

onCreateFormSubmitSuccess(response)
Success handler for the form submit ajax request
Parameters:
{object} response
Ajax response object

onSetCanCreateComment(layer, args)
Called by a bubble event to set whether the user is allowed to comment.
Parameters:
{object} layer
Event fired (unused)
{array} args
Event parameters (canCreateComment)

onSetCommentedNode(layer, args)
Called by a bubble event to set the node for which comments should be displayed
Parameters:
{object} layer
Event fired (unused)
{array} args
Event parameters (nodeRef, title, page, pageParams)

registerCreateCommentForm()
Registers the form with the html (that should be available in the page)
as well as the buttons that are part of the form.

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