Class Index | File Index

Classes


Class NaosDialog


Defined in: dialog.js.

Class Summary
Constructor Attributes Constructor Name and Description
<private>  
NaosDialog(moduleId, dialogId, type, position, output)
Creates a new dialog object which allows you to display dialogs in an easy and standardized way.
Field Summary
Field Attributes Field Name and Description
<private> <static>  
NaosDialog._dialogs
Array of all dialog instances
<private>  
This cache stores all removed children the DOM element in case we have type="replace".
<private>  
This cache stores a pointer to the DOM element in case we have type="replace".
<private>  
<private>  
<private>  
<private>  
<private>  
Method Summary
Method Attributes Method Name and Description
<static>  
NaosDialog.closeDialog(moduleId, dialogId)
Closes an existing dialog.
<private>  
hide(temporary)
Hides the dialog described by the NaosDialog object.
<static>  
NaosDialog.openDialog(moduleId, dialogId, type, position, ouput)
Opens a new dialog.
<private>  
show()
Displays the dialog described by the NaosDialog object.
Class Detail
<private> NaosDialog(moduleId, dialogId, type, position, output)
Creates a new dialog object which allows you to display dialogs in an easy and standardized way.

The following types are provided at the moment:

replace: This allows you to define the place of the dialog by an ID in the DOM tree of your browser. The attribute "position" has to be conform to the format "id:<DOM ID>".

modalbox: Uses Modalbox to display the dialog. The attribute "position" is not used at the moment.

Please use the NaosDialog.openDialog and NaosDialog.closeDialog methods for opening and closing dialogs.
Parameters:
{String} moduleId
ID of the assigned module
{String} dialogId
ID of the dialog
{String} type
Type of the dialog. See description of types above.
{String} position
Position of the dialog. See description above.
{String} output
An HTML string for the dialog output.
Field Detail
<private> <static> {Array} NaosDialog._dialogs
Array of all dialog instances

<private> cacheTypeReplaceChildren
This cache stores all removed children the DOM element in case we have type="replace". These are restored when we hide the dialog.

<private> cacheTypeReplaceElement
This cache stores a pointer to the DOM element in case we have type="replace".

<private> dialogId
See:
NaosDialog

<private> moduleId
See:
NaosDialog

<private> output
See:
NaosDialog

<private> position
See:
NaosDialog

<private> type
See:
NaosDialog
Method Detail
<static> NaosDialog.closeDialog(moduleId, dialogId)
Closes an existing dialog. See NaosDialog for a detailed description of the parameters.
Parameters:
{String} moduleId
See NaosDialog.
{String} dialogId
See NaosDialog.

<private> hide(temporary)
Hides the dialog described by the NaosDialog object.
Parameters:
{boolean} temporary
Indicates a temporary hide operation on this dialog.

<static> {NaosDialog See {@link NaosDialog}.} NaosDialog.openDialog(moduleId, dialogId, type, position, ouput)
Opens a new dialog. See NaosDialog for a detailed description of the parameters.
Parameters:
{String} moduleId
See NaosDialog.
{String} dialogId
See NaosDialog.
{String} type
See NaosDialog.
{String} position
See NaosDialog.
{String} ouput
See NaosDialog.

<private> show()
Displays the dialog described by the NaosDialog object.

Documentation generated by JsDoc Toolkit 2.0.2 on Fri Sep 12 2008 13:31:24 GMT-0400 (EDT)