code:windows:progressdialog
Differences
This shows you the differences between two versions of the page.
code:windows:progressdialog [2011/01/29 22:06] – created jmgr | code:windows:progressdialog [2011/04/20 20:32] (current) – removed jmgr | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== ProgressDialog ====== | ||
- | This object represents a window showing a progress bar. | ||
- | ===== Functions ===== | ||
- | |||
- | ==== ProgressDialog ==== | ||
- | Constructor function. | ||
- | |||
- | === Syntax === | ||
- | <code javascript> | ||
- | var myObject = new ProgressDialog(); | ||
- | </ | ||
- | <code javascript> | ||
- | var myObject = new ProgressDialog(parameters); | ||
- | </ | ||
- | |||
- | === Arguments === | ||
- | - parameters - (object) window parameters | ||
- | * title - (string) the window' | ||
- | * position - ([[code: | ||
- | * opacity - (float) the window' | ||
- | * enabled - (boolean) the window' | ||
- | * visible - (boolean) the window' | ||
- | * value - (integer) the value | ||
- | * labelText - (string) the label text | ||
- | * minimum - (integer) the minimum value | ||
- | * maximum - (integer) the maximum value | ||
- | * range - (object) the range | ||
- | * minimum - (integer) the minimum value | ||
- | * maximum - (integer) the maximum value | ||
- | * onCanceled - ([[# | ||
- | |||
- | === Exceptions === | ||
- | * (ParameterTypeError) incorrect parameter type | ||
- | * (ParameterCountError) incorrect parameter count | ||
- | |||
- | === Example === | ||
- | <code javascript> | ||
- | var myObject = new ProgressDialog(); | ||
- | </ | ||
- | <code javascript> | ||
- | var myObject = new ProgressDialog({ | ||
- | title: " | ||
- | value: 50 | ||
- | }); | ||
- | </ | ||
- | |||
- | ===== Methods ===== | ||
- | |||
- | ==== setTitle ==== | ||
- | Sets the window' | ||
- | |||
- | === Syntax === | ||
- | <code javascript> | ||
- | myObject.setTitle(title); | ||
- | </ | ||
- | |||
- | === Arguments === | ||
- | - title - (string) the window' | ||
- | |||
- | === Returns === | ||
- | * (ProgressDialog) this ProgressDialog | ||
- | |||
- | ==== setPosition ==== | ||
- | Sets the window' | ||
- | |||
- | === Syntax === | ||
- | <code javascript> | ||
- | myObject.setPosition(point); | ||
- | </ | ||
- | |||
- | === Arguments === | ||
- | - point - ([[code: | ||
- | |||
- | === Returns === | ||
- | * (ProgressDialog) this ProgressDialog | ||
- | |||
- | ==== setOpacity ==== | ||
- | Sets the window' | ||
- | |||
- | === Syntax === | ||
- | <code javascript> | ||
- | myObject.setOpacity(opacity); | ||
- | </ | ||
- | |||
- | === Arguments === | ||
- | - opacity - (float) the window' | ||
- | |||
- | === Returns === | ||
- | * (ProgressDialog) this ProgressDialog | ||
- | |||
- | ==== setEnabled ==== | ||
- | Sets the window' | ||
- | |||
- | === Syntax === | ||
- | <code javascript> | ||
- | myObject.setEnabled(enabled); | ||
- | </ | ||
- | |||
- | === Arguments === | ||
- | - enabled - (boolean) the window' | ||
- | |||
- | === Returns === | ||
- | * (ProgressDialog) this ProgressDialog | ||
- | |||
- | ==== setVisible ==== | ||
- | Sets the window' | ||
- | |||
- | === Syntax === | ||
- | <code javascript> | ||
- | myObject.setVisible(visible); | ||
- | </ | ||
- | |||
- | === Arguments === | ||
- | - visible - (boolean) the window' | ||
- | |||
- | === Returns === | ||
- | * (ProgressDialog) this ProgressDialog | ||
- | |||
- | ==== close ==== | ||
- | Closes the window. | ||
- | |||
- | === Syntax === | ||
- | <code javascript> | ||
- | myObject.close(); | ||
- | </ | ||
- | |||
- | === Returns === | ||
- | * (ProgressDialog) this ProgressDialog | ||
- | |||
- | ==== title ==== | ||
- | Returns the window' | ||
- | |||
- | === Syntax === | ||
- | <code javascript> | ||
- | myObject.title(); | ||
- | </ | ||
- | |||
- | === Returns === | ||
- | * (string) the window' | ||
- | |||
- | ==== position ==== | ||
- | Returns the window' | ||
- | |||
- | === Syntax === | ||
- | <code javascript> | ||
- | myObject.position(); | ||
- | </ | ||
- | |||
- | === Returns === | ||
- | * ([[code: | ||
- | |||
- | ==== opacity ==== | ||
- | Returns the window' | ||
- | |||
- | === Syntax === | ||
- | <code javascript> | ||
- | myObject.opacity(); | ||
- | </ | ||
- | |||
- | === Returns === | ||
- | * (float) the window' | ||
- | |||
- | ==== enabled ==== | ||
- | Returns the window' | ||
- | |||
- | === Syntax === | ||
- | <code javascript> | ||
- | myObject.enabled(); | ||
- | </ | ||
- | |||
- | === Returns === | ||
- | * (boolean) the window' | ||
- | |||
- | ==== visible ==== | ||
- | Returns the window' | ||
- | |||
- | === Syntax === | ||
- | <code javascript> | ||
- | myObject.visible(); | ||
- | </ | ||
- | |||
- | === Returns === | ||
- | * (boolean) the window' | ||
- | |||
- | ==== setValue ==== | ||
- | Sets the progress value. | ||
- | |||
- | === Syntax === | ||
- | <code javascript> | ||
- | myObject.setValue(value); | ||
- | </ | ||
- | |||
- | === Arguments === | ||
- | - value - (integer) the progress value | ||
- | |||
- | === Returns === | ||
- | * (ProgressDialog) this ProgressDialog | ||
- | |||
- | ==== setLabelText ==== | ||
- | Sets the label text. | ||
- | |||
- | === Syntax === | ||
- | <code javascript> | ||
- | myObject.setLabelText(labelText); | ||
- | </ | ||
- | |||
- | === Arguments === | ||
- | - labelText - (string) the label text | ||
- | |||
- | === Returns === | ||
- | * (ProgressDialog) this ProgressDialog | ||
- | |||
- | ==== setMinimum ==== | ||
- | Sets the minimum value. | ||
- | |||
- | === Syntax === | ||
- | <code javascript> | ||
- | myObject.setMinimum(minimum); | ||
- | </ | ||
- | |||
- | === Arguments === | ||
- | - minimum - (integer) the minimum value | ||
- | |||
- | === Returns === | ||
- | * (ProgressDialog) this ProgressDialog | ||
- | |||
- | ==== setMaximum ==== | ||
- | Sets the maximum value. | ||
- | |||
- | === Syntax === | ||
- | <code javascript> | ||
- | myObject.setMaximum(maximum); | ||
- | </ | ||
- | |||
- | === Arguments === | ||
- | - maximum - (integer) the maximum value | ||
- | |||
- | === Returns === | ||
- | * (ProgressDialog) this ProgressDialog | ||
- | |||
- | ==== setRange ==== | ||
- | Sets the minimum and maximum value. | ||
- | |||
- | === Syntax === | ||
- | <code javascript> | ||
- | myObject.setRange(minimum, | ||
- | </ | ||
- | |||
- | === Arguments === | ||
- | - minimum - (integer) the minimum value | ||
- | - maximum - (integer) the maximum value | ||
- | |||
- | === Returns === | ||
- | * (ProgressDialog) this ProgressDialog | ||
- | |||
- | ==== show ==== | ||
- | Show the window. (non-blocking) | ||
- | Use the [[# | ||
- | |||
- | === Syntax === | ||
- | <code javascript> | ||
- | myObject.show(); | ||
- | </ | ||
- | |||
- | === Returns === | ||
- | * (ProgressDialog) this ProgressDialog | ||
- | |||
- | ==== showModal ==== | ||
- | Show the window. (blocking) | ||
- | |||
- | === Syntax === | ||
- | <code javascript> | ||
- | myObject.showModal(); | ||
- | </ | ||
- | |||
- | === Returns === | ||
- | * (integer) the window result (0 means that it has been canceled) | ||
- | |||
- | ===== Events ===== | ||
- | |||
- | ==== onCanceled ==== | ||
- | Called when the window is canceled. | ||
- | |||
- | === Syntax === | ||
- | <code javascript> | ||
- | myObject.onCanceled = function() {}; | ||
- | </ | ||
- | |||
- | === Example === | ||
- | <code javascript> | ||
- | myObject.onCanceled = function() | ||
- | { | ||
- | //Event action | ||
- | }; | ||
- | </ | ||
- | |||
- | ===== Attributes ===== | ||
- | |||
- | ==== title ==== | ||
- | The window' | ||
- | |||
- | ==== position ==== | ||
- | The window' | ||
- | |||
- | ==== opacity ==== | ||
- | The window' | ||
- | |||
- | ==== enabled ==== | ||
- | The window' | ||
- | |||
- | ==== value ==== | ||
- | The progress bar's value. (integer) |
code/windows/progressdialog.1296338794.txt.gz · Last modified: 2021/02/13 11:23 (external edit)