Class AppendTextCommand

java.lang.Object
de.calamanari.pk.command.InputCommand
de.calamanari.pk.command.AppendTextCommand

public class AppendTextCommand
extends InputCommand
Text Command - a concrete COMMAND.
Author:
Karl Eilebrecht
  • Constructor Summary

    Constructors
    Constructor Description
    AppendTextCommand​(TextComponent receiver, java.lang.String text)
    Creates new append text command for the given text.
  • Method Summary

    Modifier and Type Method Description
    void execute()
    Executes the command
    void executeUndo()
    Applies the reverse command

    Methods inherited from class java.lang.Object

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

    • AppendTextCommand

      public AppendTextCommand​(TextComponent receiver, java.lang.String text)
      Creates new append text command for the given text.
      Parameters:
      receiver - instance to execute the action
      text - string to be appended
  • Method Details