Class Invoker
java.lang.Object
fr.istic.aco.editor.core.Invoker
The Invoker class is responsible for managing commands and executing them.
It holds a map of commands identified by a string ID, and it interacts with the Engine to manipulate text.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addCommand
(String id, Command command) int
int
getText()
void
playCommand
(String id) calls the command corresponding to the id and execute itvoid
setBeginIndex
(int beginIndex) void
setEndIndex
(int endIndex) void
-
Constructor Details
-
Invoker
-
-
Method Details
-
setText
-
getText
-
getBeginIndex
public int getBeginIndex() -
getEndIndex
public int getEndIndex() -
setBeginIndex
public void setBeginIndex(int beginIndex) -
setEndIndex
public void setEndIndex(int endIndex) -
getCommands
-
addCommand
-
playCommand
calls the command corresponding to the id and execute it- Parameters:
id
-
-