Outils pour utilisateurs

Outils du site


fr:code:windows:inputdialog

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Prochaine révision
Révision précédente
fr:code:windows:inputdialog [2012/04/26 15:18] – créée wismerhealfr:code:windows:inputdialog [2021/02/13 11:23] (Version actuelle) – modification externe 127.0.0.1
Ligne 1: Ligne 1:
 ====== InputDialog [En cours de Traduction Wismerheal][WSL] ====== ====== InputDialog [En cours de Traduction Wismerheal][WSL] ======
-This object represents a window asking the user to enter data.+Cet object représente une fenêtre demandant à l'utilisateur d'entrer des données.
  
-===== Functions =====+===== Fonctions =====
  
 ==== InputDialog ==== ==== InputDialog ====
-Constructor function.+Fonction de construction.
  
-=== Syntax ===+=== Syntaxe ===
 <code javascript> <code javascript>
 var myObject = new InputDialog(); var myObject = new InputDialog();
Ligne 16: Ligne 16:
  
 === Arguments === === Arguments ===
-  - parameters - (object) window parameters +  - parameters - (object) paramètres de fenêtre 
-    * title - (string) the window's title +    * title - (string) le titre de la fenêtre 
-    * position - ([[en:code:core:point|Point]]) the window'position +    * position - ([[en:code:core:point|Point]]) la position de la fenêtre 
-    * opacity - (float) the window's opacity +    * opacity - (float) l'opacité de la fenêtre 
-    * enabled - (boolean) the window's enabled status +    * enabled - (boolean) le statut d'activation de la fenêtre 
-    * visible - (boolean) the window'visible status +    * visible - (boolean) le statut de la fenêtre visible 
-    * labelText - (string) the label text +    * labelText - (string) le label de texte 
-    * okButtonText - (string) the text of the ok button +    * okButtonText - (string) le texte du bouton OK 
-    * cancelButtonText - (string) the text of the cancel button +    * cancelButtonText - (string) le texte du bouton ANNULER 
-    * textEchoMode - ([[#textechomode|TextEchoMode]]) the text echo mode +    * textEchoMode - ([[#textechomode|TextEchoMode]]) le texte du mode "echo" 
-    * floatDecimals - (integer) the number of decimals +    * floatDecimals - (integer) le nombre de décimales 
-    * integerStep - (integer) the integer step +    * integerStep - (integer) the integer step (l'étape définissant un entier) 
-    * minimum - (mixed) the minimum value +    * minimum - (mixed) la valeur minimum 
-    * maximum - (mixed) the maximum value +    * maximum - (mixed) la valeur maximum 
-    * range - (object) the range +    * range - (object) la portée 
-      * minimum - (mixed) the minimum value +      * minimum - (mixed) la valeur minimum 
-      * maximum - (mixed) the maximum value +      * maximum - (mixed) la valeur maximum 
-    * inputType - ([[#inputtype|InputType]]) the input type +    * inputType - ([[#inputtype|InputType]]) le type d'entrée 
-    * value - (mixed) the default value +    * value - (mixed) la valeur par défaut 
-    * items - (array) the items (used when asking an item from a list+    * items - (array) les éléments (utilisé quand on demande un élément d'une liste
-    * itemsEditable - (boolean) are the items from the list editable +    * itemsEditable - (boolean) sont des éléments en provenance d'une liste éditable 
-    * onClosed - ([[#onclosed|OnClosed]]) event called when the window is closed +    * onClosed - ([[#onclosed|OnClosed]]) évènement appelé quand la fenêtre est fermée 
-    * onValueChanged - ([[#onvaluechanged|OnValueChanged]]) event called when the value changes+    * onValueChanged - ([[#onvaluechanged|OnValueChanged]]) évènement appelé quand la valeur est changée
  
 === Exceptions === === Exceptions ===
-  * (ParameterTypeError) incorrect parameter type +  * (ParameterTypeError) type de paramètre incorrect 
-  * (ParameterCountError) incorrect parameter count+  * (ParameterCountError) paramètre de compteur incorrect
  
 === Example === === Example ===
Ligne 55: Ligne 55:
 </code> </code>
  
-===== Methods =====+===== Méthodes =====
  
 ==== setTitle ==== ==== setTitle ====
-Sets the window's title.+Définit le titre de la fenêtre
  
-=== Syntax ===+=== Syntaxe ===
 <code javascript> <code javascript>
 myObject.setTitle(title); myObject.setTitle(title);
Ligne 66: Ligne 66:
  
 === Arguments === === Arguments ===
-  - title - (string) the window's title+  - title - (string) le titre de la fenêtre
  
-=== Returns === +=== Renvoi === 
-  * (InputDialog) this InputDialog+  * (InputDialog) ce "InputDialog" (dialog d'entrée)
  
 ==== setPosition ==== ==== setPosition ====
-Sets the window'position.+Définit la position de la fenêtre
  
-=== Syntax ===+=== Syntaxe ===
 <code javascript> <code javascript>
 myObject.setPosition(point); myObject.setPosition(point);
Ligne 80: Ligne 80:
  
 === Arguments === === Arguments ===
-  - point - ([[en:code:core:point|Point]]) the window'position+  - point - ([[en:code:core:point|Point]]) la position de la fenêtre
  
-=== Returns === +=== Renvoi === 
-  * (InputDialog) this InputDialog+  * (InputDialog) ce "InputDialog" (dialog d'entrée)
  
 ==== setOpacity ==== ==== setOpacity ====
-Sets the window's opacity.+Définit l'opacité de la fenêtre
  
-=== Syntax ===+=== Syntaxe ===
 <code javascript> <code javascript>
 myObject.setOpacity(opacity); myObject.setOpacity(opacity);
Ligne 94: Ligne 94:
  
 === Arguments === === Arguments ===
-  - opacity - (float) the window's opacity+  - opacity - (float) l'opacité de la fenêtre
  
-=== Returns === +=== Renvoi === 
-  * (InputDialog) this InputDialog+  * (InputDialog) ce "InputDialog" (dialog d'entrée)
  
 ==== setEnabled ==== ==== setEnabled ====
-Sets the window's enabled status.+Définit le statut d'activité de la fenêtre
  
 === Syntax === === Syntax ===
Ligne 108: Ligne 108:
  
 === Arguments === === Arguments ===
-  - enabled - (boolean) the window's enabled status+  - enabled - (boolean) le statut d'activité de la fenêtre
  
-=== Returns === +=== Renvoi === 
-  * (InputDialog) this InputDialog+  * (InputDialog) ce "InputDialog" (dialog d'entrée)
  
 ==== setVisible ==== ==== setVisible ====
-Sets the window'visible status.+Définit le statut visible de la fenêtre
  
-=== Syntax ===+=== Syntaxe ===
 <code javascript> <code javascript>
 myObject.setVisible(visible); myObject.setVisible(visible);
Ligne 122: Ligne 122:
  
 === Arguments === === Arguments ===
-  - visible - (boolean) the window'visible status+  - visible - (boolean) le statut visible de la fenêtre
  
-=== Returns === +=== Renvoi === 
-  * (InputDialog) this InputDialog+  * (InputDialog) ce "InputDialog" (dialog d'entrée)
  
 ==== close ==== ==== close ====
-Closes the window.+Ferme la fenêtre
  
-=== Syntax ===+=== Syntaxe ===
 <code javascript> <code javascript>
 myObject.close(); myObject.close();
 </code> </code>
  
-=== Returns === +=== Renvoi === 
-  * (InputDialog) this InputDialog+  * (InputDialog) ce "InputDialog" (dialog d'entrée)
  
 ==== title ==== ==== title ====
-Returns the window's title.+Renvoi le titre de la fenêtre
  
-=== Syntax ===+=== Syntaxe ===
 <code javascript> <code javascript>
 myObject.title(); myObject.title();
 </code> </code>
  
-=== Returns === +=== Renvoi === 
-  * (string) the window's title+  * (string) le titre de la fenêtre
  
 ==== position ==== ==== position ====
-Returns the window'position.+Renvoi la position de la fenêtre
  
-=== Syntax ===+=== Syntaxe ===
 <code javascript> <code javascript>
 myObject.position(); myObject.position();
 </code> </code>
  
-=== Returns === +=== Renvoi === 
-  * ([[en:code:core:point|Point]]) the window'position+  * ([[en:code:core:point|Point]]) la position de la fenêtre
  
 ==== opacity ==== ==== opacity ====
-Returns the window's opacity.+Renvoi l'opacité de la fenêtre
  
-=== Syntax ===+=== Syntaxe ===
 <code javascript> <code javascript>
 myObject.opacity(); myObject.opacity();
 </code> </code>
  
-=== Returns === +=== Renvoi === 
-  * (float) the window's opacity+  * (float) l'opacité de la fenêtre
  
 ==== enabled ==== ==== enabled ====
-Returns the window's enabled status.+Renvoi le statut d'activité de la fenêtre
  
-=== Syntax ===+=== Syntaxe ===
 <code javascript> <code javascript>
 myObject.enabled(); myObject.enabled();
 </code> </code>
  
-=== Returns === +=== Renvoi === 
-  * (boolean) the window's enabled status+  * (boolean) le statut d'activité de la fenêtre
  
 ==== visible ==== ==== visible ====
-Returns the window'visible status.+Renvoi le statut visible de la fenêtre
  
-=== Syntax ===+=== Syntaxe ===
 <code javascript> <code javascript>
 myObject.visible(); myObject.visible();
 </code> </code>
  
-=== Returns === +=== Renvoi === 
-  * (boolean) the window'visible status+  * (boolean) le statut visible de la fenêtre
  
 ==== setLabelText ==== ==== setLabelText ====
-Sets the label text.+Définit le label de texte.
  
-=== Syntax ===+=== Syntaxe ===
 <code javascript> <code javascript>
 myObject.setLabelText(text); myObject.setLabelText(text);
Ligne 202: Ligne 202:
  
 === Arguments === === Arguments ===
-  - text - (string) the label text+  - text - (string) le label de texte
  
-=== Returns === +=== Renvoi === 
-  * (InputDialog) this InputDialog+  * (InputDialog) ce "InputDialog" (dialog d'entrée)
  
 ==== setOkButtonText ==== ==== setOkButtonText ====
-Sets the ok button text.+Définit le texte du bouton OK.
  
-=== Syntax ===+=== Syntaxe ===
 <code javascript> <code javascript>
 myObject.setLabelText(text); myObject.setLabelText(text);
Ligne 216: Ligne 216:
  
 === Arguments === === Arguments ===
-  - text - (string) the ok button'label+  - text - (string) le label du bouton OK
  
-=== Returns === +=== Renvoi === 
-  * (InputDialog) this InputDialog+  * (InputDialog) ce "InputDialog" (dialog d'entrée)
  
 ==== setCancelButtonText ==== ==== setCancelButtonText ====
-Sets the cancel button text.+Définit le texte du bouton ANNULER.
  
-=== Syntax ===+=== Syntaxe ===
 <code javascript> <code javascript>
 myObject.setCancelButtonText(text); myObject.setCancelButtonText(text);
Ligne 230: Ligne 230:
  
 === Arguments === === Arguments ===
-  - text - (string) the cancel button'label+  - text - (string) le label du bouton ANNULER
  
-=== Returns === +=== Renvoi === 
-  * (InputDialog) this InputDialog+  * (InputDialog) ce "InputDialog" (dialog d'entrée)
  
 ==== setTextEchoMode ==== ==== setTextEchoMode ====
-Sets the text echo mode.+Définit le texte du mode "echo". 
 + 
 +=== Syntaxe ===
  
-=== Syntax === 
 <code javascript> <code javascript>
 myObject.setTextEchoMode(textEchoMode); myObject.setTextEchoMode(textEchoMode);
Ligne 244: Ligne 245:
  
 === Arguments === === Arguments ===
-  - textEchoMode - ([[#textechomode|TextEchoMode]]) the text echo mode+  - textEchoMode - ([[#textechomode|TextEchoMode]]) le texte du mode "echo"
  
-=== Returns === +=== Renvoi === 
-  * (InputDialog) this InputDialog+  * (InputDialog) ce "InputDialog" (dialog d'entrée)
  
 ==== setFloatDecimals ==== ==== setFloatDecimals ====
-Sets the number of decimals of floating values.+Définit le nombre de décimales des valeurs à virgule (floating values).
  
-=== Syntax ===+=== Syntaxe ===
 <code javascript> <code javascript>
 myObject.setFloatDecimals(decimals); myObject.setFloatDecimals(decimals);
Ligne 258: Ligne 259:
  
 === Arguments === === Arguments ===
-  - decimals - (integer) the number of decimals of floating values+  - decimals - (integer) le nombre de décimales des valeurs à virgule (floating values)
  
-=== Returns === +=== Renvoi === 
-  * (InputDialog) this InputDialog+  * (InputDialog) ce "InputDialog" (dialog d'entrée)
  
 ==== setIntegerStep ==== ==== setIntegerStep ====
-Sets the integer step value.+Définit l'étape d'une valeur "integer" (entier)
  
-=== Syntax ===+=== Syntaxe ===
 <code javascript> <code javascript>
 myObject.setIntegerStep(step); myObject.setIntegerStep(step);
Ligne 272: Ligne 273:
  
 === Arguments === === Arguments ===
-  - step - (integer) the integer step value+  - step - (integer) l'étape d'une valeur "integer" (entier)
  
-=== Returns === +=== Renvoi === 
-  * (InputDialog) this InputDialog+  * (InputDialog) ce "InputDialog" (dialog d'entrée)
  
 ==== setMaximum ==== ==== setMaximum ====
-Sets the maximum value.+Définit la valeur maximum.
  
-=== Syntax ===+=== Syntaxe ===
 <code javascript> <code javascript>
 myObject.setMaximum(maximum); myObject.setMaximum(maximum);
Ligne 286: Ligne 287:
  
 === Arguments === === Arguments ===
-  - maximum - (mixed) the maximum value+  - maximum - (mixed) la valeur maximum
  
-=== Returns === +=== Renvoi === 
-  * (InputDialog) this InputDialog+  * (InputDialog) ce "InputDialog" (dialog d'entrée)
  
 ==== setMinimum ==== ==== setMinimum ====
-Sets the minimum value.+Définit la valeur minimum.
  
-=== Syntax ===+=== Syntaxe ===
 <code javascript> <code javascript>
 myObject.setMinimum(minimum); myObject.setMinimum(minimum);
Ligne 300: Ligne 301:
  
 === Arguments === === Arguments ===
-  - minimum - (mixed) the minimum value+  - minimum - (mixed) la valeur mimimum
  
-=== Returns === +=== Renvoi === 
-  * (InputDialog) this InputDialog+  * (InputDialog) ce "InputDialog" (dialog d'entrée)
  
 ==== setRange ==== ==== setRange ====
-Sets the minimum and maximum values.+Définit les valeurs minimum et maximum.
  
-=== Syntax ===+=== Syntaxe ===
 <code javascript> <code javascript>
 myObject.setRange(minimum, maximum); myObject.setRange(minimum, maximum);
Ligne 314: Ligne 315:
  
 === Arguments === === Arguments ===
-  - minimum - (mixed) the minimum value +  - minimum - (mixed) la valeur minimum 
-  - maximum - (mixed) the maximum value+  - maximum - (mixed) la valeur maximum
  
-=== Returns === +=== Renvoi === 
-  * (InputDialog) this InputDialog+  * (InputDialog) ce "InputDialog" (dialog d'entrée)
  
 ==== setInputType ==== ==== setInputType ====
-Sets the input type.+Définit le type d'entrée.
  
-=== Syntax ===+=== Syntaxe ===
 <code javascript> <code javascript>
 myObject.setRange(inputType); myObject.setRange(inputType);
Ligne 329: Ligne 330:
  
 === Arguments === === Arguments ===
-  - inputType - ([[#inputtype|InputType]]) the input type+  - inputType - ([[#inputtype|InputType]]) le type d'entrée
  
-=== Returns === +=== Renvoi === 
-  * (InputDialog) this InputDialog+  * (InputDialog) ce "InputDialog" (dialog d'entrée)
  
 ==== setValue ==== ==== setValue ====
-Sets the value.+Définit la valeur.
  
-=== Syntax ===+=== Syntaxe ===
 <code javascript> <code javascript>
 myObject.setValue(value); myObject.setValue(value);
Ligne 343: Ligne 344:
  
 === Arguments === === Arguments ===
-  - value - (mixed) the value+  - value - (mixed) la valeur
  
-=== Returns === +=== Renvois === 
-  * (InputDialog) this InputDialog+  * (InputDialog) ce "InputDialog" (dialog d'entrée)
  
 ==== setItems ==== ==== setItems ====
-Sets the items that can be choosen from.+Définit les éléments à partir desquels le choix peut être fait.
  
-=== Syntax ===+=== Syntaxe ===
 <code javascript> <code javascript>
 myObject.setItems(items); myObject.setItems(items);
Ligne 357: Ligne 358:
  
 === Arguments === === Arguments ===
-  - items - (array) the items that can be choosen from+  - items - (array) les éléments à partir desquels le choix peut être fait
  
-=== Returns === +=== Renvoi === 
-  * (InputDialog) this InputDialog+  * (InputDialog) ce "InputDialog" (dialog d'entrée)
  
 ==== setItemsEditable ==== ==== setItemsEditable ====
-Sets the items as editable.+Définit les éléments comme éditables.
  
-=== Syntax ===+=== Syntaxe ===
 <code javascript> <code javascript>
 myObject.setItemsEditable(itemsEditable); myObject.setItemsEditable(itemsEditable);
Ligne 371: Ligne 372:
  
 === Arguments === === Arguments ===
-  - itemsEditable - (boolean) should the item list be editable+  - itemsEditable - (boolean) la liste des éléments doit-elle être éditable
  
-=== Returns === +=== Renvoi === 
-  * (InputDialog) this InputDialog+  * (InputDialog) ce "InputDialog" (dialog d'entrée)
  
-==== value ==== +==== valeur ==== 
-Returns the value.+Renvoi la valeur.
  
-=== Syntax ===+=== Syntaxe ===
 <code javascript> <code javascript>
 myObject.value(); myObject.value();
 </code> </code>
  
-=== Returns === +=== Renvoi === 
-  * (mixed) the value+  * (mixed) la valeur
  
 ==== show ==== ==== show ====
-Show the window. (non-blocking+Affiche la fenêtre. (non-bloquant
-Use the [[#onclosed|OnClosed]] event to know when the window has been closed.+Utilise l'évènement [[#onclosed|OnClosed]] pour savoir quand la fenêtre a été fermé.
  
-=== Syntax ===+=== Syntaxe ===
 <code javascript> <code javascript>
 myObject.show(); myObject.show();
 </code> </code>
  
-=== Returns === +=== Renvoi === 
-  * (InputDialog) this InputDialog+  * (InputDialog) ce "InputDialog" (dialog d'entrée)
  
 ==== showModal ==== ==== showModal ====
-Show the window. (blocking)+Affiche la fenêtre. (bloquant)
  
-=== Syntax ===+=== Syntaxe ===
 <code javascript> <code javascript>
 myObject.showModal(); myObject.showModal();
 </code> </code>
  
-=== Returns === +=== Renvoi === 
-  * (integer) the window result (0 means that it has been canceled)+  * (integer) le résultat de la fenêtre (0 signifie que cela a été annulé)
  
-===== Events =====+===== Evènements =====
  
 ==== onClosed ==== ==== onClosed ====
-Called when the window is closed.+Appelé quand la fenêtre est fermée
  
-=== Syntax ===+=== Syntaxe ===
 <code javascript> <code javascript>
 myObject.onClosed = function(result) {}; myObject.onClosed = function(result) {};
Ligne 421: Ligne 422:
  
 === Arguments === === Arguments ===
-  - result - (integer) the window result (0 means that it has been canceled)+  - result - (integer) le résultat de la fenêtre (0 signifie que cela a été annulé)
  
 === Example === === Example ===
Ligne 435: Ligne 436:
  
 ==== onValueChanged ==== ==== onValueChanged ====
-Called when the value changes.+Appelé quand la valeur change
  
-=== Syntax ===+=== Syntaxe ===
 <code javascript> <code javascript>
 myObject.onValueChanged = function(value) {}; myObject.onValueChanged = function(value) {};
Ligne 453: Ligne 454:
 </code> </code>
  
-===== Attributes =====+===== Attributs =====
  
 ==== title ==== ==== title ====
-The window's title. (string)+Le titre de la fenêtre. (string)
  
 ==== position ==== ==== position ====
-The window'position. ([[en:code:core:point|Point]])+La position de la fenêtre. ([[en:code:core:point|Point]])
  
 ==== opacity ==== ==== opacity ====
-The window's opacity. (float)+L'opacité de la fenêtre. (float)
  
 ==== enabled ==== ==== enabled ====
-The window's enabled status. (boolean)+Le statut d’activité de la fenêtre. (boolean)
  
 ==== visible ==== ==== visible ====
-The window's visible status. (boolean)+Le statut de visibilité de la fenêtre. (boolean)
  
 ==== value ==== ==== value ====
-The window's value. (mixed)+La valeur de la fenêtre. (mixed)
  
 ===== Enumerations ===== ===== Enumerations =====
  
 ==== InputType ==== ==== InputType ====
-The input type.+LE type d'entrée.
  
-=== Values === +=== Valeurs === 
-  Text: text +  Text: texte 
-  Integer: an integer +  Integer: un entier 
-  Float: a floating number (decimal+  Float: un nombre flottant (à décimale
-  Items: a list of items+  Items: une liste déléments
  
 ==== TextEchoMode ==== ==== TextEchoMode ====
-The text echo mode.+Le mode "text echo".
  
-=== Values === +=== Valeurs === 
-  Normal: normal text display +  Normal: affichage normal de texte 
-  NoEcho: do not show the text +  NoEcho: n'affiche pas de texte 
-  Password: show password characters instead of the typed characters +  Password: affiche des caractères de mot de passe à la place des caractères entrés. 
-  PasswordEchoOnEdit: show password characters instead of the typed characters only when editing+  PasswordEchoOnEdit: affiche des caractères de mot de passe à la place des caractères entrés seulement en édition.
fr/code/windows/inputdialog.1335453487.txt.gz · Dernière modification : 2021/02/13 11:23 (modification externe)