Class Index | File Index

Classes


Class Alfresco.DiscussionsTopic

Topic component.
Shows and allows to edit a topic.
Defined in: topic.js
Constructor Summary
Constructor Attributes Constructor Name and Description
 
Topic constructor.
Field Summary
Field Attributes Field Name and Description
 
Tells whether an action is currently ongoing.
 
Object container for storing module instances.
 
Object container for initialization options
 
Object literal used to generate unique tag ids
 
Holds the data displayed in this component.
 
Object container for storing YUI widget instances.
Method Summary
Method Attributes Method Name and Description
 
onAddReply(htmlId, ownerId, param)
Handler for add reply action link
 
Fired by YUILoaderHelper when required component script files have
 
Handler for delete topic action link
 
Edit form cancel button click handler
 
onEditFormLoaded(response)
Event callback when dialog template has been loaded
 
onEditFormSubmitFailure(response, object)
Edit form submit failure handler
 
onEditFormSubmitSuccess(response, object)
Edit form submit success handler
 
Handler for edit topic action link
 
Fired by YUI when parent element is available for scripting.
 
onTagSelected(tagId, target)
Tag selected handler
 
Called when the mouse enters into the topic div
 
Called whenever the mouse exits the topic div
 
Renders the topic.
 
Renders the UI with the data available in the component.
 
Set multiple initialization options at once.
 
Set multiple initialization options at once.
Constructor Detail
Alfresco.DiscussionsTopic(htmlId)
Topic constructor.
Parameters:
{String} htmlId
The HTML id of the parent element
Returns:
{Alfresco.TopicView} The new Topic instance
Field Detail
{boolean} busy
Tells whether an action is currently ongoing.
See:
_setBusy/_releaseBusy

{object} modules
Object container for storing module instances.

{object} options
Object container for initialization options

{object} tagId
Object literal used to generate unique tag ids

topicData
Holds the data displayed in this component.

{object} widgets
Object container for storing YUI widget instances.
Method Detail
onAddReply(htmlId, ownerId, param)
Handler for add reply action link
Parameters:
htmlId
ownerId
param

onComponentsLoaded()
Fired by YUILoaderHelper when required component script files have
been loaded into the browser.

onDeleteTopic()
Handler for delete topic action link

onEditFormCancelButtonClick(type, args)
Edit form cancel button click handler
Parameters:
type
args

onEditFormLoaded(response)
Event callback when dialog template has been loaded
Parameters:
{object} response
Server response from load template XHR request

onEditFormSubmitFailure(response, object)
Edit form submit failure handler
Parameters:
response
object

onEditFormSubmitSuccess(response, object)
Edit form submit success handler
Parameters:
response
object

onEditTopic()
Handler for edit topic action link

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

onTagSelected(tagId, target)
Tag selected handler
Parameters:
{string} tagId
Tag name.
{HTMLElement} target
Target element clicked.

onTopicElementMouseEntered(layer, args)
Called when the mouse enters into the topic div
Parameters:
layer
args

onTopicElementMouseExited(layer, args)
Called whenever the mouse exits the topic div
Parameters:
layer
args

{string} renderTopic(data)
Renders the topic.
Parameters:
{object} data
the data object containing the topic data
Returns:
{string} html representing the data

renderUI()
Renders the UI with the data available in the component.

setMessages(obj)
Set multiple initialization options at once.
Parameters:
{object} obj
Object literal specifying a set of options

setOptions(obj)
Set multiple initialization options at once.
Parameters:
{object} obj
Object literal specifying a set of options

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