1 7 package javax.swing.text; 8 9 import java.io.*; 10 import javax.swing.Action ; 11 import javax.swing.JEditorPane ; 12 13 31 public abstract class EditorKit implements Cloneable , Serializable { 32 33 36 public EditorKit() { 37 } 38 39 46 public Object clone() { 47 Object o; 48 try { 49 o = super.clone(); 50 } catch (CloneNotSupportedException cnse) { 51 o = null; 52 } 53 return o; 54 } 55 56 62 public void install(JEditorPane c) { 63 } 64 65 72 public void deinstall(JEditorPane c) { 73 } 74 75 81 public abstract String getContentType(); 82 83 90 public abstract ViewFactory getViewFactory(); 91 92 99 public abstract Action [] getActions(); 100 101 107 public abstract Caret createCaret(); 108 109 115 public abstract Document createDefaultDocument(); 116 117 130 public abstract void read(InputStream in, Document doc, int pos) 131 throws IOException, BadLocationException ; 132 133 146 public abstract void write(OutputStream out, Document doc, int pos, int len) 147 throws IOException, BadLocationException ; 148 149 167 public abstract void read(Reader in, Document doc, int pos) 168 throws IOException, BadLocationException ; 169 170 188 public abstract void write(Writer out, Document doc, int pos, int len) 189 throws IOException, BadLocationException ; 190 191 } 192 | Popular Tags |