|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.merlotxml.merlot.MerlotEditorFactory
Factory singleton to get editors for particular types of nodes and elements. This is the class that gets editor panels from plugins for whatever element type they want to handle. otherwise, this produces a generic Xml component editor
Field Summary | |
protected MerlotDOMEditor |
_default
The global default editor |
protected MerlotDOMEditor |
_defaultSchemaEditor
The defalt schema editor |
protected java.util.Hashtable |
_globalEditors
Global editors as defined in the main application properties file with the key merlot.editor.classes |
protected static MerlotEditorFactory |
_instance
Singleton instance |
Method Summary | |
MerlotDOMEditor |
getEditor(java.lang.String nodeName,
DTDPluginConfig config)
This method gets an editor panel for a particular node. |
MerlotDOMEditor |
getEditor(java.lang.String nodeName,
DTDPluginConfig config,
boolean useSchema)
|
static java.util.List |
getEditorClasses(java.lang.String classes,
java.lang.ClassLoader loader)
returns a list of editor panel classes loaded from the given classloader |
static MerlotEditorFactory |
getInstance()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static MerlotEditorFactory _instance
protected java.util.Hashtable _globalEditors
protected MerlotDOMEditor _default
protected MerlotDOMEditor _defaultSchemaEditor
Method Detail |
public static java.util.List getEditorClasses(java.lang.String classes, java.lang.ClassLoader loader)
public static MerlotEditorFactory getInstance()
public MerlotDOMEditor getEditor(java.lang.String nodeName, DTDPluginConfig config) throws java.lang.InstantiationException, java.lang.IllegalAccessException
nodeName
- the name of the node (should not be null)
java.lang.InstantiationException
java.lang.IllegalAccessException
public MerlotDOMEditor getEditor(java.lang.String nodeName, DTDPluginConfig config, boolean useSchema) throws java.lang.InstantiationException, java.lang.IllegalAccessException
java.lang.InstantiationException
java.lang.IllegalAccessException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |