Using the Command Pattern to Decentralize Control
An Introduction with Examples in Java
|
Prof. David Bernstein
James Madison University
|
|
Computer Science Department
|
bernstdh@jmu.edu
|
An Implementation of the Noncohesive Design
javaexamples/action/notcohesive/TextEditorApplication.java
An Implementation with Centralized Control
javaexamples/action/TextEditor.java
An Implementation with Centralized Control (cont.)
javaexamples/action/centralizedcontrol/TextEditorGUI.java
An Implementation with Decentralized Control (cont.)
javaexamples/action/EditorAction.java
An Implementation with Decentralized Control (cont.)
javaexamples/action/CopyAction.java
An Implementation with Decentralized Control (cont.)
javaexamples/action/CutAction.java
An Implementation with Decentralized Control (cont.)
javaexamples/action/PasteAction.java
An Implementation with Decentralized Control (cont.)
javaexamples/action/TextEditorGUI.java
There's Always More to Learn