Ceci est une ancienne révision du document !
Table des matières
ProgressDialog [En cours de Traduction Wismerheal][WSL]
Cet objet représente une fenêtre affichant une barre de progression.
Fonctions
ProgressDialog
Fonction de construction.
Syntaxe
var myObject = new ProgressDialog();
var myObject = new ProgressDialog(parameters);
Arguments
- parameters - (object) paramètres de la fenêtre
- title - (string) le titre de la fenêtre
- position - (Point) la position de la fenêtre
- opacity - (float) l'opacité de la fenêtre
- enabled - (boolean) le statut d'activité de la fenêtre
- visible - (boolean) le statut de visibilité de la fenêtre
- value - (integer) la valeur
- labelText - (string) le label du texte
- minimum - (integer) la valeur minimum
- maximum - (integer) la valeur maximum
- range - (object) la portée
- minimum - (integer) la valeur minimum
- maximum - (integer) la valeur maximum
- onCanceled - (OnCanceled) évènement appelé quand la fenêtre est annulée
Exceptions
- (ParameterTypeError) incorrect parameter type
- (ParameterCountError) incorrect parameter count
Example
var myObject = new ProgressDialog();
var myObject = new ProgressDialog({ title: "Please wait", value: 50 });
Méthodes
setTitle
Définit le titre de la fenêtre.
Syntaxe
myObject.setTitle(title);
Arguments
- title - (string) le titre de la fenêtre
Renvoi
- (ProgressDialog) ce "ProgressDialog"
setPosition
Définit la position de la fenêtre.
Syntaxe
myObject.setPosition(point);
Arguments
- point - (Point) la position de la fenêtre
Renvoi
- (ProgressDialog) this ProgressDialog
setOpacity
Définit l'opacité de la fenêtre.
Syntaxe
myObject.setOpacity(opacity);
Arguments
- opacity - (float) l'opacité de la fenêtre
Renvoi
- (ProgressDialog) this ProgressDialog
setEnabled
Définit le statut d'activité de la fenêtre.
Syntaxe
myObject.setEnabled(enabled);
Arguments
- enabled - (boolean) le statut d'activité de la fenêtre
Renvoi
- (ProgressDialog) this ProgressDialog
setVisible
Définit le statut visible de la fenêtre.
Syntaxe
myObject.setVisible(visible);
Arguments
- visible - (boolean) le statut visible de la fenêtre
Renvoi
- (ProgressDialog) this ProgressDialog
close
Ferme la fenêtre.
Syntaxe
myObject.close();
Renvoi
- (ProgressDialog) this ProgressDialog
title
Renvoi le titre de la fenêtre.
Syntaxe
myObject.title();
Renvoi
- (string) le titre de la fenêtre
position
Renvoi la position de la fenêtre.
Syntaxe
myObject.position();
Renvoi
- (Point) the window's position
opacity
Renvoi l'opacité de la fenêtre.
Syntaxe
myObject.opacity();
Renvoi
- (float) l'opacité de la fenêtre
enabled
Renvoi le statut d'activité de la fenêtre.
Syntaxe
myObject.enabled();
Renvoi
- (boolean) le statut d'activité de la fenêtre
visible
Renvoi le statut visibilité de la fenêtre.
Syntaxe
myObject.visible();
Renvoi
- (boolean) le statut visibilité de la fenêtre
setValue
Définit la valeur de la progression.
Syntaxe
myObject.setValue(value);
Arguments
- value - (integer) la valeur de la progression
Renvoi
- (ProgressDialog) this ProgressDialog
setLabelText
Définit le label du texte.
Syntaxe
myObject.setLabelText(labelText);
Arguments
- labelText - (string) the label text
Renvoi
- (ProgressDialog) this ProgressDialog
setMinimum
Définit la valeur minimum.
Syntaxe
myObject.setMinimum(minimum);
Arguments
- minimum - (integer) the minimum value
Renvoi
- (ProgressDialog) this ProgressDialog
setMaximum
Sets the maximum value.
Syntaxe
myObject.setMaximum(maximum);
Arguments
- maximum - (integer) the maximum value
Renvoi
- (ProgressDialog) this ProgressDialog
setRange
Sets the minimum and maximum value.
Syntaxe
myObject.setRange(minimum, maximum);
Arguments
- minimum - (integer) the minimum value
- maximum - (integer) the maximum value
Renvoi
- (ProgressDialog) this ProgressDialog
show
Show the window. (non-blocking) Use the OnCanceled event to know when the window has been closed.
Syntaxe
myObject.show();
Renvoi
- (ProgressDialog) this ProgressDialog
showModal
Show the window. (blocking)
Syntaxe
myObject.showModal();
Renvoi
- (integer) the window result (0 means that it has been canceled)
Events
onCanceled
Called when the window is canceled.
Syntaxe
myObject.onCanceled = function() {};
Example
myObject.onCanceled = function() { //Event action };
Attributes
title
The window's title. (string)
position
The window's position. (Point)
opacity
The window's opacity. (float)
enabled
The window's enabled status. (boolean)
value
The progress bar's value. (integer)