Interface Command
- All Known Subinterfaces:
CommandOriginator
- All Known Implementing Classes:
CopyTextCommand
,CutSelectedCommand
,DeleteTextCommand
,InsertTextCommand
,MoveSelection
,PasteTextCommand
,RedoCommand
,ReplayCommand
,StartCommand
,StopCommand
,UndoCommand
public interface Command
Represents a generic command in the text editor application.
Each command encapsulates a distinct action or operation that can be performed within the editor.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
execute()
Executes the encapsulated action defined by the command.
-
Method Details
-
execute
void execute()Executes the encapsulated action defined by the command. Each implementing class defines the specific behavior to be performed when this method is invoked.
-