Class BinaryCompoundCommand

  • All Implemented Interfaces:
    org.exbin.bined.operation.BinaryDataCommand, org.exbin.bined.operation.BinaryDataCompoundCommand

    @ParametersAreNonnullByDefault
    public class BinaryCompoundCommand
    extends CodeAreaCommand
    implements org.exbin.bined.operation.BinaryDataCompoundCommand
    Class for compound command on binary document.
    • Constructor Detail

      • BinaryCompoundCommand

        public BinaryCompoundCommand​(@Nonnull
                                     org.exbin.bined.swing.CodeAreaCore codeArea)
    • Method Detail

      • buildCompoundCommand

        public static CodeAreaCommand buildCompoundCommand​(org.exbin.bined.swing.CodeAreaCore codeArea,
                                                           CodeAreaCommand... commands)
      • execute

        public void execute()
                     throws org.exbin.bined.operation.BinaryDataOperationException
        Specified by:
        execute in interface org.exbin.bined.operation.BinaryDataCommand
        Overrides:
        execute in class org.exbin.bined.operation.BinaryDataAbstractCommand
        Throws:
        org.exbin.bined.operation.BinaryDataOperationException
      • redo

        public void redo()
                  throws org.exbin.bined.operation.BinaryDataOperationException
        Specified by:
        redo in interface org.exbin.bined.operation.BinaryDataCommand
        Throws:
        org.exbin.bined.operation.BinaryDataOperationException
      • undo

        public void undo()
                  throws org.exbin.bined.operation.BinaryDataOperationException
        Specified by:
        undo in interface org.exbin.bined.operation.BinaryDataCommand
        Throws:
        org.exbin.bined.operation.BinaryDataOperationException
      • canUndo

        public boolean canUndo()
        Specified by:
        canUndo in interface org.exbin.bined.operation.BinaryDataCommand
      • appendCommand

        public void appendCommand​(org.exbin.bined.operation.BinaryDataCommand command)
        Specified by:
        appendCommand in interface org.exbin.bined.operation.BinaryDataCompoundCommand
      • appendCommands

        public void appendCommands​(java.util.Collection<org.exbin.bined.operation.BinaryDataCommand> commands)
        Specified by:
        appendCommands in interface org.exbin.bined.operation.BinaryDataCompoundCommand
      • getCommands

        @Nonnull
        public java.util.List<org.exbin.bined.operation.BinaryDataCommand> getCommands()
        Specified by:
        getCommands in interface org.exbin.bined.operation.BinaryDataCompoundCommand
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface org.exbin.bined.operation.BinaryDataCompoundCommand
      • dispose

        public void dispose()
                     throws org.exbin.bined.operation.BinaryDataOperationException
        Specified by:
        dispose in interface org.exbin.bined.operation.BinaryDataCommand
        Overrides:
        dispose in class org.exbin.bined.operation.BinaryDataAbstractCommand
        Throws:
        org.exbin.bined.operation.BinaryDataOperationException