|
Préférences
Moteurs de recherche
|
||||||||||||||||
| JavaTM 2 Platform Std. Ed. v1.4.2
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 edited
public 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()