Class EditableTextDecorator

java.lang.Object
org.gvsig.gui.beans.editabletextcomponent.EditableTextDecorator
All Implemented Interfaces:
IEditableText

public class EditableTextDecorator extends Object implements IEditableText

Extra functionality that allows a JTextComponent having graphical edition options, which allows user to select any: COPY, CUT, PASTE, SELECT ALL, REMOVE, UNDO, REDO in a popup menu.

All options will be about the edition of the text in the component.

How select an edition option using the mouse: press the right button of the mouse on the text area, and a popup with the options will be displayed. Select and option.
Default fast-access keys:

  • COPY:
  • CTRL + C. Copies from the text field to the clipboard.
  • CUT:
  • CTRL + X. Cuts from the text field to the clipboad.
  • PASTE:
  • CTRL + V. Copies from the clipboard to the text field.
  • REMOVE:
  • SUPR (in spanish keyboard, and the equivalent in others). Removes the selected text.
  • SELECT ALL:
  • CTRL + A. Selects all the text.
  • UNDO:
  • CTRL + Z. Undoes.
  • REDO:
  • SHIFT + CTRL + Z. Redoes.

This component by default stores 100 undo/redo actions. This value can be modified.

A developer would have to re-implement #defineEditorKeyListener(), creating a new editorKeyListener for changing any fast-access key.

Version:
27/02/2008
Author:
Pablo Piqueras Bartolomé (pablo.piqueras@iver.es)