|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.text.EditorKit
javax.swing.text.DefaultEditorKit
javax.swing.text.StyledEditorKit
edu.rice.cs.drjava.model.definitions.DefinitionsEditorKit
public class DefinitionsEditorKit
The editor kit class for editing Java source files. It functions as the controller in an MVC hierarchy. It also implements a factory for new documents and a factory for Views (the things that render the document). May only be used as the EditorKit for panes extending AbstractDJPane. In fact, only used as the EditorKit for DefintionsPanes. Stored as a field of DefinitionsPane.
| Nested Class Summary | |
|---|---|
(package private) static class |
DefinitionsEditorKit.BeginWordAction
Brings the cursor to the beginning of the current word separated by whitespace or a delimiting character. |
(package private) static class |
DefinitionsEditorKit.EndWordAction
Sets the cursor at the end of the current word separated by whitespace or a delimiting character. |
(package private) static class |
DefinitionsEditorKit.NextWordAction
Moves the cursor from the current word to the beginning of the next word, stopping at delimiting characters and at the end of a line |
(package private) static class |
DefinitionsEditorKit.PreviousWordAction
Moves the cursor to the beginning of the previous word. |
(package private) static class |
DefinitionsEditorKit.SelectWordAction
Defines the action for word selection as in when double-clicking a word. |
| Nested classes/interfaces inherited from class javax.swing.text.StyledEditorKit |
|---|
javax.swing.text.StyledEditorKit.AlignmentAction, javax.swing.text.StyledEditorKit.BoldAction, javax.swing.text.StyledEditorKit.FontFamilyAction, javax.swing.text.StyledEditorKit.FontSizeAction, javax.swing.text.StyledEditorKit.ForegroundAction, javax.swing.text.StyledEditorKit.ItalicAction, javax.swing.text.StyledEditorKit.StyledTextAction, javax.swing.text.StyledEditorKit.UnderlineAction |
| Nested classes/interfaces inherited from class javax.swing.text.DefaultEditorKit |
|---|
javax.swing.text.DefaultEditorKit.BeepAction, javax.swing.text.DefaultEditorKit.CopyAction, javax.swing.text.DefaultEditorKit.CutAction, javax.swing.text.DefaultEditorKit.DefaultKeyTypedAction, javax.swing.text.DefaultEditorKit.InsertBreakAction, javax.swing.text.DefaultEditorKit.InsertContentAction, javax.swing.text.DefaultEditorKit.InsertTabAction, javax.swing.text.DefaultEditorKit.PasteAction |
| Field Summary | |
|---|---|
private javax.swing.Action[] |
_actions
|
private static javax.swing.text.ViewFactory |
_factory
|
private GlobalEventNotifier |
_notifier
|
static java.lang.String |
DELIMITERS
|
| Fields inherited from class javax.swing.text.DefaultEditorKit |
|---|
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 |
| Constructor Summary | |
|---|---|
DefinitionsEditorKit(GlobalEventNotifier notifier)
Creates a new editor kit with the given listeners. |
|
| Method Summary | |
|---|---|
private DefinitionsDocument |
_createDefaultTypedDocument()
Creates a new DefinitionsDocument. |
DefinitionsDocument |
createNewDocument()
Creates a new DefinitionsDocument. |
javax.swing.Action[] |
getActions()
|
java.lang.String |
getContentType()
Get the MIME content type of the document |
javax.swing.text.ViewFactory |
getViewFactory()
We want to use our ColoringView to render text, so here we return a factory that creates ColoringViews. |
| Methods inherited from class javax.swing.text.StyledEditorKit |
|---|
clone, createDefaultDocument, createInputAttributes, deinstall, getCharacterAttributeRun, getInputAttributes, install |
| Methods inherited from class javax.swing.text.DefaultEditorKit |
|---|
createCaret, read, read, write, write |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DELIMITERS
private GlobalEventNotifier _notifier
private javax.swing.Action[] _actions
private static javax.swing.text.ViewFactory _factory
| Constructor Detail |
|---|
public DefinitionsEditorKit(GlobalEventNotifier notifier)
notifier - Keeps track of the listeners to the model| Method Detail |
|---|
public javax.swing.Action[] getActions()
getActions in class javax.swing.text.StyledEditorKitpublic DefinitionsDocument createNewDocument()
private DefinitionsDocument _createDefaultTypedDocument()
public java.lang.String getContentType()
getContentType in class javax.swing.text.DefaultEditorKitpublic final javax.swing.text.ViewFactory getViewFactory()
getViewFactory in class javax.swing.text.StyledEditorKit
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||