Class HistoryBrowser.CommandNamesInfo

  • Enclosing class:
    HistoryBrowser

    public static class HistoryBrowser.CommandNamesInfo
    extends java.lang.Object
    Contains the info on the command name being executed, undone or redone and last undoable and redoable command names.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String commandName
      The command name being executed, undone or redone.
      private java.lang.String lastRedoableCommandName
      The name of the last redoable command in the history.
      private java.lang.String lastUndoableCommandName
      The name of the last undoable command in the history.
    • Constructor Summary

      Constructors 
      Constructor Description
      CommandNamesInfo​(java.lang.String commandName, java.lang.String lastUndoableCommandName, java.lang.String lastRedoableCommandName)
      Constructor.
    • Field Detail

      • lastUndoableCommandName

        private java.lang.String lastUndoableCommandName
        The name of the last undoable command in the history.
      • lastRedoableCommandName

        private java.lang.String lastRedoableCommandName
        The name of the last redoable command in the history.
      • commandName

        private java.lang.String commandName
        The command name being executed, undone or redone.
    • Constructor Detail

      • CommandNamesInfo

        public CommandNamesInfo​(java.lang.String commandName,
                                java.lang.String lastUndoableCommandName,
                                java.lang.String lastRedoableCommandName)
        Constructor.
        Parameters:
        commandName - The current command name being executed/undone/redone
        lastUndoableCommandName - The last undoable command name
        lastRedoableCommandName - The last redoable command name
    • Method Detail

      • getLastRedoableCommandName

        public java.lang.String getLastRedoableCommandName()
        Gets the name of the last undoable command.
        Returns:
        the lastUndoableCommandName
      • getLastUndoableCommandName

        public java.lang.String getLastUndoableCommandName()
        Gets the name of the last redoable command.
        Returns:
        the lastRedoableCommandName
      • getCommandName

        public java.lang.String getCommandName()
        Gets the command name.
        Returns:
        the command name