org.crsh.console
Class EditorAction

java.lang.Object
  extended by org.crsh.console.EditorAction
Direct Known Subclasses:
EditorAction.ChangeChars, EditorAction.Copy, EditorAction.DeleteNextChars, EditorAction.History, EditorAction.InsertKey, EditorAction.MoveNextWord, EditorAction.MovePrevWord, Mode

 class EditorAction
extends Object

An action on the editor.


Nested Class Summary
(package private) static class EditorAction.ChangeChars
           
(package private) static class EditorAction.Copy
           
(package private) static class EditorAction.DeleteNextChars
           
static class EditorAction.History
           
(package private) static class EditorAction.InsertKey
           
(package private) static class EditorAction.MoveNextWord
           
(package private) static class EditorAction.MovePrevWord
           
 
Field Summary
(package private) static EditorAction CHANGE_CASE
           
(package private) static EditorAction CLS
           
(package private) static EditorAction COMPLETE
           
(package private) static EditorAction COPY
           
(package private) static EditorAction COPY_BEGINNING_OF_LINE
           
(package private) static EditorAction COPY_END_OF_LINE
           
(package private) static EditorAction COPY_NEXT_WORD
           
(package private) static EditorAction COPY_PREV_WORD
           
(package private) static EditorAction DELETE_BEGINNING
           
(package private) static EditorAction DELETE_END
           
(package private) static EditorAction DELETE_LINE
           
(package private) static EditorAction DELETE_NEXT_CHAR
           
(package private) static EditorAction DELETE_NEXT_WORD
           
(package private) static EditorAction DELETE_PREV_CHAR
           
(package private) static EditorAction DELETE_PREV_WORD
           
(package private) static EditorAction DELETE_UNTIL_NEXT_WORD
           
(package private) static EditorAction ENTER
           
(package private) static EditorAction EOF_MAYBE
           
(package private) static EditorAction HISTORY_FIRST
           
(package private) static EditorAction HISTORY_LAST
           
(package private) static EditorAction HISTORY_NEXT
           
(package private) static EditorAction HISTORY_PREV
           
(package private) static EditorAction INSERT_COMMENT
           
(package private) static EditorAction INTERRUPT
           
(package private) static EditorAction LEFT
           
(package private) static EditorAction MOVE_BEGINNING
           
(package private) static EditorAction MOVE_END
           
(package private) static EditorAction MOVE_NEXT_WORD_AFTER_END
           
(package private) static EditorAction MOVE_NEXT_WORD_AT_BEGINNING
           
(package private) static EditorAction MOVE_NEXT_WORD_BEFORE_END
           
(package private) static EditorAction MOVE_PREV_WORD_AT_BEGINNING
           
(package private) static EditorAction MOVE_PREV_WORD_AT_END
           
(package private) static EditorAction PASTE_AFTER
           
(package private) static EditorAction RIGHT
           
(package private) static EditorAction TRANSPOSE_CHARS
           
(package private) static EditorAction UNIX_LINE_DISCARD
           
 
Constructor Summary
EditorAction()
           
 
Method Summary
(package private)  String execute(Editor editor, EditorBuffer buffer, int[] sequence, boolean flush)
           
(package private)  void perform(Editor editor, EditorBuffer buffer)
           
 EditorAction repeat(int count)
           
 EditorAction then(EditorAction action)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMPLETE

static EditorAction COMPLETE

INTERRUPT

static EditorAction INTERRUPT

EOF_MAYBE

static EditorAction EOF_MAYBE

HISTORY_FIRST

static EditorAction HISTORY_FIRST

HISTORY_LAST

static EditorAction HISTORY_LAST

HISTORY_PREV

static EditorAction HISTORY_PREV

HISTORY_NEXT

static EditorAction HISTORY_NEXT

LEFT

static EditorAction LEFT

RIGHT

static EditorAction RIGHT

MOVE_BEGINNING

static EditorAction MOVE_BEGINNING

MOVE_PREV_WORD_AT_BEGINNING

static EditorAction MOVE_PREV_WORD_AT_BEGINNING

MOVE_PREV_WORD_AT_END

static EditorAction MOVE_PREV_WORD_AT_END

MOVE_NEXT_WORD_AT_BEGINNING

static EditorAction MOVE_NEXT_WORD_AT_BEGINNING

MOVE_NEXT_WORD_AFTER_END

static EditorAction MOVE_NEXT_WORD_AFTER_END

MOVE_NEXT_WORD_BEFORE_END

static EditorAction MOVE_NEXT_WORD_BEFORE_END

DELETE_PREV_WORD

static EditorAction DELETE_PREV_WORD

DELETE_NEXT_WORD

static EditorAction DELETE_NEXT_WORD

DELETE_UNTIL_NEXT_WORD

static EditorAction DELETE_UNTIL_NEXT_WORD

DELETE_END

static EditorAction DELETE_END

DELETE_BEGINNING

static EditorAction DELETE_BEGINNING

UNIX_LINE_DISCARD

static EditorAction UNIX_LINE_DISCARD

DELETE_LINE

static EditorAction DELETE_LINE

PASTE_AFTER

static EditorAction PASTE_AFTER

MOVE_END

static EditorAction MOVE_END

COPY

static EditorAction COPY

COPY_END_OF_LINE

static EditorAction COPY_END_OF_LINE

COPY_BEGINNING_OF_LINE

static EditorAction COPY_BEGINNING_OF_LINE

COPY_NEXT_WORD

static EditorAction COPY_NEXT_WORD

COPY_PREV_WORD

static EditorAction COPY_PREV_WORD

DELETE_PREV_CHAR

static EditorAction DELETE_PREV_CHAR

DELETE_NEXT_CHAR

static EditorAction DELETE_NEXT_CHAR

CHANGE_CASE

static EditorAction CHANGE_CASE

TRANSPOSE_CHARS

static EditorAction TRANSPOSE_CHARS

INSERT_COMMENT

static EditorAction INSERT_COMMENT

CLS

static EditorAction CLS

ENTER

static EditorAction ENTER
Constructor Detail

EditorAction

EditorAction()
Method Detail

execute

String execute(Editor editor,
               EditorBuffer buffer,
               int[] sequence,
               boolean flush)
         throws IOException
Throws:
IOException

perform

void perform(Editor editor,
             EditorBuffer buffer)
       throws IOException
Throws:
IOException

then

public EditorAction then(EditorAction action)

repeat

public EditorAction repeat(int count)


Copyright © 2015 eXo Platform SAS. All Rights Reserved.