<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<!--NewPage-->
<html>
<head>
<!-- Generated by javadoc on Wed Jul 28 01:21:15 GMT 1999 -->
<title>
  Class java.beans.PropertyEditorManager
</title>
</head>
<body>
<a name="_top_"></a>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.beans.html">This Package</a>  <a href="java.beans.PropertyDescriptor.html#_top_">Previous</a>  <a href="java.beans.PropertyEditorSupport.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
<hr>
<h1>
  Class java.beans.PropertyEditorManager
</h1>
<pre>
<a href="java.lang.Object.html#_top_">java.lang.Object</a>
   |
   +----java.beans.PropertyEditorManager
</pre>
<hr>
<dl>
  <dt> public class <b>PropertyEditorManager</b>
  <dt> extends <a href="java.lang.Object.html#_top_">Object</a>
</dl>
The PropertyEditorManager can be used to locate a property editor for
 any given type name.  This property editor must support the
 java.beans.PropertyEditor interface for editing a given object.
 <P>
 The PropertyEditorManager uses three techniques for locating an editor
 for a given type.  First, it provides a registerEditor method to allow
 an editor to be specifically registered for a given type.  Second it
 tries to locate a suitable class by adding "Editor" to the full 
 qualified classname of the given type (e.g. "foo.bah.FozEditor").
 Finally it takes the simple classname (without the package name) adds
 "Editor" to it and looks in a search-path of packages for a matching
 class.
 <P>
 So for an input class foo.bah.Fred, the PropertyEditorManager would
 first look in its tables to see if an editor had been registered for
 foo.bah.Fred and if so use that.  Then it will look for a
 foo.bah.FredEditor class.  Then it will look for (say) 
 standardEditorsPackage.FredEditor class.
 <p>
 Default PropertyEditors will be provided for the Java builtin types
 "boolean", "byte", "short", "int", "long", "float", and "double"; and
 for the classes java.lang.String. java.awt.Color, and java.awt.Font.
<p>
<hr>
<a name="index"></a>
<h2>
  <img src="images/constructor-index.gif" width=275 height=38 alt="Constructor Index">
</h2>
<dl>
  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#PropertyEditorManager()"><b>PropertyEditorManager</b></a>()
  <dd> 
</dl>
<h2>
  <img src="images/method-index.gif" width=207 height=38 alt="Method Index">
</h2>
<dl>
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#findEditor(java.lang.Class)"><b>findEditor</b></a>(Class)
  <dd>  Locate a value editor for a given target type.
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getEditorSearchPath()"><b>getEditorSearchPath</b></a>()
  <dd>  
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#registerEditor(java.lang.Class, java.lang.Class)"><b>registerEditor</b></a>(Class, Class)
  <dd>  Register an editor class to be used to editor values of
 a given target class.
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#setEditorSearchPath(java.lang.String[])"><b>setEditorSearchPath</b></a>(String[])
  <dd>  Change the list of package names that will be used for
		finding property editors.
</dl>
<a name="constructors"></a>
<h2>
  <img src="images/constructors.gif" width=231 height=38 alt="Constructors">
</h2>
<a name="PropertyEditorManager"></a>
<a name="PropertyEditorManager()"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>PropertyEditorManager</b>
<pre>
 public PropertyEditorManager()
</pre>
<a name="methods"></a>
<h2>
  <img src="images/methods.gif" width=151 height=38 alt="Methods">
</h2>
<a name="registerEditor(java.lang.Class, java.lang.Class)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="registerEditor"><b>registerEditor</b></a>
<pre>
 public static void registerEditor(<a href="java.lang.Class.html#_top_">Class</a> targetType,
                                   <a href="java.lang.Class.html#_top_">Class</a> editorClass)
</pre>
<dl>
  <dd> Register an editor class to be used to editor values of
 a given target class.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> targetType - the Class object of the type to be edited
    <dd> editorClass - the Class object of the editor class.  If
	   this is null, then any existing definition will be removed.
  </dl></dd>
</dl>
<a name="findEditor(java.lang.Class)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="findEditor"><b>findEditor</b></a>
<pre>
 public static <a href="java.beans.PropertyEditor.html#_top_">PropertyEditor</a> findEditor(<a href="java.lang.Class.html#_top_">Class</a> targetType)
</pre>
<dl>
  <dd> Locate a value editor for a given target type.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> targetType - The Class object for the type to be edited
    <dt> <b>Returns:</b>
    <dd> An editor object for the given target class.
 The result is null if no suitable editor can be found.
  </dl></dd>
</dl>
<a name="getEditorSearchPath()"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getEditorSearchPath"><b>getEditorSearchPath</b></a>
<pre>
 public static <a href="java.lang.String.html#_top_">String</a>[] getEditorSearchPath()
</pre>
<dl>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> The array of package names that will be searched in
		order to find property editors.
 <p>     This is initially set to {"sun.beans.editors"}.
  </dl></dd>
</dl>
<a name="setEditorSearchPath(java.lang.String[])"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="setEditorSearchPath"><b>setEditorSearchPath</b></a>
<pre>
 public static void setEditorSearchPath(<a href="java.lang.String.html#_top_">String</a> path[])
</pre>
<dl>
  <dd> Change the list of package names that will be used for
		finding property editors.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> path - Array of package names.
  </dl></dd>
</dl>
<hr>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.beans.html">This Package</a>  <a href="java.beans.PropertyDescriptor.html#_top_">Previous</a>  <a href="java.beans.PropertyEditorSupport.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
</body>
</html>
