1 16 17 package swingwtx.swing.text; 18 19 import java.io.*; 20 import swingwtx.swing.*; 21 22 public abstract class EditorKit implements Cloneable , Serializable { 23 24 public EditorKit() { 25 } 26 public Object clone() { 27 Object o; 28 try { 29 o = super.clone(); 30 } catch (CloneNotSupportedException 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 getContentType(); 40 public abstract Action[] getActions(); 42 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 |