Class CodeAreaOperationCommandHandler

  • All Implemented Interfaces:
    org.exbin.bined.swing.CodeAreaCommandHandler

    @ParametersAreNonnullByDefault
    public class CodeAreaOperationCommandHandler
    extends java.lang.Object
    implements org.exbin.bined.swing.CodeAreaCommandHandler
    Command handler for undo/redo aware binary editor editing.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.exbin.bined.swing.CodeAreaCommandHandler

        org.exbin.bined.swing.CodeAreaCommandHandler.CodeAreaCommandHandlerFactory, org.exbin.bined.swing.CodeAreaCommandHandler.ScrollbarOrientation, org.exbin.bined.swing.CodeAreaCommandHandler.SelectingMode
    • Constructor Summary

      Constructors 
      Constructor Description
      CodeAreaOperationCommandHandler​(org.exbin.bined.swing.CodeAreaCore codeArea, org.exbin.bined.operation.undo.BinaryDataUndoHandler undoHandler)  
    • Constructor Detail

      • CodeAreaOperationCommandHandler

        public CodeAreaOperationCommandHandler​(org.exbin.bined.swing.CodeAreaCore codeArea,
                                               org.exbin.bined.operation.undo.BinaryDataUndoHandler undoHandler)
    • Method Detail

      • createDefaultCodeAreaCommandHandlerFactory

        @Nonnull
        public static org.exbin.bined.swing.CodeAreaCommandHandler.CodeAreaCommandHandlerFactory createDefaultCodeAreaCommandHandlerFactory()
      • undoSequenceBreak

        public void undoSequenceBreak()
        Specified by:
        undoSequenceBreak in interface org.exbin.bined.swing.CodeAreaCommandHandler
      • keyPressed

        public void keyPressed​(java.awt.event.KeyEvent keyEvent)
        Specified by:
        keyPressed in interface org.exbin.bined.swing.CodeAreaCommandHandler
      • keyTyped

        public void keyTyped​(java.awt.event.KeyEvent keyEvent)
        Specified by:
        keyTyped in interface org.exbin.bined.swing.CodeAreaCommandHandler
      • enterPressed

        public void enterPressed()
        Specified by:
        enterPressed in interface org.exbin.bined.swing.CodeAreaCommandHandler
      • backSpacePressed

        public void backSpacePressed()
        Specified by:
        backSpacePressed in interface org.exbin.bined.swing.CodeAreaCommandHandler
      • deletePressed

        public void deletePressed()
        Specified by:
        deletePressed in interface org.exbin.bined.swing.CodeAreaCommandHandler
      • delete

        public void delete()
        Specified by:
        delete in interface org.exbin.bined.swing.CodeAreaCommandHandler
      • copy

        public void copy()
        Specified by:
        copy in interface org.exbin.bined.swing.CodeAreaCommandHandler
      • copyAsCode

        public void copyAsCode()
        Specified by:
        copyAsCode in interface org.exbin.bined.swing.CodeAreaCommandHandler
      • cut

        public void cut()
        Specified by:
        cut in interface org.exbin.bined.swing.CodeAreaCommandHandler
      • paste

        public void paste()
        Specified by:
        paste in interface org.exbin.bined.swing.CodeAreaCommandHandler
      • pasteFromCode

        public void pasteFromCode()
        Specified by:
        pasteFromCode in interface org.exbin.bined.swing.CodeAreaCommandHandler
      • canPaste

        public boolean canPaste()
        Specified by:
        canPaste in interface org.exbin.bined.swing.CodeAreaCommandHandler
      • selectAll

        public void selectAll()
        Specified by:
        selectAll in interface org.exbin.bined.swing.CodeAreaCommandHandler
      • clearSelection

        public void clearSelection()
        Specified by:
        clearSelection in interface org.exbin.bined.swing.CodeAreaCommandHandler
      • updateSelection

        public void updateSelection​(org.exbin.bined.swing.CodeAreaCommandHandler.SelectingMode selectingMode,
                                    org.exbin.bined.CodeAreaCaretPosition caretPosition)
      • moveCaret

        public void moveCaret​(int positionX,
                              int positionY,
                              org.exbin.bined.swing.CodeAreaCommandHandler.SelectingMode selecting)
        Specified by:
        moveCaret in interface org.exbin.bined.swing.CodeAreaCommandHandler
      • move

        public void move​(org.exbin.bined.swing.CodeAreaCommandHandler.SelectingMode selectingMode,
                         org.exbin.bined.basic.MovementDirection direction)
      • scroll

        public void scroll​(org.exbin.bined.basic.ScrollingDirection direction)
      • wheelScroll

        public void wheelScroll​(int scrollSize,
                                org.exbin.bined.swing.CodeAreaCommandHandler.ScrollbarOrientation orientation)
        Specified by:
        wheelScroll in interface org.exbin.bined.swing.CodeAreaCommandHandler
      • getEnterKeyHandlingMode

        @Nonnull
        public org.exbin.bined.basic.EnterKeyHandlingMode getEnterKeyHandlingMode()
      • setEnterKeyHandlingMode

        public void setEnterKeyHandlingMode​(org.exbin.bined.basic.EnterKeyHandlingMode enterKeyHandlingMode)
      • isValidChar

        public boolean isValidChar​(char value)
      • checkEditAllowed

        public boolean checkEditAllowed()
        Specified by:
        checkEditAllowed in interface org.exbin.bined.swing.CodeAreaCommandHandler