Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente |
helloworld:design_pattern:command [2020/02/09 22:16] – mhtml -> html root | helloworld:design_pattern:command [2020/05/10 23:46] (Version actuelle) – Suppression de la taille par défaut pour les images root |
---|
Le pattern command permet d'exécuter une commande en fonction des instructions reçues. Un switch est un pattern command. Un dictionnaire contenant comme clé le nom de la méthode et en valeur une instance qui permet l'exécution de la méthode est aussi un pattern command. | Le pattern command permet d'exécuter une commande en fonction des instructions reçues. Un switch est un pattern command. Un dictionnaire contenant comme clé le nom de la méthode et en valeur une instance qui permet l'exécution de la méthode est aussi un pattern command. |
| |
{{:helloworld:design_pattern:command:command-pattern-uml.gif.png?646|UML commande}} | {{:helloworld:design_pattern:command:command-pattern-uml.gif.png|UML commande}} |
| |
[[http://fuzzduck.com/Design-Patterns/Command-Pattern.php|Command Pattern]] {{ :helloworld:design_pattern:command:command_pattern_-_read_about_the_command_pattern_2020-02-09_22_16_15_.html |Archive le 09/02/2020}} | [[http://fuzzduck.com/Design-Patterns/Command-Pattern.php|Command Pattern]] {{ :helloworld:design_pattern:command:command_pattern_-_read_about_the_command_pattern_2020-02-09_22_16_15_.html |Archive le 09/02/2020}} |
| |
| Exemple simple en [[:helloworld:design_pattern:command:java|Java]] |
| |
Exemple avec un [[:helloworld:design_pattern:command:undomanager|UndoManager]]. | Exemple avec un [[:helloworld:design_pattern:command:undomanager|UndoManager]]. |