Class Index | File Index

Classes


Class Alfresco.Links

Extends Alfresco.component.Base
Links component
Defined in: links.js
Constructor Summary
Constructor Attributes Constructor Name and Description
 
Alfresco.Links(htmlId)
Links constructor.
Field Summary
Field Attributes Field Name and Description
 
Tells whether an action is currently ongoing.
 
The deleted link CSS style.
 
The edited link CSS style.
 
Object container for initialization options
 
Offset of first record on page
 
Object literal used to generate unique tag ids
 
Total number of posts in the current view (across all pages)
Fields borrowed from class Alfresco.component.Base:
modules, services, widgets
Method Summary
Method Attributes Method Name and Description
 
activation of components
 
init links buttons
 
change list view
 
init DataSource
 
Initialise DataTable
 
createLink(rowData)
Adds the link.
 
 
deselect all links
 
generateLinksViewUrl(linkId, container, linkId)
Generate a view url for a given site, link id.
 
Gets the array of selected links.
 
Invert All Selection on the page
 
onChangeFilter(layer, args)
Links Filter changed event handler
 
Deactivate All Controls event handler
 
onLinksListRefresh(layer, args)
Links Refresh Required event handler
 
onMenuItemClick(sType,, aArgs, p_obj)
menu item event handler
 
Fired by YUI when parent element is available for scripting.
 
onSelectItemClick(sType, aArgs, p_obj)
Handler on Menu Item Click
 
onUpdateLink(rowData, row)
Updates the link.
 
select All Tags on the page
 
showConfirmDialog(row, callback)
Show delete confirm dialog.
 
show 'Create Link' dialog
 
updateLinks(p_obj)
Updates links list by calling data webscript with current site and filter information
 
Update the list title.
 
updateToolbar(linkPermissions)
Updates the toolbar using the passed permissions
Methods borrowed from class Alfresco.component.Base:
attachLinkClickListeners, bind, createYUIButtons, destroy, fire, invokeAction, msg, onComponentLoaded, onComponentsLoaded, onReadyWrapper, refresh, setMessages, setOptions
Constructor Detail
Alfresco.Links(htmlId)
Links constructor.
Parameters:
{String} htmlId
The HTML id of the parent element
Returns:
{Alfresco.SiteFinder} The new SiteFinder instance
Field Detail
{boolean} busy
Tells whether an action is currently ongoing.
See:
_setBusy/_releaseBusy

DELETEDCLASS
The deleted link CSS style.

EDITEDCLASS
The edited link CSS style.

{object} options
Object container for initialization options

{int} recordOffset
Offset of first record on page
Default Value:
0

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

{int} totalRecords
Total number of posts in the current view (across all pages)
Default Value:
0
Method Detail
activate()
activation of components

attachButtons()
init links buttons

changeListView()
change list view

{Alfresco.Links} createDataSource()
init DataSource
Returns:
{Alfresco.Links} returns 'this' for method chaining

createDataTable()
Initialise DataTable

createLink(rowData)
Adds the link.
Parameters:
{object} rowData
the row's data.

deleteLinks(arr)
Parameters:
{array} arr

deselectAll(no)
deselect all links
Parameters:
no
params

generateLinksViewUrl(linkId, container, linkId)
Generate a view url for a given site, link id.
Parameters:
linkId
the id/name of the link
container
linkId
Returns:
an url to access the link

getSelectedLinks()
Gets the array of selected links.

invertAll()
Invert All Selection on the page

onChangeFilter(layer, args)
Links Filter changed event handler
Parameters:
{object} layer
Event fired (unused)
{array} args
Event parameters (new filterId)

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

onLinksListRefresh(layer, args)
Links Refresh Required event handler
Parameters:
{object} layer
Event fired (unused)
{array} args
Event parameters (unused)

onMenuItemClick(sType,, aArgs, p_obj)
menu item event handler
Parameters:
sType,
aArgs, p_obj
aArgs
p_obj

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

onSelectItemClick(sType, aArgs, p_obj)
Handler on Menu Item Click
Parameters:
sType
aArgs
p_obj

onUpdateLink(rowData, row)
Updates the link.
Parameters:
{object} rowData
the row's data.
row
{YAHOO.widget.Record}.

selectAll()
select All Tags on the page

showConfirmDialog(row, callback)
Show delete confirm dialog.
Parameters:
row
{YAHOO.widget.Record} the row which needs for delete.
callback

showCreateLinkDlg()
show 'Create Link' dialog

updateLinks(p_obj)
Updates links list by calling data webscript with current site and filter information
Parameters:
p_obj

updateListTitle()
Update the list title.

updateToolbar(linkPermissions)
Updates the toolbar using the passed permissions
Parameters:
{object} linkPermissions
Container permissions

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