This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[GUI] Patch: javax.swing.JEditorPane


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi list,


I just commited the attached patch to fix visibility of the methods in 
javax.swing.JEditorPane.


Michael


2004-06-10  Michael Koch  <konqueror@gmx.de>

	* javax/swing/JEditorPane.java
	(createEditorKitForContentType): Fixed visibility.
	(fireHyperlinkUpdate): Likewise.
	(getContentType): Likewise.
	(getEditorKit): Likewise.
	(getEditorKitForContentType): Likewise.
	(getPage): Likewise.
	(read): Likewise.
	(registerEditorKitForContentTyoe): Likewise.
	(replaceSelection): Likewise.
	(setContentType): Likewise.
	(setEditorKit): Likewise.
	(setPage): Likewise.


- -- 
Homepage: http://www.worldforge.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAyEWYWSOgCCdjSDsRAgrwAJwMLxsDPtFZWDJgxXsqPE/0ZO2Y+ACfUeAV
EcE+13QxyNcr+fsmoJ1WLT0=
=zPAr
-----END PGP SIGNATURE-----
Index: javax/swing/JEditorPane.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/javax/swing/JEditorPane.java,v
retrieving revision 1.5.2.1
diff -u -b -B -r1.5.2.1 JEditorPane.java
--- javax/swing/JEditorPane.java	10 Jun 2004 08:49:07 -0000	1.5.2.1
+++ javax/swing/JEditorPane.java	10 Jun 2004 11:24:57 -0000
@@ -85,12 +85,12 @@
     return new PlainEditorKit();
   }
 
-  static EditorKit createEditorKitForContentType(String type)
+  protected static EditorKit createEditorKitForContentType(String type)
   {
     return new PlainEditorKit();
   }
 
-  void fireHyperlinkUpdate(HyperlinkEvent e)
+  public void fireHyperlinkUpdate(HyperlinkEvent e)
   {
   }
 
@@ -99,22 +99,22 @@
     return null;
   }
 
-  String getContentType()
+  public String getContentType()
   {
     return ctype;
   }
 
-  EditorKit getEditorKit()
+  public EditorKit getEditorKit()
   {
     return kit;
   }
 
-  static String getEditorKitClassNameForContentType(String type)
+  public static String getEditorKitClassNameForContentType(String type)
   {
     return "text/plain";
   }
 
-  EditorKit getEditorKitForContentType(String type)
+  public EditorKit getEditorKitForContentType(String type)
   {
     return kit;
   }
@@ -135,7 +135,7 @@
     return false;
   }
 
-  URL getPage()
+  public URL getPage()
   {
     return page_url;
   }
@@ -188,23 +188,25 @@
     //Make sure that TAB and Shift-TAB events get consumed, so that awt doesn't attempt focus traversal.  
   }
 
-  void read(InputStream in, Object desc)
+  public void read(InputStream in, Object desc)
   {
     //This method initializes from a stream. 
   }
 
-  static void registerEditorKitForContentType(String type, String classname)
+  public static void registerEditorKitForContentType(String type,
+                                                     String classname)
   {
     //Establishes the default bindings of type to classname. 
   }
 
-  static void registerEditorKitForContentType(String type, String classname,
+  public static void registerEditorKitForContentType(String type,
+                                                     String classname,
                                               ClassLoader loader)
   {
     //Establishes the default bindings of type to classname.  
   }
 
-  void replaceSelection(String content)
+  public void replaceSelection(String content)
   {
     //Replaces the currently selected content with new content represented by the given string. 
   }
@@ -214,32 +216,32 @@
     //Scrolls the view to the given reference location (that is, the value returned by the UL.getRef method for the URL being displayed).  
   }
 
-  void setContentType(String type)
+  public void setContentType(String type)
   {
     ctype = type;
     invalidate();
     repaint();
   }
 
-  void setEditorKit(EditorKit kit)
+  public void setEditorKit(EditorKit kit)
   {
     this.kit = kit;
     invalidate();
     repaint();
   }
 
-  void setEditorKitForContentType(String type, EditorKit k)
+  public void setEditorKitForContentType(String type, EditorKit k)
   {
     ctype = type;
     setEditorKit(k);
   }
 
-  void setPage(String url) throws IOException
+  public void setPage(String url) throws IOException
   {
     //  Sets the current URL being displayed.  
   }
 
-  void setPage(URL page) throws IOException
+  public void setPage(URL page) throws IOException
   {
     //    Sets the current URL being displayed.  
   }

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]