Class Index | File Index

Classes


Class Alfresco.WikiToolbar

Defined in: toolbar.js
Constructor Summary
Constructor Attributes Constructor Name and Description
 
WikiToolbar constructor.
Field Summary
Field Attributes Field Name and Description
 
Object container for initialization options
 
Object container for storing pop-up window instances.
 
Object container for storing YUI widget instances.
Method Summary
Method Attributes Method Name and Description
 
Fired when the user decides not to delete a page.
 
Fired by YUILoaderHelper when required component script files have
 
Fired when the user confirms that they want to delete a page.
 
Deactivate All Controls event handler
 
Event handler for the delete button in the toolbar.
 
onDeletePage(e, args)
Kicks off a page delete confirmation dialog.
 
Dispatches the browser to the create wiki page
 
Callback handler then gets invoked when a page is
 
Gets called when a page is successfully renamed.
 
Gets called when a page rename failed.
 
Fired by YUI when parent element is available for scripting.
 
Event handler for the rename button in the toolbar.
 
onUserAccess(layer, args)
User Access event handler
 
Set messages for this component.
 
Set multiple initialization options at once.
Constructor Detail
Alfresco.WikiToolbar(htmlId)
WikiToolbar constructor.
Parameters:
{String} htmlId
The HTML id of the parent element
Returns:
{Alfresco.WikiToolbar} The new WikiToolbar instance
Field Detail
{object literal} options
Object container for initialization options

{object} popups
Object container for storing pop-up window instances.

{object} widgets
Object container for storing YUI widget instances.
Method Detail
onCancel(e)
Fired when the user decides not to delete a page.
Hides the confirmation dialog.
Parameters:
{object} e
DomEvent

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

onConfirm(e)
Fired when the user confirms that they want to delete a page.
Kicks off a DELETE request to the Alfresco repo to remove an event.
Parameters:
{object} e
DomEvent

onDeactivateAllControls(layer, args)
Deactivate All Controls event handler
Parameters:
{object} layer
Event fired
{array} args
Event parameters (depends on event type)

onDeleteClick(e)
Event handler for the delete button in the toolbar.
Pops up the delete confirmation dialog.
Parameters:
{object} e
DomEvent

onDeletePage(e, args)
Kicks off a page delete confirmation dialog.
Fired when a delete link is clicked -
primarily the "delete" link on the listing page.
Parameters:
{object} e
DomEvent
args

onNewPageClick(e)
Dispatches the browser to the create wiki page
Parameters:
{object} e
DomEvent

onPageDeleted(e)
Callback handler then gets invoked when a page is
successfully deleted.
Parameters:
{object} e
DomEvent

onPageRenamed(e)
Gets called when a page is successfully renamed.
Sets the window location to the URL of the new page.
Parameters:
{object} e
DomEvent

onPageRenameFailed(e, e)
Gets called when a page rename failed.
Parameters:
{object} e
DomEvent
{string} e
Attempted page title

onReady()
Fired by YUI when parent element is available for scripting.
Initialises components, including YUI widgets.

onRenameClick(e)
Event handler for the rename button in the toolbar.
Pops up the rename dialog.
Parameters:
{object} e
DomEvent

onUserAccess(layer, args)
User Access event handler
Parameters:
{object} layer
Event fired
{array} args
Event parameters (depends on event type)

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

{Alfresco.WikiToolbar} setOptions(obj)
Set multiple initialization options at once.
Parameters:
{object} obj
Object literal specifying a set of options
Returns:
{Alfresco.WikiToolbar} returns 'this' for method chaining

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