public final class EditorFactory extends Object
Modifier and Type | Method and Description |
---|---|
static EditorFactory |
getInstance()
Returns the singleton instance of this factory or creates a new one if no already done.
|
ModuleEditor |
getModule(org.pentaho.reporting.libraries.base.boot.Module module,
org.pentaho.reporting.libraries.base.config.HierarchicalConfiguration config,
ConfigDescriptionEntry[] keyNames)
Returns the module editor that will be most suitable for editing the given module.
|
void |
registerModuleEditor(ModuleEditor editor,
int priority)
Registers a module editor with this factory.
|
public static EditorFactory getInstance()
public void registerModuleEditor(ModuleEditor editor, int priority)
editor
- the editor that should be registered.priority
- the priority.public ModuleEditor getModule(org.pentaho.reporting.libraries.base.boot.Module module, org.pentaho.reporting.libraries.base.config.HierarchicalConfiguration config, ConfigDescriptionEntry[] keyNames)
module
- the module that should be edited.config
- the configuration which will supply the values for the edited keys.keyNames
- the configuration entries which should be edited within the module.