/[classpath]/classpath/java/beans/PropertyEditorManager.java
ViewVC logotype

Diff of /classpath/java/beans/PropertyEditorManager.java

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

revision 1.9.2.2 by gnu_andrew, Tue Aug 2 20:12:16 2005 UTC revision 1.9.2.3 by gnu_andrew, Sun Oct 16 17:12:06 2005 UTC
# Line 83  import java.awt.Font; Line 83  import java.awt.Font;
83    
84  public class PropertyEditorManager  public class PropertyEditorManager
85  {  {
86    static java.util.Hashtable editors = new java.util.Hashtable();    static java.util.Hashtable<Class<?>,Class<?>> editors =
87        new java.util.Hashtable<Class<?>,Class<?>>();
88    static String[] editorSearchPath = { "gnu.java.beans.editors",    static String[] editorSearchPath = { "gnu.java.beans.editors",
89                                         "sun.beans.editors" };                                         "sun.beans.editors" };
90    
# Line 118  public class PropertyEditorManager Line 119  public class PropertyEditorManager
119     *        will edit.     *        will edit.
120     * @param editorClass the PropertyEditor class.     * @param editorClass the PropertyEditor class.
121     */     */
122    public static void registerEditor(Class editedClass, Class editorClass)    public static void registerEditor(Class<?> editedClass, Class<?> editorClass)
123    {    {
124      editors.put(editedClass, editorClass);      editors.put(editedClass, editorClass);
125    }    }
# Line 132  public class PropertyEditorManager Line 133  public class PropertyEditorManager
133     * @return a PropertyEditor instance that can edit the     * @return a PropertyEditor instance that can edit the
134     *         specified class.     *         specified class.
135     */     */
136    public static PropertyEditor findEditor(Class editedClass)    public static PropertyEditor findEditor(Class<?> editedClass)
137    {    {
138      try      try
139        {        {

Legend:
Removed from v.1.9.2.2  
changed lines
  Added in v.1.9.2.3

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