| java.lang.Object javax.swing.text.EditorKit javax.swing.text.DefaultEditorKit javax.swing.text.StyledEditorKit tide.editor.SourceEditorKit
SourceEditorKit | public class SourceEditorKit extends StyledEditorKit (Code) | | Here we can add actions, to the ones defined in DefaultEditorKit and StyledEditorKit.
Usage: just create and set this to be the editorpane's kit with editor.setEditorKit( kit );
|
Inner Class :final public static class CaretEndLine extends StyledTextAction | |
Inner Class :final public static class SelectWord extends StyledTextAction | |
CommentLinesActionName | final public static String CommentLinesActionName(Code) | | |
DeleteLineActionName | final public static String DeleteLineActionName(Code) | | |
IndentLinesActionName | final public static String IndentLinesActionName(Code) | | |
UncommentLinesActionName | final public static String UncommentLinesActionName(Code) | | |
UnindentLinesActionName | final public static String UnindentLinesActionName(Code) | | |
UppercaseWordActionName | final public static String UppercaseWordActionName(Code) | | |
addActions | public void addActions(JMenu menu)(Code) | | Helper method to add the actions defined here to a menu.
Very useful in a MenuBar: They make the editor shortcuts visible to the user.
|
install | public void install(JEditorPane c)(Code) | | Installs the editorkit in the text pane and map the keys.
|
isValidJavaID | public static boolean isValidJavaID(CharSequence sb, boolean acceptPts)(Code) | | |
Methods inherited from javax.swing.text.DefaultEditorKit | public Caret createCaret()(Code)(Java Doc) public Document createDefaultDocument()(Code)(Java Doc) public Action[] getActions()(Code)(Java Doc) public String getContentType()(Code)(Java Doc) public ViewFactory getViewFactory()(Code)(Java Doc) public void read(InputStream in, Document doc, int pos) throws IOException, BadLocationException(Code)(Java Doc) public void read(Reader in, Document doc, int pos) throws IOException, BadLocationException(Code)(Java Doc) public void write(OutputStream out, Document doc, int pos, int len) throws IOException, BadLocationException(Code)(Java Doc) public void write(Writer out, Document doc, int pos, int len) throws IOException, BadLocationException(Code)(Java Doc)
|
Methods inherited from javax.swing.text.EditorKit | public Object clone()(Code)(Java Doc) abstract public Caret createCaret()(Code)(Java Doc) abstract public Document createDefaultDocument()(Code)(Java Doc) public void deinstall(JEditorPane c)(Code)(Java Doc) abstract public Action[] getActions()(Code)(Java Doc) abstract public String getContentType()(Code)(Java Doc) abstract public ViewFactory getViewFactory()(Code)(Java Doc) public void install(JEditorPane c)(Code)(Java Doc) abstract public void read(InputStream in, Document doc, int pos) throws IOException, BadLocationException(Code)(Java Doc) abstract public void read(Reader in, Document doc, int pos) throws IOException, BadLocationException(Code)(Java Doc) abstract public void write(OutputStream out, Document doc, int pos, int len) throws IOException, BadLocationException(Code)(Java Doc) abstract public void write(Writer out, Document doc, int pos, int len) throws IOException, BadLocationException(Code)(Java Doc)
|
|
|