Whole document tree
java.beans
|
Constructor Summary | |
PropertyEditorManager()
|
Method Summary | |
static PropertyEditor |
findEditor(Class targetType)
Locate a value editor for a given target type. |
static String[] |
getEditorSearchPath()
Gets the package names that will be searched for property editors. |
static void |
registerEditor(Class targetType,
Class editorClass)
Register an editor class to be used to editor values of a given target class. |
static void |
setEditorSearchPath(String[] path)
Change the list of package names that will be used for finding property editors. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PropertyEditorManager()
Method Detail |
public static void registerEditor(Class targetType, Class editorClass)
First, if there is a security manager, its checkPropertiesAccess
method is called. This could result in a SecurityException.
targetType
- the Class object of the type to be editededitorClass
- the Class object of the editor class. If
this is null, then any existing definition will be removed.SecurityException
- if a security manager exists and its
checkPropertiesAccess
method doesn't allow setting
of system properties.SecurityManager.checkPropertiesAccess()
public static PropertyEditor findEditor(Class targetType)
targetType
- The Class object for the type to be editedpublic static String[] getEditorSearchPath()
This is initially set to {"sun.beans.editors"}.
public static void setEditorSearchPath(String[] path)
First, if there is a security manager, its checkPropertiesAccess
method is called. This could result in a SecurityException.
path
- Array of package names.SecurityException
- if a security manager exists and its
checkPropertiesAccess
method doesn't allow setting
of system properties.SecurityManager.checkPropertiesAccess()
|
JavaTM 2 Platform Std. Ed. v1.3.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2001 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.