/[classpath]/classpath/javax/swing/text/EditorKit.java
ViewVC logotype

Diff of /classpath/javax/swing/text/EditorKit.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by mkoch, Sat Jan 10 21:08:57 2004 UTC revision 1.4 by mark, Thu Jul 22 19:45:39 2004 UTC
# Line 38  exception statement from your version. * Line 38  exception statement from your version. *
38  package javax.swing.text;  package javax.swing.text;
39    
40  import java.io.InputStream;  import java.io.InputStream;
41    import java.io.IOException;
42  import java.io.OutputStream;  import java.io.OutputStream;
43  import java.io.Reader;  import java.io.Reader;
44    import java.io.Serializable;
45  import java.io.Writer;  import java.io.Writer;
46  import javax.swing.Action;  import javax.swing.Action;
47  import javax.swing.JEditorPane;  import javax.swing.JEditorPane;
48    
49  public abstract class EditorKit implements Cloneable  
50    public abstract class EditorKit
51      implements Cloneable, Serializable
52  {  {
53      EditorKit()    private static final long serialVersionUID = -5044124649345887822L;
54      
55      public EditorKit()
56      {      {
57      }      }
58    
59      EditorKit(EditorKit kit)    public Object clone()
60      {      {
61        try
62          {
63            return super.clone();
64      }      }
65        catch (CloneNotSupportedException e)
     void deinstall(JEditorPane c)  
66      {      {
67          //      Called when the kit is being removed from the JEditorPane.          return null;
68      }      }
69      void install(JEditorPane c)    }
70    
71      /**
72       * Called when the kit is being removed from the JEditorPane.
73       */
74      public void deinstall(JEditorPane c)
75      {      {
76      }      }
77    
78      abstract  Caret createCaret();    public void install(JEditorPane c)
79      abstract  Document createDefaultDocument();    {
     abstract  Action[] getActions();  
     abstract  String getContentType();  
     abstract  ViewFactory getViewFactory();  
     abstract  void read(InputStream in, Document doc, int pos);  
     abstract  void read(Reader in, Document doc, int pos);  
     abstract  void write(OutputStream out, Document doc, int pos, int len);  
     abstract  void write(Writer out, Document doc, int pos, int len);      
80  }  }
81    
82      public abstract Caret createCaret();
83      public abstract Document createDefaultDocument();
84      public abstract Action[] getActions();
85      public abstract String getContentType();
86      public abstract ViewFactory getViewFactory();
87      public abstract void read(InputStream in, Document doc, int pos)
88        throws BadLocationException, IOException;
89      public abstract void read(Reader in, Document doc, int pos)
90        throws BadLocationException, IOException;
91      public abstract void write(OutputStream out, Document doc, int pos, int len)
92        throws BadLocationException, IOException;
93      public abstract void write(Writer out, Document doc, int pos, int len)
94        throws BadLocationException, IOException;
95    }

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26