multivalent.std.ui

Class StandardEdit

public class StandardEdit extends Behavior

Standard Edit operations: Undo, Redo, Cut, Copy, Paste, Clear, Select All.

Version: $Revision: 1.3 $ $Date: 2002/06/25 00:26:25 $

Field Summary
static StringMENU_CATEGORY_EDIT
static StringMSG_CLEAR
Clear (delete) selected text.
static StringMSG_COPY
Copy selected text.
static StringMSG_CUT
Cut selected text.
static StringMSG_PASTE
Paste clipboard at cursor.
static StringMSG_REDO
Redo last editing operation.
static StringMSG_SELECT_ALL
Select all text.
static StringMSG_UNDO
Reverse last editing operation.
Method Summary
booleansemanticEventAfter(SemanticEvent se, String msg)
Implement MSG_CUT, MSG_COPY, ....
booleansemanticEventBefore(SemanticEvent se, String msg)
On MSG_CREATE_EDIT, add cut/copy/paste/... menu items.

Field Detail

MENU_CATEGORY_EDIT

public static final String MENU_CATEGORY_EDIT

MSG_CLEAR

public static final String MSG_CLEAR
Clear (delete) selected text.

"editClear".

MSG_COPY

public static final String MSG_COPY
Copy selected text.

"editCopy".

MSG_CUT

public static final String MSG_CUT
Cut selected text.

"editCut".

MSG_PASTE

public static final String MSG_PASTE
Paste clipboard at cursor.

"editPaste".

MSG_REDO

public static final String MSG_REDO
Redo last editing operation.

"editRedo".

MSG_SELECT_ALL

public static final String MSG_SELECT_ALL
Select all text.

"editSelectAll".

MSG_UNDO

public static final String MSG_UNDO
Reverse last editing operation.

"editUndo".

Method Detail

semanticEventAfter

public boolean semanticEventAfter(SemanticEvent se, String msg)
Implement MSG_CUT, MSG_COPY, ....

semanticEventBefore

public boolean semanticEventBefore(SemanticEvent se, String msg)
On MSG_CREATE_EDIT, add cut/copy/paste/... menu items.