Package adams.gui.goe
Class Editors
- java.lang.Object
-
- adams.gui.goe.Editors
-
public class Editors extends Object
Registers all the editors for the GenericObjectEditor/GenericArrayEditor.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Field Summary
Fields Modifier and Type Field Description static String
BLACKLIST
the name of the props file with the blacklisted classes.static String
FILENAME
the name of the props file.protected static Properties
m_BlacklistedClasses
the blacklisted classes.
-
Constructor Summary
Constructors Constructor Description Editors()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static Properties
getAvailableEditors()
Generates the list of editors to register, based on the classes listed in the ClassLister.props file.protected static Properties
getBlacklistedClasses()
Returns the properties storing the blacklisted classes.protected static Properties
getCustomEditors()
Returns the properties file with the custom editors.static boolean
isBlacklisted(Class cls, boolean array)
Checks whether the class has been blacklisted.static boolean
isBlacklisted(Class cls, String property)
Checks whether the property of the specified class has been blacklisted.protected static void
registerBasicEditors()
For registering editors for basic Java types.static boolean
registerCustomEditor(Class cls, Class clsEditor)
Registers a custom editor for a certain class.protected static void
registerCustomEditors()
Registers all custom editors and adds the hooks as well.static void
registerEditors()
registers all the editors.
-
-
-
Field Detail
-
FILENAME
public static final String FILENAME
the name of the props file.- See Also:
- Constant Field Values
-
BLACKLIST
public static final String BLACKLIST
the name of the props file with the blacklisted classes.- See Also:
- Constant Field Values
-
m_BlacklistedClasses
protected static Properties m_BlacklistedClasses
the blacklisted classes.
-
-
Method Detail
-
getAvailableEditors
protected static Properties getAvailableEditors()
Generates the list of editors to register, based on the classes listed in the ClassLister.props file.- Returns:
- the generated props file
-
registerEditors
public static void registerEditors()
registers all the editors.
-
getBlacklistedClasses
protected static Properties getBlacklistedClasses()
Returns the properties storing the blacklisted classes.- Returns:
- the blacklisted class properties
-
isBlacklisted
public static boolean isBlacklisted(Class cls, boolean array)
Checks whether the class has been blacklisted.- Parameters:
cls
- the class to checkarray
- whether to look for an array definition- Returns:
- true if the class is blacklisted
-
isBlacklisted
public static boolean isBlacklisted(Class cls, String property)
Checks whether the property of the specified class has been blacklisted. If the class itself is blacklisted, this will also return true.- Parameters:
cls
- the class to checkproperty
- the property to check- Returns:
- true if the class's property is blacklisted
-
registerBasicEditors
protected static void registerBasicEditors()
For registering editors for basic Java types.
-
registerCustomEditor
public static boolean registerCustomEditor(Class cls, Class clsEditor)
Registers a custom editor for a certain class. Automatically adds the registering of the array editor.- Parameters:
cls
- the class to register the editor forclsEditor
- the custom editor- Returns:
- true if successfully registered
-
getCustomEditors
protected static Properties getCustomEditors()
Returns the properties file with the custom editors.- Returns:
- the props file
-
registerCustomEditors
protected static void registerCustomEditors()
Registers all custom editors and adds the hooks as well.
-
-