KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > swingwtx > swing > text > EditorKit


1 /*
2    SwingWT
3    Copyright(c)2003-2004, R. Rawson-Tetley
4
5    For more information on distributing and using this program, please
6    see the accompanying "COPYING" file.
7
8    Contact me by electronic mail: bobintetley@users.sourceforge.net
9
10    $Log: EditorKit.java,v $
11    Revision 1.1 2004/01/27 09:39:30 bobintetley
12    Text/Document support
13
14
15 */

16
17 package swingwtx.swing.text;
18
19 import java.io.*;
20 import swingwtx.swing.*;
21
22 public abstract class EditorKit implements Cloneable JavaDoc, Serializable {
23
24     public EditorKit() {
25     }
26     public Object JavaDoc clone() {
27     Object JavaDoc o;
28     try {
29         o = super.clone();
30     } catch (CloneNotSupportedException JavaDoc cnse) {
31         o = null;
32     }
33     return o;
34     }
35     public void install(JEditorPane c) {
36     }
37     public void deinstall(JEditorPane c) {
38     }
39     public abstract String JavaDoc getContentType();
40     //public abstract ViewFactory getViewFactory();
41
public abstract Action[] getActions();
42     //public abstract Caret createCaret();
43
public abstract Document createDefaultDocument();
44     public abstract void read(InputStream in, Document doc, int pos)
45     throws IOException, BadLocationException;
46     public abstract void write(OutputStream out, Document doc, int pos, int len)
47     throws IOException, BadLocationException;
48     public abstract void read(Reader in, Document doc, int pos)
49     throws IOException, BadLocationException;
50     public abstract void write(Writer out, Document doc, int pos, int len)
51     throws IOException, BadLocationException;
52
53 }
54
Popular Tags