All Classes and Interfaces

Class
Description
Represents a generic command in the text editor application.
interface CommandOriginator
 
The CopyTextCommand class implements the functionality for copying the currently selected text into the clipboard.
The CutSelectedCommand class implements the functionality for cutting the currently selected text into the clipboard.
The DeleteTextCommand class implements the functionality for deleting the currently selected text.
Main API for the text editing engine
This class represents an implementation of the Engine interface, which controls the main editing operations of a text editor such as insert, delete, cut, copy, and paste.
Memento to save the states of the engine.
Memento to save the text of the insert commands.
 
The InsertTextCommand class implements the functionality for inserting a string in the buffer, which replaces the contents of the selection
The Invoker class is responsible for managing commands and executing them.
 
A common interface to remember states of different objects
The MoveSelection class implements the functionality for selecting the text within the interval
 
The Originator interface defines methods for managing the state of an object.
A generic Pair class that holds two related objects, one of type F (first) and the other of type S (second).
The PasteTextCommand class implements the functionality for replacing the currently selected text with the contents of the clipboard.
The Recorder class is responsible for recording, saving, and replaying commands.
 
The RedoCommand class implements the functionality for redoing the last undone action in the text editor.
The ReplayCommand class implements the functionality for replaying a sequence of previously recorded commands.
Provides access to selection control operations
Provides access to selection control operations
Memento to save the parameters of MoveSelection Commands.
The StartCommand class implements the functionality for starting the recording of commands.
The StopCommand class implements the functionality for stopping the recording of commands.
The RedoCommand class implements the functionality for undoing the last performed action in the text editor.
The UndoManager class is responsible for managing the undo and redo operations.
 
Mainn class to run the editor