org.eclipse.epf.richtext
Class RichTextCommand

java.lang.Object
  extended byorg.eclipse.epf.richtext.RichTextCommand

public class RichTextCommand
extends java.lang.Object

Defines the editing commands supported by the default rich text control and editor.

Since:
1.0
Author:
Kelvin Low

Field Summary
static java.lang.String ADD_HTML
          Adds a HTML fragment.
static java.lang.String ADD_IMAGE
          Adds an image.
static java.lang.String ADD_LINE
          Adds a horizontal line.
static java.lang.String ADD_LINK
          Adds a link.
static java.lang.String ADD_ORDERED_LIST
          Adds an ordered list.
static java.lang.String ADD_TABLE
          Adds a table.
static java.lang.String ADD_UNORDERED_LIST
          Adds an unordered list.
static java.lang.String BACKGROUND_COLOR
          Sets the background color of the selected text.
static java.lang.String BOLD
          Toggles the 'bold' attribute of the selected text.
static java.lang.String CLEAR_CONTENT
          Clears the rich text content.
static java.lang.String COPY
          Copies the selected text to the clipboard.
static java.lang.String CUT
          Cuts the selected text to the clipboard.
static java.lang.String DELETE
          Deletes the selected text.
static java.lang.String FIND_TEXT
          Finds text.
static java.lang.String FORGROUND_COLOR
          Sets the foreground color of the selected text.
static java.lang.String FORMAT_BLOCK
          Formats the selected text.
static java.lang.String GET_SELECTED_TEXT
          Returns the selected text.
static java.lang.String GET_TEXT
          Gets the HTML source.
static java.lang.String INDENT
          Indents the selected text.
static java.lang.String INSERT_TEXT
          Inserts text over the current selection.
static java.lang.String ITALIC
          Toggles the 'italic' attribute of the selected text.
static java.lang.String JUSTIFY_CENTER
          Center justifies the selected text.
static java.lang.String JUSTIFY_FULL
          Fully justifies the selected text.
static java.lang.String JUSTIFY_LEFT
          Left justifies the selected text.
static java.lang.String JUSTIFY_RIGHT
          Right justifies the selected text.
static java.lang.String OUTDENT
          Outdents the selected text.
static java.lang.String PASTE
          Pastes text from the clipboard.
static java.lang.String REDO
          Redoes the previous command.
static java.lang.String REMOVE_FORMAT
          Removes the current formatting of the selected text.
static java.lang.String REPLACE_ALL_TEXT
          Replaces all text.
static java.lang.String REPLACE_TEXT
          Replaces the selected text.
static java.lang.String SAVE
          Saves the editor
static java.lang.String SAVE_ALL
          Saves all editors
static java.lang.String SELECT_ALL
          Selects all text.
static java.lang.String SET_EDITABLE
          Sets whether the content can be edited.
static java.lang.String SET_FOCUS
          Sets focus to this control.
static java.lang.String SET_FONT_NAME
          Sets the font name for the selected text.
static java.lang.String SET_FONT_SIZE
          Sets the font size for the selected text.
static java.lang.String SET_FONT_STYLE
          Sets the font style for the selected text.
static java.lang.String SET_HEIGHT
          Sets the height of this control.
static java.lang.String SET_TEXT
          Sets the HTML source.
static java.lang.String STRIKE_THROUGH
          Toggles the 'strike-through' attribute of the selected text.
static java.lang.String SUBSCRIPT
          Toggles the subscript attribute of the selected text.
static java.lang.String SUPERSCRIPT
          Toggles the superscript attribute of the selected text.
static java.lang.String UNDERLINE
          Toggles the underline attribute of the selected text.
static java.lang.String UNDO
          Undoes the previous command.
static java.lang.String UNLINK
          Converts a link to normal text.
 
Constructor Summary
RichTextCommand()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ADD_HTML

public static final java.lang.String ADD_HTML
Adds a HTML fragment.

See Also:
Constant Field Values

ADD_IMAGE

public static final java.lang.String ADD_IMAGE
Adds an image.

See Also:
Constant Field Values

ADD_LINE

public static final java.lang.String ADD_LINE
Adds a horizontal line.

See Also:
Constant Field Values

ADD_LINK

public static final java.lang.String ADD_LINK
Adds a link.

See Also:
Constant Field Values

INSERT_TEXT

public static final java.lang.String INSERT_TEXT
Inserts text over the current selection.

See Also:
Constant Field Values

ADD_ORDERED_LIST

public static final java.lang.String ADD_ORDERED_LIST
Adds an ordered list.

See Also:
Constant Field Values

ADD_TABLE

public static final java.lang.String ADD_TABLE
Adds a table.

See Also:
Constant Field Values

ADD_UNORDERED_LIST

public static final java.lang.String ADD_UNORDERED_LIST
Adds an unordered list.

See Also:
Constant Field Values

BACKGROUND_COLOR

public static final java.lang.String BACKGROUND_COLOR
Sets the background color of the selected text.

See Also:
Constant Field Values

BOLD

public static final java.lang.String BOLD
Toggles the 'bold' attribute of the selected text.

See Also:
Constant Field Values

CLEAR_CONTENT

public static final java.lang.String CLEAR_CONTENT
Clears the rich text content.

See Also:
Constant Field Values

COPY

public static final java.lang.String COPY
Copies the selected text to the clipboard.

See Also:
Constant Field Values

CUT

public static final java.lang.String CUT
Cuts the selected text to the clipboard.

See Also:
Constant Field Values

DELETE

public static final java.lang.String DELETE
Deletes the selected text.

See Also:
Constant Field Values

FIND_TEXT

public static final java.lang.String FIND_TEXT
Finds text.

See Also:
Constant Field Values

GET_TEXT

public static final java.lang.String GET_TEXT
Gets the HTML source.

See Also:
Constant Field Values

FORGROUND_COLOR

public static final java.lang.String FORGROUND_COLOR
Sets the foreground color of the selected text.

See Also:
Constant Field Values

FORMAT_BLOCK

public static final java.lang.String FORMAT_BLOCK
Formats the selected text.

See Also:
Constant Field Values

GET_SELECTED_TEXT

public static final java.lang.String GET_SELECTED_TEXT
Returns the selected text.

See Also:
Constant Field Values

INDENT

public static final java.lang.String INDENT
Indents the selected text.

See Also:
Constant Field Values

ITALIC

public static final java.lang.String ITALIC
Toggles the 'italic' attribute of the selected text.

See Also:
Constant Field Values

JUSTIFY_CENTER

public static final java.lang.String JUSTIFY_CENTER
Center justifies the selected text.

See Also:
Constant Field Values

JUSTIFY_FULL

public static final java.lang.String JUSTIFY_FULL
Fully justifies the selected text.

See Also:
Constant Field Values

JUSTIFY_LEFT

public static final java.lang.String JUSTIFY_LEFT
Left justifies the selected text.

See Also:
Constant Field Values

JUSTIFY_RIGHT

public static final java.lang.String JUSTIFY_RIGHT
Right justifies the selected text.

See Also:
Constant Field Values

OUTDENT

public static final java.lang.String OUTDENT
Outdents the selected text.

See Also:
Constant Field Values

PASTE

public static final java.lang.String PASTE
Pastes text from the clipboard.

See Also:
Constant Field Values

REPLACE_ALL_TEXT

public static final java.lang.String REPLACE_ALL_TEXT
Replaces all text.

See Also:
Constant Field Values

REPLACE_TEXT

public static final java.lang.String REPLACE_TEXT
Replaces the selected text.

See Also:
Constant Field Values

REDO

public static final java.lang.String REDO
Redoes the previous command.

See Also:
Constant Field Values

REMOVE_FORMAT

public static final java.lang.String REMOVE_FORMAT
Removes the current formatting of the selected text.

See Also:
Constant Field Values

SAVE

public static final java.lang.String SAVE
Saves the editor

See Also:
Constant Field Values

SAVE_ALL

public static final java.lang.String SAVE_ALL
Saves all editors

See Also:
Constant Field Values

SELECT_ALL

public static final java.lang.String SELECT_ALL
Selects all text.

See Also:
Constant Field Values

SET_FONT_NAME

public static final java.lang.String SET_FONT_NAME
Sets the font name for the selected text.

See Also:
Constant Field Values

SET_FONT_SIZE

public static final java.lang.String SET_FONT_SIZE
Sets the font size for the selected text.

See Also:
Constant Field Values

SET_FONT_STYLE

public static final java.lang.String SET_FONT_STYLE
Sets the font style for the selected text.

See Also:
Constant Field Values

SET_EDITABLE

public static final java.lang.String SET_EDITABLE
Sets whether the content can be edited.

See Also:
Constant Field Values

SET_FOCUS

public static final java.lang.String SET_FOCUS
Sets focus to this control.

See Also:
Constant Field Values

SET_HEIGHT

public static final java.lang.String SET_HEIGHT
Sets the height of this control.

See Also:
Constant Field Values

SET_TEXT

public static final java.lang.String SET_TEXT
Sets the HTML source.

See Also:
Constant Field Values

STRIKE_THROUGH

public static final java.lang.String STRIKE_THROUGH
Toggles the 'strike-through' attribute of the selected text.

See Also:
Constant Field Values

SUBSCRIPT

public static final java.lang.String SUBSCRIPT
Toggles the subscript attribute of the selected text.

See Also:
Constant Field Values

SUPERSCRIPT

public static final java.lang.String SUPERSCRIPT
Toggles the superscript attribute of the selected text.

See Also:
Constant Field Values

UNDERLINE

public static final java.lang.String UNDERLINE
Toggles the underline attribute of the selected text.

See Also:
Constant Field Values

UNDO

public static final java.lang.String UNDO
Undoes the previous command.

See Also:
Constant Field Values

UNLINK

public static final java.lang.String UNLINK
Converts a link to normal text.

See Also:
Constant Field Values
Constructor Detail

RichTextCommand

public RichTextCommand()