WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

nsIDialogParamBlock

IID:f76c0901-437a-11d3-b7a0-e35db351b4bc
Inherits From:nsISupports

An interface to pass strings, integers and nsISupports to a dialog

This interface is implemented by the following components:


Properties

nsIMutableArray objects

A place where you can store an nsIMutableArray to pass nsISupports


Methods

PRInt32 GetInt ( PRInt32 inIndex ) PRUnichar* GetString ( PRInt32 inIndex ) void SetInt ( PRInt32 inIndex , PRInt32 inInt ) void SetNumberStrings ( PRInt32 inNumStrings ) void SetString ( PRInt32 inIndex , PRUnichar* inString )

PRInt32 GetInt ( PRInt32 inIndex )

Get or set an integer to pass. Index must be in the range 0..7

Arguments:
inIndex

PRUnichar* GetString ( PRInt32 inIndex )

Get or set an string to pass. Index starts at 0

Arguments:
inIndex

void SetInt ( PRInt32 inIndex , PRInt32 inInt )

Arguments:
inIndex
inInt

void SetNumberStrings ( PRInt32 inNumStrings )

Set the maximum number of strings to pass. Default is 16. Use before setting any string (If you want to change it from the default).

Arguments:
inNumStrings

void SetString ( PRInt32 inIndex , PRUnichar* inString )

Arguments:
inIndex
inString

References

This interface is passed as an argument to the following methods:

nsPIPromptService.doDialog

Reference documentation is generated from Mozilla's source.