Class Invoker

java.lang.Object
fr.istic.aco.editor.core.Invoker

public class Invoker extends Object
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 Details

    • Invoker

      public Invoker(Engine engine)
  • Method Details

    • setText

      public void setText(String text)
    • getText

      public String getText()
    • getBeginIndex

      public int getBeginIndex()
    • getEndIndex

      public int getEndIndex()
    • setBeginIndex

      public void setBeginIndex(int beginIndex)
    • setEndIndex

      public void setEndIndex(int endIndex)
    • getCommands

      public Map<String,Command> getCommands()
    • addCommand

      public void addCommand(String id, Command command)
    • playCommand

      public void playCommand(String id)
      calls the command corresponding to the id and execute it
      Parameters:
      id -