com.raelity.jvi.swing
Interface TextOps

All Known Implementing Classes:
OpsBase

public interface TextOps

Stuff to work with editor panes.


Field Summary
static int BEGIN_LINE
          Position at/near begin line depending on flags.
static int CURSOR_LEFT
          Move cursor to the left
static int CURSOR_RIGHT
          Move cursor to the right
static int CURSOR_TO_LINE
          Move cursor to line maintaining column position.
static int DELETE_PREVIOUS_CHAR
          Delete previous character
static int GOTO_LINE
          Move cursor to start of line indicated in place1.
static int INSERT_NEW_LINE
          Insert the text at the current cursor position.
static int INSERT_TAB
          Insert the text at the current cursor position.
static int INSERT_TEXT
          Insert the text at specified cursor position.
static int KEY_TYPED
          Insert the text at the current cursor position.
 
Method Summary
 void init(JEditorPane editorPane)
           
 void xact(Action action)
           
 void xact(Action action, String keyTyped)
           
 void xact(String redoAction)
           
 void xop(int op)
           
 void xop(int op, String s)
           
 

Field Detail

GOTO_LINE

static final int GOTO_LINE
Move cursor to start of line indicated in place1. a1 = line

See Also:
Constant Field Values

CURSOR_TO_LINE

static final int CURSOR_TO_LINE
Move cursor to line maintaining column position. a1 = line

See Also:
Constant Field Values

BEGIN_LINE

static final int BEGIN_LINE
Position at/near begin line depending on flags. a1 = line, a2 = flag

See Also:
Constant Field Values

CURSOR_RIGHT

static final int CURSOR_RIGHT
Move cursor to the right

See Also:
Constant Field Values

CURSOR_LEFT

static final int CURSOR_LEFT
Move cursor to the left

See Also:
Constant Field Values

INSERT_TEXT

static final int INSERT_TEXT
Insert the text at specified cursor position. a1 = offset, text

See Also:
Constant Field Values

INSERT_NEW_LINE

static final int INSERT_NEW_LINE
Insert the text at the current cursor position.

See Also:
Constant Field Values

INSERT_TAB

static final int INSERT_TAB
Insert the text at the current cursor position.

See Also:
Constant Field Values

KEY_TYPED

static final int KEY_TYPED
Insert the text at the current cursor position.

See Also:
Constant Field Values

DELETE_PREVIOUS_CHAR

static final int DELETE_PREVIOUS_CHAR
Delete previous character

See Also:
Constant Field Values
Method Detail

xact

void xact(Action action)

xact

void xact(Action action,
          String keyTyped)

xact

void xact(String redoAction)

xop

void xop(int op,
         String s)

xop

void xop(int op)

init

void init(JEditorPane editorPane)