public final class EditorCommand
extends java.lang.Object
Frame.| Modifier and Type | Class and Description | 
|---|---|
| static class  | EditorCommand.NameThe list of command names. | 
| Modifier and Type | Method and Description | 
|---|---|
| static EditorCommand | backgroundColor(Color color)Returns a command that allows setting the given background  colorfor the selected
 text in a WYSIWYG editor. | 
| static EditorCommand | backgroundColor(java.lang.String colorName)Returns a command that allows setting the given background  colorNamefor the selected
 text in a WYSIWYG editor. | 
| static EditorCommand | bold()Returns a command that allows making the selected text bold in a WYSIWYG editor. | 
| static EditorCommand | copy()Returns a command that allows copying the selected text in the frame. | 
| static EditorCommand | createLink(java.lang.String url)Returns a command that allows making the link to the specified  URLin a WYSIWYG
 editor. | 
| static EditorCommand | cut()Returns a command that allows cutting the selected text in a text field, text area or WYSIWYG
 editor. | 
| static EditorCommand | delete()Returns a command that allows deleting the selected text in a text field, text area or
 WYSIWYG editor. | 
| static EditorCommand | deleteBackward()Returns a command that allows deleting character before the caret position in a text field,
 text area or WYSIWYG editor. | 
| static EditorCommand | deleteForward()Returns a command that allows deleting character after the caret position in a text field,
 text area or WYSIWYG editor. | 
| static EditorCommand | deleteToBeginningOfLine()Returns a command that allows deleting character from the caret position to the beginning of
 line in a text field, text area or WYSIWYG editor. | 
| static EditorCommand | deleteWordBackward()Returns a command that allows deleting a word before the caret position in a text field, text
 area or WYSIWYG editor. | 
| static EditorCommand | deleteWordForward()Returns a command that allows deleting a word after the caret position in a text field, text
 area or WYSIWYG editor. | 
| static EditorCommand | findText(java.lang.String text)Returns a command that allows searching for the given  textoccurrence from the
 current caret position in the frame. | 
| static EditorCommand | fontName(FontName fontName)Returns a command that allows setting the given  fontNamefor the selected text in a
 WYSIWYG editor. | 
| static EditorCommand | fontSize(AbsoluteFontSize fontSize)Returns a command that allows setting the given  fontSizefor the selected text in a
 WYSIWYG editor. | 
| static EditorCommand | foregroundColor(Color color)Returns a command that allows setting the given foreground  colorfor the selected
 text in a WYSIWYG editor. | 
| static EditorCommand | foregroundColor(java.lang.String colorName)Returns a command that allows setting the given foreground  colorNamefor the selected
 text in a WYSIWYG editor. | 
| static EditorCommand | ignoreSpelling()Returns a command that allows disabling the spelling mistakes highlighting in a text area or
 a WYSIWYG editor. | 
| static EditorCommand | indent()Returns a command that allows making indent of the selected text in a WYSIWYG editor. | 
| static EditorCommand | insertHtml(java.lang.String html)Returns a command that allows inserting the given  htmlcontent in a WYSIWYG editor. | 
| static EditorCommand | insertImage(java.lang.String imageSrc)Returns a command that allows inserting an image with the given  imageSrcin a WYSIWYG
 editor. | 
| static EditorCommand | insertNewLine()Returns a command that allows inserting a new line in a WYSIWYG editor. | 
| static EditorCommand | insertOrderedList()Returns a command that allows inserting an ordered list in a WYSIWYG editor. | 
| static EditorCommand | insertParagraph()Returns a command that allows inserting a paragraph in a WYSIWYG editor. | 
| static EditorCommand | insertTab()Returns a command that allows inserting a tab character in a WYSIWYG editor. | 
| static EditorCommand | insertText(java.lang.String text)Returns a command that allows inserting the given  textcontent in a WYSIWYG editor or
 a text field. | 
| static EditorCommand | insertUnorderedList()Returns a command that allows inserting an unordered list in a WYSIWYG editor. | 
| static EditorCommand | italic()Returns a command that allows making the selected text italic in a WYSIWYG editor. | 
| static EditorCommand | justifyCenter()Returns a command that allows center justification the selected text in a WYSIWYG editor. | 
| static EditorCommand | justifyFull()Returns a command that allows full justification the selected text in a WYSIWYG editor. | 
| static EditorCommand | justifyLeft()Returns a command that allows left justification the selected text in a WYSIWYG editor. | 
| static EditorCommand | justifyRight()Returns a command that allows right justification the selected text in a WYSIWYG editor. | 
| static EditorCommand | movePageDown()Returns a command that allows moving the caret position at one page down in a text area or a
 WYSIWYG editor. | 
| static EditorCommand | movePageUp()Returns a command that allows moving the caret position at one page up in a text area or a
 WYSIWYG editor. | 
| static EditorCommand | moveToBeginningOfLine()Returns a command that allows moving a word to the beginning of line in a text area or a
 WYSIWYG editor. | 
| static EditorCommand | moveToBeginningOfLineAndModifySelection()Returns a command that allows moving a word to the beginning of line and modifying selection
 in a text area or a WYSIWYG editor. | 
| static EditorCommand | moveToEndOfLine()Returns a command that allows moving a word to the end of line in a text area or a WYSIWYG
 editor. | 
| static EditorCommand | moveToEndOfLineAndModifySelection()Returns a command that allows moving a word to the end of line and modifying selection in a
 text area or a WYSIWYG editor. | 
| static EditorCommand | moveWordLeft()Returns a command that allows moving a word left in a text area or a WYSIWYG editor. | 
| static EditorCommand | moveWordLeftAndModifySelection()Returns a command that allows moving a word left and modifying selection in a text area or a
 WYSIWYG editor. | 
| static EditorCommand | moveWordRight()Returns a command that allows moving a word right in a text area or a WYSIWYG editor. | 
| static EditorCommand | moveWordRightAndModifySelection()Returns a command that allows moving a word right and modifying selection in a text area or a
 WYSIWYG editor. | 
| EditorCommand.Name | name()Returns the  Nameof the command. | 
| static EditorCommand | outdent()Returns a command that allows making outdent of the selected text in a WYSIWYG editor. | 
| static EditorCommand | paste()Returns a command that allows pasting content of the clipboard in a text field, text area or
 a WYSIWYG editor. | 
| static EditorCommand | redo()Returns a command that allows reversing the last  undo()action. | 
| static EditorCommand | removeFormat()Returns a command that allows removing all styles of the selected text (bold, italic, etc.)
 in a WYSIWYG editor. | 
| static EditorCommand | scrollLineDown()Returns a command that allows scrolling one line down. | 
| static EditorCommand | scrollLineUp()Returns a command that allows scrolling one line up. | 
| static EditorCommand | scrollPageBackward()Returns a command that allows scrolling a page backward. | 
| static EditorCommand | scrollPageForward()Returns a command that allows scrolling a page forward. | 
| static EditorCommand | scrollToBeginningOfDocument()Returns a command that allows scrolling content to the beginning of the document in the
 frame. | 
| static EditorCommand | scrollToEndOfDocument()Returns a command that allows scrolling content to the end of the document in the frame. | 
| static EditorCommand | selectAll()Returns a command that allows selecting all text in the frame or the currently focused text
 field, text area or a WYSIWYG editor. | 
| static EditorCommand | selectLine()Returns a command that allows selecting a line at the caret position in a text area or a
 WYSIWYG editor. | 
| static EditorCommand | selectParagraph()Returns a command that allows selecting the whole paragraph at the caret position in a text
 area or a WYSIWYG editor. | 
| static EditorCommand | selectSentence()Returns a command that allows selecting the whole sentence at the caret position in a text
 area or a WYSIWYG editor. | 
| static EditorCommand | selectWord()Returns a command that allows selecting the word at the caret position in a text field, text
 area or a WYSIWYG editor. | 
| static EditorCommand | strikethrough()Returns a command that allows making the selected text strikethrough in a WYSIWYG editor. | 
| static EditorCommand | subscript()Returns a command that allows making the selected text subscript in a WYSIWYG editor. | 
| static EditorCommand | superscript()Returns a command that allows making the selected text superscript in a WYSIWYG editor. | 
| static EditorCommand | toggleBold()Returns a command that allows toggling bold style for the selected text in a WYSIWYG editor. | 
| static EditorCommand | toggleItalic()Returns a command that allows toggling italic style for the selected text in a WYSIWYG
 editor. | 
| static EditorCommand | toggleUnderline()Returns a command that allows toggling underline style for the selected text in a WYSIWYG
 editor. | 
| static EditorCommand | underline()Returns a command that allows underlying the selected text in a WYSIWYG editor. | 
| static EditorCommand | undo()Returns a command that allows reversing the last action. | 
| static EditorCommand | unlink()Returns a command that allows removing the link from the text in a WYSIWYG editor. | 
| static EditorCommand | unselect()Returns a command that allows clearing the current selection in a frame. | 
| java.lang.String | value()Returns a string that represents the command value. | 
public static EditorCommand bold()
public static EditorCommand copy()
public static EditorCommand cut()
public static EditorCommand delete()
public static EditorCommand deleteBackward()
public static EditorCommand deleteForward()
public static EditorCommand deleteToBeginningOfLine()
public static EditorCommand deleteWordBackward()
public static EditorCommand deleteWordForward()
public static EditorCommand insertNewLine()
public static EditorCommand insertParagraph()
public static EditorCommand insertTab()
public static EditorCommand ignoreSpelling()
public static EditorCommand italic()
public static EditorCommand movePageUp()
public static EditorCommand movePageDown()
public static EditorCommand moveWordLeft()
public static EditorCommand moveWordLeftAndModifySelection()
public static EditorCommand moveWordRight()
public static EditorCommand moveWordRightAndModifySelection()
public static EditorCommand moveToBeginningOfLine()
public static EditorCommand moveToBeginningOfLineAndModifySelection()
public static EditorCommand moveToEndOfLine()
public static EditorCommand moveToEndOfLineAndModifySelection()
public static EditorCommand paste()
public static EditorCommand redo()
undo() action.public static EditorCommand scrollPageBackward()
public static EditorCommand scrollPageForward()
public static EditorCommand scrollLineUp()
public static EditorCommand scrollLineDown()
public static EditorCommand scrollToBeginningOfDocument()
public static EditorCommand scrollToEndOfDocument()
public static EditorCommand selectAll()
public static EditorCommand selectLine()
public static EditorCommand selectParagraph()
public static EditorCommand selectSentence()
public static EditorCommand selectWord()
public static EditorCommand toggleBold()
public static EditorCommand toggleItalic()
public static EditorCommand toggleUnderline()
public static EditorCommand underline()
public static EditorCommand undo()
public static EditorCommand unselect()
public static EditorCommand strikethrough()
public static EditorCommand superscript()
public static EditorCommand subscript()
public static EditorCommand removeFormat()
public static EditorCommand unlink()
public static EditorCommand justifyCenter()
public static EditorCommand justifyFull()
public static EditorCommand justifyLeft()
public static EditorCommand justifyRight()
public static EditorCommand indent()
public static EditorCommand outdent()
public static EditorCommand insertOrderedList()
public static EditorCommand insertUnorderedList()
public static EditorCommand backgroundColor(Color color)
color for the selected
 text in a WYSIWYG editor.color - a new background colorpublic static EditorCommand backgroundColor(java.lang.String colorName)
colorName for the selected
 text in a WYSIWYG editor.colorName - a new background color namejava.lang.IllegalArgumentException - when colorName is empty or blankpublic static EditorCommand findText(java.lang.String text)
text occurrence from the
 current caret position in the frame. If match found, this command will select it and scroll
 down to make it visible, if needed.text - a text to searchjava.lang.IllegalArgumentException - when text is emptypublic static EditorCommand fontSize(AbsoluteFontSize fontSize)
fontSize for the selected text in a
 WYSIWYG editor.fontSize - a new font sizepublic static EditorCommand fontName(FontName fontName)
fontName for the selected text in a
 WYSIWYG editor.fontName - a new font namepublic static EditorCommand foregroundColor(Color color)
color for the selected
 text in a WYSIWYG editor.color - a new foreground colorpublic static EditorCommand foregroundColor(java.lang.String colorName)
colorName for the selected
 text in a WYSIWYG editor.colorName - a new foreground color namejava.lang.IllegalArgumentException - when colorName is empty or blankpublic static EditorCommand insertImage(java.lang.String imageSrc)
imageSrc in a WYSIWYG
 editor. If the imageSrc points to an invalid location, then image won't be inserted.imageSrc - the value of the src attribute of the IMG tagjava.lang.IllegalArgumentException - when imageSrc is empty or blankpublic static EditorCommand insertHtml(java.lang.String html)
html content in a WYSIWYG editor.html - an html content to insert.java.lang.IllegalArgumentException - when html is empty or blankpublic static EditorCommand insertText(java.lang.String text)
text content in a WYSIWYG editor or
 a text field.text - a text content to insertpublic static EditorCommand createLink(java.lang.String url)
URL in a WYSIWYG
 editor.url - the value of the href attribute of the A tagjava.lang.IllegalArgumentException - when url is empty or blankpublic EditorCommand.Name name()
Name of the command.public java.lang.String value()