Package adams.gui.goe

Class WekaEditorsRegistration

  • All Implemented Interfaces:
    Serializable

    public class WekaEditorsRegistration
    extends AbstractEditorRegistration
    Registers first the WEKA GenericObjectEditor editors and the ADAMS ones.
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Field Detail

      • PROPERTY_WEKAEDITORS

        public static final String PROPERTY_WEKAEDITORS
        property indicating whether to use the Weka editors instead of the Adams ones.
        See Also:
        Constant Field Values
      • m_UseWekaEditors

        protected static boolean m_UseWekaEditors
        whether to use the Weka editors.
      • m_Registered

        protected static boolean m_Registered
        whether registration already occurred.
      • m_AlreadRegistered

        protected static Set<Class> m_AlreadRegistered
    • Constructor Detail

      • WekaEditorsRegistration

        public WekaEditorsRegistration()
    • Method Detail

      • hasRegistered

        protected boolean hasRegistered()
        Returns whether registration already occurred.
        Specified by:
        hasRegistered in class AbstractEditorRegistration
        Returns:
        true if registration already occurred
      • registerEditors

        protected void registerEditors​(Properties props)
        Reregisters class hierarchies with ADAMS object editors.
        Parameters:
        props - the Weka class hierarchies
      • registerHierarchies

        protected void registerHierarchies​(Properties props)
        Registers the class hierarchies with ADAMS.
        Parameters:
        props - the Weka class hierarchies
      • registerEditors

        protected void registerEditors​(Map<String,​Map<String,​String>> hierarchies)
        Reregisters class hierarchies with ADAMS object editors.
        Parameters:
        hierarchies - the Weka class hierarchies
      • registerHierarchies

        protected void registerHierarchies​(Map<String,​Map<String,​String>> hierarchies)
        Registers the class hierarchies with ADAMS.
        Parameters:
        hierarchies - the Weka class hierarchies
      • useWekaEditors

        public static boolean useWekaEditors()
        Returns whether Weka editors should be used.
        Returns:
        true if to use Weka editors
      • doRegister

        protected boolean doRegister()
        Performs the registration of the editors.
        Specified by:
        doRegister in class AbstractEditorRegistration
        Returns:
        true if registration successful