line.separator
, is defined to be
platform-dependent, either "\n", "\r", or "\r\n". There is also
a property defined in DefaultEditorKit
, called
EndOfLineStringProperty
,
which is defined automatically when a document is loaded, to be
the first occurrence of any of the newline characters.
When a document is loaded, EndOfLineStringProperty
is set appropriately, and when the document is written back out, the
EndOfLineStringProperty
is used. But while the document
is in memory, the "\n" character is used to define a
newline, regardless of how the newline is defined when
the document is on disk. Therefore, for searching purposes,
"\n" should always be used. When a new document is created,
and the EndOfLineStringProperty
has not been defined,
it will use the System property when writing out the
document.
Note that EndOfLineStringProperty
is set
on the Document
using the get/putProperty
methods. Subclasses may override this behavior.
Modifier and Type | Class and Description |
---|---|
public static class | DefaultEditorKit.
Creates a beep. |
pack-priv static class | |
pack-priv static class | |
pack-priv static class | |
pack-priv static class | |
pack-priv static class | |
public static class | DefaultEditorKit.
Copies the selected region and place its contents into the system clipboard. |
public static class | DefaultEditorKit.
Cuts the selected region and place its contents into the system clipboard. |
public static class | DefaultEditorKit.
The action that is executed by default if a key typed event is received and there is no keymap entry. |
pack-priv static class | |
pack-priv static class | |
pack-priv static class | |
pack-priv static class | |
pack-priv static class | |
pack-priv static class | |
pack-priv static class | |
pack-priv static class | |
pack-priv static class | |
public static class | DefaultEditorKit.
Places a line/paragraph break into the document. |
public static class | DefaultEditorKit.
Places content into the associated document. |
public static class | DefaultEditorKit.
Places a tab character into the document. |
pack-priv static class | |
pack-priv static class | |
pack-priv static class | DefaultEditorKit.
Pages one view to the left or right. |
public static class | DefaultEditorKit.
Pastes the contents of the system clipboard into the selected region, or before the caret if nothing is selected. |
pack-priv static class | |
pack-priv static class | |
pack-priv static class | |
pack-priv static class | |
pack-priv static class | |
pack-priv static class | |
pack-priv static class | |
pack-priv static class | |
pack-priv static class | DefaultEditorKit.
Scrolls up/down vertically. |
pack-priv static class |
Modifier and Type | Field and Description |
---|---|
public static final String | backwardAction
Name of the Action for moving the caret logically backward one position. |
public static final String | beepAction
Name of the action to create a beep. |
public static final String | beginAction
Name of the |
public static final String | beginLineAction
Name of the |
public static final String | beginLineUpAction
Name of the |
public static final String | beginParagraphAction
Name of the |
public static final String | beginWordAction
Name of the |
public static final String | copyAction
Name of the action to copy the selected region and place the contents into the system clipboard. |
public static final String | cutAction
Name of the action to cut the selected region and place the contents into the system clipboard. |
private static final Action[] | |
public static final String | defaultKeyTypedAction
Name of the action that is executed by default if a key typed event is received and there is no keymap entry. |
public static final String | deleteNextCharAction
Name of the action to delete the character of content that follows the current caret position. |
public static final String | deleteNextWordAction
Name of the action to delete the word that follows the beginning of the selection. |
public static final String | deletePrevCharAction
Name of the action to delete the character of content that precedes the current caret position. |
public static final String | deletePrevWordAction
Name of the action to delete the word that precedes the beginning of the selection. |
public static final String | downAction
Name of the Action for moving the caret logically downward one position. |
public static final String | endAction
Name of the |
public static final String | endLineAction
Name of the |
public static final String | endLineDownAction
Name of the |
public static final String | EndOfLineStringProperty
When reading a document if a CRLF is encountered a property with this name is added and the value will be "\r\n". |
public static final String | endParagraphAction
Name of the |
public static final String | endWordAction
Name of the Action for moving the caret to the end of a word. |
public static final String | forwardAction
Name of the Action for moving the caret logically forward one position. |
public static final String | insertBreakAction
Name of the action to place a line/paragraph break into the document. |
public static final String | insertContentAction
Name of the action to place content into the associated document. |
public static final String | insertTabAction
Name of the action to place a tab character into the document. |
public static final String | nextWordAction
Name of the |
public static final String | pageDownAction
Name of the action to page down vertically. |
public static final String | pageUpAction
Name of the action to page up vertically. |
public static final String | pasteAction
Name of the action to paste the contents of the system clipboard into the selected region, or before the caret if nothing is selected. |
public static final String | previousWordAction
Name of the |
public static final String | readOnlyAction
Name of the action to set the editor into read-only mode. |
public static final String | selectAllAction
Name of the Action for selecting the entire document |
public static final String | selectionBackwardAction
Name of the Action for extending the selection by moving the caret logically backward one position. |
public static final String | selectionBeginAction
Name of the |
public static final String | selectionBeginLineAction
Name of the |
public static final String | selectionBeginParagraphAction
Name of the |
public static final String | selectionBeginWordAction
Name of the |
public static final String | selectionDownAction
Name of the Action for moving the caret logically downward one position, extending the selection. |
public static final String | selectionEndAction
Name of the Action for moving the caret to the end of the document. |
public static final String | selectionEndLineAction
Name of the |
public static final String | selectionEndParagraphAction
Name of the |
public static final String | selectionEndWordAction
Name of the Action for moving the caret to the end of a word, extending the selection. |
public static final String | selectionForwardAction
Name of the Action for extending the selection by moving the caret logically forward one position. |
public static final String | selectionNextWordAction
Name of the |
pack-priv static final String | selectionPageDownAction
Name of the action to page down vertically, and move the selection. |
pack-priv static final String | selectionPageLeftAction
Name of the action to page left horizontally, and move the selection. |
pack-priv static final String | selectionPageRightAction
Name of the action to page right horizontally, and move the selection. |
pack-priv static final String | selectionPageUpAction
Name of the action to page up vertically, and move the selection. |
public static final String | selectionPreviousWordAction
Name of the |
public static final String | selectionUpAction
Name of the Action for moving the caret logically upward one position, extending the selection. |
public static final String | selectLineAction
Name of the Action for selecting a line around the caret. |
public static final String | selectParagraphAction
Name of the Action for selecting a paragraph around the caret. |
public static final String | selectWordAction
Name of the Action for selecting a word around the caret. |
pack-priv static final String | toggleComponentOrientationAction
Name of the Action for toggling the component's orientation. |
pack-priv static final String | unselectAction
Name of the Action for removing selection |
public static final String | upAction
Name of the Action for moving the caret logically upward one position. |
public static final String | writableAction
Name of the action to set the editor into writeable mode. |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
public Caret | Returns: the caretImplements abstract javax. |
public Document | Returns: the modelImplements abstract javax. |
public Action[] | Returns: the command listImplements abstract javax. |
public String | Returns: the typeImplements abstract javax. |
pack-priv MutableAttributeSet | |
public ViewFactory | Returns: the view factoryImplements abstract javax. |
public void | read(InputStream
The stream to read from in, Document The destination for the insertion. doc, int The location in the document to place the
content >=0. pos)Implements abstract javax. |
public void | read(Reader
The stream to read from in, Document The destination for the insertion. doc, int The location in the document to place the
content >=0. pos)Implements abstract javax. |
public void | write(OutputStream
The stream to write to out, Document The source for the write. doc, int The location in the document to fetch the
content >=0. pos, int The amount to write out >=0. len)Implements abstract javax. |
public void | write(Writer
The stream to write to out, Document The source for the write. doc, int The location in the document to fetch the
content from >=0. pos, int The amount to write out >=0. len)Implements abstract javax. |