Public Member Functions | |
void | addParameter (in nsISupports param) |
Add parameter to the dialog. | |
void | doModal () |
Open as modal dialog. | |
void | create (in boolean show) |
Open dialog. | |
void | close () |
Close dialog. | |
Public Attributes | |
attribute AString | dialogUrl |
Dialog URL. | |
attribute boolean | canResize |
Set if dialog can be resized. | |
readonly attribute boolean | opened |
Flag if dialog opened. |
Class represents XUL based dialog. Dialog is initialy empty and have to be initialized. Dialog can be activated using doModal() or create() method.
void addParameter | ( | in nsISupports | param | ) |
Add parameter to the dialog.
Add one or more parameteres to the dialog. Method can be called several times to add more parameters. These parameters can be used in the method onLoad.
param | Parameter |
void close | ( | ) |
Close dialog.
Function will close opened dialog. This can be used only for dialogs opened by create() function.
void create | ( | in boolean | show | ) |
Open dialog.
Create and display non-modal dialog.
show | Display flag
|
void doModal | ( | ) |
Open as modal dialog.
Starts modal dialog. If caller is interested about return value special object have to be set as parameter for the dialog.
attribute boolean canResize |
Set if dialog can be resized.
Flag is dialog can be resize. Set this attribute before dialog is created.
true
if dialog can be resized false
if dialog cannot be resized (fixed border) attribute AString dialogUrl |
Dialog URL.
Dialog URL have to be set before activation. Example: 'chrome://tahiti/content/aboutDialog.xul'
readonly attribute boolean opened |
Flag if dialog opened.
Flag is true if dialog is opened. Flag is false if dialog is closed.