public class GenericObjectEditor
extends weka.gui.GenericObjectEditor
Modifier and Type | Field and Description |
---|---|
static boolean |
DEBUG
whether to output some debugging information.
|
protected static boolean |
m_MekaEditorsRegistered
whether the MEAK Editors were already registered.
|
protected static Properties |
MEKA_EDITOR_PROPERTIES
Contains the editor properties.
|
static String |
MEKA_GUIEDITORS_PROPERTY_FILE
the properties files containing the class/editor mappings.
|
EDITOR_PROPERTIES, GUIEDITORS_PROPERTY_FILE, m_Backup, m_canChangeClassInDialog, m_CapabilitiesFilter, m_ClassType, m_EditorComponent, m_EditorsRegistered, m_Enabled, m_History, m_Object, m_ObjectNames, m_ObjectPropertyPanel, m_ShowGlobalInfoToolTip, m_Support, m_treeNodeOfCurrentObject, PROPERTY_FILE
Constructor and Description |
---|
GenericObjectEditor()
Default constructor.
|
GenericObjectEditor(boolean canChangeClassInDialog)
Constructor that allows specifying whether it is possible
to change the class within the editor dialog.
|
Modifier and Type | Method and Description |
---|---|
static void |
determineAllClasses() |
static JComponent |
findView(PropertyEditor editor)
Tries to determine a view for the editor.
|
JPopupMenu |
getChooseClassPopupMenu()
Returns a popup menu that allows the user to change the class of object.
|
protected Hashtable<String,weka.gui.HierarchyPropertyParser> |
getClassesFromProperties()
Called when the class of object being edited changes.
|
Class |
getClassType()
Returns the class of values that can be edited.
|
static void |
main(String[] args)
For testing only.
|
static void |
registerAllEditors()
registers all the editors in WEKA and MEKA.
|
addChildrenToTree, addPropertyChangeListener, classSelected, createChooseClassButton, createTree, determineClasses, getAsText, getBackup, getCanChangeClassInDialog, getCapabilitiesFilter, getClassnameFromPath, getClassnames, getCustomEditor, getCustomPanel, getHistory, getJavaInitializationString, getRootFromClass, getShowGlobalInfoToolTips, getTags, getValue, isPaintable, makeCopy, paintValue, registerEditor, registerEditors, removeCapabilitiesFilter, removePropertyChangeListener, setAsText, setCanChangeClassInDialog, setCapabilitiesFilter, setClassType, setDefaultValue, setEnabled, setObject, setShowGlobalInfoToolTips, setValue, sortClassesByRoot, supportsCustomEditor, updateObjectNames
protected static Properties MEKA_EDITOR_PROPERTIES
public static final String MEKA_GUIEDITORS_PROPERTY_FILE
public static boolean DEBUG
protected static boolean m_MekaEditorsRegistered
public GenericObjectEditor()
public GenericObjectEditor(boolean canChangeClassInDialog)
canChangeClassInDialog
- whether the user can change the classpublic static void determineAllClasses()
public static void registerAllEditors()
protected Hashtable<String,weka.gui.HierarchyPropertyParser> getClassesFromProperties()
getClassesFromProperties
in class weka.gui.GenericObjectEditor
public JPopupMenu getChooseClassPopupMenu()
getChooseClassPopupMenu
in class weka.gui.GenericObjectEditor
public Class getClassType()
public static void main(String[] args)
args
- ignoredpublic static JComponent findView(PropertyEditor editor)
editor
- the editor to get the view forCopyright © 2017. All Rights Reserved.