Package adams.gui.goe
Class WekaEditorsRegistration
- java.lang.Object
-
- adams.gui.goe.AbstractEditorRegistration
-
- adams.gui.goe.WekaEditorsRegistration
-
- All Implemented Interfaces:
Serializable
public class WekaEditorsRegistration extends adams.gui.goe.AbstractEditorRegistrationRegisters first the WEKA GenericObjectEditor editors and the ADAMS ones.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWekaEditorsRegistration.AccessibleGenericObjectEditorSubclass ofGenericObjectEditorto get access to the class hierarchies.static classWekaEditorsRegistration.AccessiblePluginManagerFor getting access to protected members in the package manager.
-
Field Summary
Fields Modifier and Type Field Description protected static Set<Class>m_AlreadRegisteredprotected static booleanm_Registeredwhether registration already occurred.protected static booleanm_UseWekaEditorswhether to use the Weka editors.static StringPROPERTY_WEKAEDITORSproperty indicating whether to use the Weka editors instead of the Adams ones.
-
Constructor Summary
Constructors Constructor Description WekaEditorsRegistration()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleandoRegister()Performs the registration of the editors.protected booleanhasRegistered()Returns whether registration already occurred.protected voidregisterEditors(Map<String,Map<String,String>> hierarchies)Reregisters class hierarchies with ADAMS object editors.protected voidregisterEditors(Properties props)Reregisters class hierarchies with ADAMS object editors.protected voidregisterHierarchies(Map<String,Map<String,String>> hierarchies)Registers the class hierarchies with ADAMS.protected voidregisterHierarchies(Properties props)Registers the class hierarchies with ADAMS.static booleanuseWekaEditors()Returns whether Weka editors should be used.
-
-
-
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.
-
-
Method Detail
-
hasRegistered
protected boolean hasRegistered()
Returns whether registration already occurred.- Specified by:
hasRegisteredin classadams.gui.goe.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:
doRegisterin classadams.gui.goe.AbstractEditorRegistration- Returns:
- true if registration successful
-
-