Class Index | File Index

Classes


Class Alfresco.module.SimpleDialog

Extends Alfresco.component.Base
SimpleDialog module.
Field Summary
Field Attributes Field Name and Description
 
Dialog instance.
 
Form instance.
 
Whether form instance is our own, or created from FormUI component
 
Object container for initialization options
Fields borrowed from class Alfresco.component.Base:
modules, services, widgets
Method Summary
Method Attributes Method Name and Description
 
hide()
Hide the dialog
 
Event handler called when the "beforeFormRuntimeInit" event is received.
 
onCancel(e, p_obj)
Cancel button event handler
 
onFailure(response)
Failed data webscript call event handler
 
onHideEvent(e, obj)
Event handler for container "hide" event.
 
onSuccess(response)
Successful data webscript call event handler
 
onTemplateLoaded(response)
Event callback when dialog template has been loaded
 
show()
Main entrypoint to show the dialog
Methods borrowed from class Alfresco.component.Base:
attachLinkClickListeners, bind, createYUIButtons, destroy, fire, invokeAction, msg, onComponentLoaded, onComponentsLoaded, onReadyWrapper, refresh, setMessages, setOptions
Field Detail
{YAHOO.widget.Dialog} dialog
Dialog instance.

{Alfresco.forms.Form} form
Form instance.

{Boolean} isFormOwner
Whether form instance is our own, or created from FormUI component

options
Object container for initialization options
Method Detail
hide()
Hide the dialog

onBeforeFormRuntimeInit(layer, args)
Event handler called when the "beforeFormRuntimeInit" event is received.
Parameters:
{String} layer
Event type
{Object} args
Event arguments

args.[1].component: Alfresco.FormUI component instance,
args.[1].runtime: Alfresco.forms.Form instance

onCancel(e, p_obj)
Cancel button event handler
Parameters:
{object} e
DomEvent
{object} p_obj
Object passed back from addListener method

onFailure(response)
Failed data webscript call event handler
Parameters:
{object} response
Server response object

onHideEvent(e, obj)
Event handler for container "hide" event.
Defer until the dialog itself has processed the hide event so we can safely destroy it later.
Parameters:
{object} e
Event type
{object} obj
Object passed back from subscribe method

onSuccess(response)
Successful data webscript call event handler
Parameters:
{object} response
Server response object

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

show()
Main entrypoint to show the dialog

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