Interface UndoManager.UndoAction

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean execute()
      This function executes (redoes) the action
      java.lang.String getDescription()
      The description of the action will be used to determine grouping equality as well as for display purposes.
      boolean isGroupSequenceIndependent()
      This function should return true if a group of these actions can be undone by ONLY calling undo() on the first action in the group, and redone by ONLY calling execute() on the last action in the group.
      boolean undo()
      This function will reverse the action
    • Method Detail

      • getDescription

        java.lang.String getDescription()
        The description of the action will be used to determine grouping equality as well as for display purposes.
      • undo

        boolean undo()
        This function will reverse the action
        Returns:
        false if the undo failed
      • execute

        boolean execute()
        This function executes (redoes) the action
        Returns:
        false if the execution failed
      • isGroupSequenceIndependent

        boolean isGroupSequenceIndependent()
        This function should return true if a group of these actions can be undone by ONLY calling undo() on the first action in the group, and redone by ONLY calling execute() on the last action in the group.