public class RSyntaxTextAreaEditorKit extends RTextAreaEditorKit
RTextAreaEditorKit
that adds functionality for
programming-specific stuff. There are currently subclasses to handle:
限定符和类型 | 类和说明 |
---|---|
protected static class |
RSyntaxTextAreaEditorKit.BeginWordAction
Positions the caret at the beginning of the word.
|
static class |
RSyntaxTextAreaEditorKit.ChangeFoldStateAction
Expands or collapses the nearest fold.
|
static class |
RSyntaxTextAreaEditorKit.CloseCurlyBraceAction
Action that (optionally) aligns a closing curly brace with the line
containing its matching opening curly brace.
|
static class |
RSyntaxTextAreaEditorKit.CloseMarkupTagAction
(Optionally) completes a closing markup tag.
|
static class |
RSyntaxTextAreaEditorKit.CollapseAllCommentFoldsAction
Collapses all comment folds.
|
static class |
RSyntaxTextAreaEditorKit.CollapseAllFoldsAction
Collapses all folds.
|
static class |
RSyntaxTextAreaEditorKit.CopyAsRtfAction
Action for copying text as RTF.
|
static class |
RSyntaxTextAreaEditorKit.DecreaseFontSizeAction
Action for decreasing the font size of all fonts in the text area.
|
static class |
RSyntaxTextAreaEditorKit.DecreaseIndentAction
Action for when un-indenting lines (either the current line if there is
selection, or all selected lines if there is one).
|
static class |
RSyntaxTextAreaEditorKit.DeletePrevWordAction
Deletes the previous word, but differentiates symbols from "words" to
match the behavior of code editors.
|
static class |
RSyntaxTextAreaEditorKit.EndAction
Moves the caret to the end of the document, taking into account code
folding.
|
protected static class |
RSyntaxTextAreaEditorKit.EndWordAction
Positions the caret at the end of the word.
|
static class |
RSyntaxTextAreaEditorKit.ExpandAllFoldsAction
Expands all folds.
|
static class |
RSyntaxTextAreaEditorKit.GoToMatchingBracketAction
Action for moving the caret to the "matching bracket" of the bracket
at the caret position (either before or after).
|
static class |
RSyntaxTextAreaEditorKit.IncreaseFontSizeAction
Action for increasing the font size of all fonts in the text area.
|
static class |
RSyntaxTextAreaEditorKit.InsertBreakAction
Action for when the user presses the Enter key.
|
static class |
RSyntaxTextAreaEditorKit.InsertTabAction
Action for inserting tabs.
|
static class |
RSyntaxTextAreaEditorKit.NextWordAction
Action to move the selection and/or caret.
|
static class |
RSyntaxTextAreaEditorKit.PossiblyInsertTemplateAction
Action for when the user tries to insert a template (that is,
they've typed a template ID and pressed the trigger character
(a space) in an attempt to do the substitution).
|
static class |
RSyntaxTextAreaEditorKit.PreviousWordAction
Action to move the selection and/or caret.
|
static class |
RSyntaxTextAreaEditorKit.SelectWordAction
Selects the word around the caret.
|
static class |
RSyntaxTextAreaEditorKit.ToggleCommentAction
Action that toggles whether the currently selected lines are
commented.
|
static class |
RSyntaxTextAreaEditorKit.ToggleCurrentFoldAction
Toggles the fold at the current caret position or line.
|
RTextAreaEditorKit.BeepAction, RTextAreaEditorKit.BeginAction, RTextAreaEditorKit.BeginLineAction, RTextAreaEditorKit.BeginRecordingMacroAction, RTextAreaEditorKit.CopyAction, RTextAreaEditorKit.CutAction, RTextAreaEditorKit.DefaultKeyTypedAction, RTextAreaEditorKit.DeleteLineAction, RTextAreaEditorKit.DeleteNextCharAction, RTextAreaEditorKit.DeletePrevCharAction, RTextAreaEditorKit.DeleteRestOfLineAction, RTextAreaEditorKit.DumbCompleteWordAction, RTextAreaEditorKit.EndLineAction, RTextAreaEditorKit.EndRecordingMacroAction, RTextAreaEditorKit.InsertContentAction, RTextAreaEditorKit.InvertSelectionCaseAction, RTextAreaEditorKit.JoinLinesAction, RTextAreaEditorKit.LineMoveAction, RTextAreaEditorKit.LowerSelectionCaseAction, RTextAreaEditorKit.NextBookmarkAction, RTextAreaEditorKit.NextOccurrenceAction, RTextAreaEditorKit.NextVisualPositionAction, RTextAreaEditorKit.PasteAction, RTextAreaEditorKit.PlaybackLastMacroAction, RTextAreaEditorKit.PreviousOccurrenceAction, RTextAreaEditorKit.RedoAction, RTextAreaEditorKit.ScrollAction, RTextAreaEditorKit.SelectAllAction, RTextAreaEditorKit.SelectLineAction, RTextAreaEditorKit.SetReadOnlyAction, RTextAreaEditorKit.SetWritableAction, RTextAreaEditorKit.TimeDateAction, RTextAreaEditorKit.ToggleBookmarkAction, RTextAreaEditorKit.ToggleTextModeAction, RTextAreaEditorKit.UndoAction, RTextAreaEditorKit.UnselectAction, RTextAreaEditorKit.UpperSelectionCaseAction, RTextAreaEditorKit.VerticalPageAction
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
rstaCloseCurlyBraceAction |
static java.lang.String |
rstaCloseMarkupTagAction |
static java.lang.String |
rstaCollapseAllCommentFoldsAction |
static java.lang.String |
rstaCollapseAllFoldsAction |
static java.lang.String |
rstaCollapseFoldAction |
static java.lang.String |
rstaCopyAsRtfAction |
static java.lang.String |
rstaDecreaseIndentAction |
static java.lang.String |
rstaExpandAllFoldsAction |
static java.lang.String |
rstaExpandFoldAction |
static java.lang.String |
rstaGoToMatchingBracketAction |
static java.lang.String |
rstaPossiblyInsertTemplateAction |
static java.lang.String |
rstaToggleCommentAction |
static java.lang.String |
rstaToggleCurrentFoldAction |
rtaBeginRecordingMacroAction, rtaDecreaseFontSizeAction, rtaDeleteLineAction, rtaDeletePrevWordAction, rtaDeleteRestOfLineAction, rtaDumbCompleteWordAction, rtaEndRecordingMacroAction, rtaIncreaseFontSizeAction, rtaInvertSelectionCaseAction, rtaJoinLinesAction, rtaLineDownAction, rtaLineUpAction, rtaLowerSelectionCaseAction, rtaNextBookmarkAction, rtaNextOccurrenceAction, rtaPlaybackLastMacroAction, rtaPrevBookmarkAction, rtaPrevOccurrenceAction, rtaRedoAction, rtaScrollDownAction, rtaScrollUpAction, rtaSelectionPageDownAction, rtaSelectionPageLeftAction, rtaSelectionPageRightAction, rtaSelectionPageUpAction, rtaTimeDateAction, rtaToggleBookmarkAction, rtaToggleTextModeAction, rtaUndoAction, rtaUnselectAction, rtaUpperSelectionCaseAction
backwardAction, beepAction, beginAction, beginLineAction, beginParagraphAction, beginWordAction, copyAction, cutAction, defaultKeyTypedAction, deleteNextCharAction, deleteNextWordAction, deletePrevCharAction, deletePrevWordAction, downAction, endAction, endLineAction, EndOfLineStringProperty, endParagraphAction, endWordAction, forwardAction, insertBreakAction, insertContentAction, insertTabAction, nextWordAction, pageDownAction, pageUpAction, pasteAction, previousWordAction, readOnlyAction, selectAllAction, selectionBackwardAction, selectionBeginAction, selectionBeginLineAction, selectionBeginParagraphAction, selectionBeginWordAction, selectionDownAction, selectionEndAction, selectionEndLineAction, selectionEndParagraphAction, selectionEndWordAction, selectionForwardAction, selectionNextWordAction, selectionPreviousWordAction, selectionUpAction, selectLineAction, selectParagraphAction, selectWordAction, upAction, writableAction
构造器和说明 |
---|
RSyntaxTextAreaEditorKit()
Constructor.
|
限定符和类型 | 方法和说明 |
---|---|
javax.swing.text.Document |
createDefaultDocument()
Returns the default document used by
RSyntaxTextArea s. |
IconRowHeader |
createIconRowHeader(RTextArea textArea)
Overridden to return a row header that is aware of folding.
|
javax.swing.Action[] |
getActions()
Fetches the set of commands that can be used
on a text component that is using a model and
view produced by this kit.
|
static java.lang.String |
getString(java.lang.String key)
Returns localized text for an action.
|
createLineNumberList, read
public static final java.lang.String rstaCloseCurlyBraceAction
public static final java.lang.String rstaCloseMarkupTagAction
public static final java.lang.String rstaCollapseAllFoldsAction
public static final java.lang.String rstaCollapseAllCommentFoldsAction
public static final java.lang.String rstaCollapseFoldAction
public static final java.lang.String rstaCopyAsRtfAction
public static final java.lang.String rstaDecreaseIndentAction
public static final java.lang.String rstaExpandAllFoldsAction
public static final java.lang.String rstaExpandFoldAction
public static final java.lang.String rstaGoToMatchingBracketAction
public static final java.lang.String rstaPossiblyInsertTemplateAction
public static final java.lang.String rstaToggleCommentAction
public static final java.lang.String rstaToggleCurrentFoldAction
public javax.swing.text.Document createDefaultDocument()
RSyntaxTextArea
s.createDefaultDocument
在类中 javax.swing.text.DefaultEditorKit
public IconRowHeader createIconRowHeader(RTextArea textArea)
createIconRowHeader
在类中 RTextAreaEditorKit
textArea
- The text area.public javax.swing.Action[] getActions()
getActions
在类中 RTextAreaEditorKit
public static java.lang.String getString(java.lang.String key)
key
- The key into the action resource bundle.