Class Index | File Index

Classes


Class Alfresco.BlogPostView

BlogPostView component.

Component to view a blog post
Defined in: postview.js
Constructor Summary
Constructor Attributes Constructor Name and Description
 
BlogPostView constructor.
Field Summary
Field Attributes Field Name and Description
 
Stores the data displayed by this component
 
Tells whether an action is currently ongoing.
 
Object container for initialization options
 
True if publishing actions should be displayed
 
Object literal used to generate unique tag ids
 
Object container for storing YUI widget instances.
Method Summary
Method Attributes Method Name and Description
 
Success handler for a blog post request. Updates the UI using the blog post data
 
Fired by YUILoaderHelper when required component script files have
 
Blog post deletion implementation
 
Loads the edit post form and displays it instead of the content
 
Called when the mouse enters into a list item.
 
Called whenever the mouse exits a list item.
 
Publishing of a blog post
 
Fired by YUI when parent element is available for scripting.
 
onTagSelected(tagId, target)
Tag selected handler.
 
Unpublishing of an external published blog post implementation
 
Updating of an external published blog post implementation
 
Renders the blog post given a blog post data object returned by the server.
 
Sends out a setCommentedNode bubble event.
 
Set messages for this component.
 
Set multiple initialization options at once.
Constructor Detail
Alfresco.BlogPostView(htmlId)
BlogPostView constructor.
Parameters:
{String} htmlId
The HTML id of the parent element
Returns:
{Alfresco.BlogPostView} The new Post instance
Field Detail
blogPostData
Stores the data displayed by this component

{boolean} busy
Tells whether an action is currently ongoing.
See:
setBusy/releaseBusy

{object} options
Object container for initialization options

{boolean} showPublishingActions
True if publishing actions should be displayed

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

{object} widgets
Object container for storing YUI widget instances.
Method Detail
loadBlogPostDataSuccess(response)
Success handler for a blog post request. Updates the UI using the blog post data
provided in the response object.
Parameters:
{object} response
the ajax request response

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

onDeleteBlogPost(postId)
Blog post deletion implementation
Parameters:
{string} postId
the id of the blog post to delete

onEditBlogPost(postId)
Loads the edit post form and displays it instead of the content
The div class should have the same name as the above function (onEditNode)
Parameters:
postId

onPostElementMouseEntered(layer, args)
Called when the mouse enters into a list item.
Parameters:
layer
args

onPostElementMouseExited(layer, args)
Called whenever the mouse exits a list item.
Parameters:
layer
args

onPublishExternal(postId)
Publishing of a blog post
Parameters:
{string} postId
the id of the blog post to publish

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.

onUnpublishExternal(postId)
Unpublishing of an external published blog post implementation
Parameters:
{string} postId
the id of the blog post to update

onUpdateExternal(postId)
Updating of an external published blog post implementation
Parameters:
{string} postId
the id of the blog post to update

renderBlogPost(data)
Renders the blog post given a blog post data object returned by the server.
Parameters:
data

sendCommentedNodeEvent()
Sends out a setCommentedNode bubble event.

{Alfresco.BlogPostView} setMessages(obj)
Set messages for this component.
Parameters:
{object} obj
Object literal specifying a set of messages
Returns:
{Alfresco.BlogPostView} returns 'this' for method chaining

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:23 GMT-0000 (GMT)