Package adams.gui.goe

Class Editors

  • public class Editors
    extends Object
    Registers all the editors for the GenericObjectEditor/GenericArrayEditor.
    fracpete (fracpete at waikato dot ac dot nz)
    • Field Detail


        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.
    • Constructor Detail

      • Editors

        public Editors()
    • Method Detail

      • getAvailableEditors

        protected static Properties getAvailableEditors()
        Generates the list of editors to register, based on the classes listed in the ClassLister.props file.
        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.
        the blacklisted class properties
      • isBlacklisted

        public static boolean isBlacklisted​(Class cls,
                                            boolean array)
        Checks whether the class has been blacklisted.
        cls - the class to check
        array - whether to look for an array definition
        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.
        cls - the class to check
        property - the property to check
        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.
        cls - the class to register the editor for
        clsEditor - the custom editor
        true if successfully registered
      • getCustomEditors

        protected static Properties getCustomEditors()
        Returns the properties file with the custom editors.
        the props file
      • registerCustomEditors

        protected static void registerCustomEditors()
        Registers all custom editors and adds the hooks as well.