Class InputCommand

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      abstract void execute()
      Executes the command
      abstract void executeUndo()
      Applies the reverse command
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • InputCommand

        public InputCommand​(TextComponent receiver)
        Creates new input command
        receiver - the component we delegate to for executing the action
    • Method Detail

      • execute

        public abstract void execute()
        Executes the command
      • executeUndo

        public abstract void executeUndo()
        Applies the reverse command