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 TypeMethodDescriptionvoidaddCommand(String id, Command command) intintgetText()voidplayCommand(String id) calls the command corresponding to the id and execute itvoidsetBeginIndex(int beginIndex) voidsetEndIndex(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-
-