Interface UndoManager.UndoAction

All Known Implementing Classes:
AbstractLayoutTool.ZOrderChangeUndoAction, AbstractResourceUndoAction, AbstractUndoAction, ComponentMoveResizeUndoAction, DynamicPropertyEditUndoAction, MultiBeanInfo.StaticValueSetUndoAction, PropertyBindingUndoAction, ResourceDeleteAction, ResourcePasteAction, UndoAddBlock, UndoAddComponents, UndoAddConnection, UndoAddElement, UndoConvertComponentToDrawing, UndoConvertPipesToDrawing, UndoConvertToContainer, UndoDeleteBlock, UndoDeleteComponents, UndoDeleteConnection, UndoDeleteElement, UndoEventConfigChange, UndoGroup, UndoMoveBlocks, UndoMoveElements, UndoPagesConfig, UndoPosition, UndoPropConfigChange, UndoRemoveProperty, UndoRenameProperty, UndoReorderChildren, UndoReplace, UndoRotation, UndoScriptConfigChange, UndoUngroup, UndoWrapComponent, UndoWriteProperty, WindowResizeUndoAction
Enclosing class:
UndoManager

public static interface UndoManager.UndoAction
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    This function executes (redoes) the action
    The description of the action will be used to determine grouping equality as well as for display purposes.
    boolean
    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
    This function will reverse the action
  • Method Details

    • getDescription

      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.