public class DefaultModuleEditor extends Object implements ModuleEditor
Constructor and Description |
---|
DefaultModuleEditor()
Creates a new, uninitialized module editor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canHandle(org.pentaho.reporting.libraries.base.boot.Module module)
Checks whether this module editor can handle the given module.
|
ModuleEditor |
createInstance(org.pentaho.reporting.libraries.base.boot.Module module,
org.pentaho.reporting.libraries.base.config.HierarchicalConfiguration config,
ConfigDescriptionEntry[] keyNames)
Creates a new, initialized instance of the default module editor.
|
JComponent |
getComponent()
Returns the editor component of the module.
|
void |
reset()
Resets all keys to the values from the report configuration.
|
void |
store()
Stores all values for the editor's keys into the report configuration.
|
public DefaultModuleEditor()
public ModuleEditor createInstance(org.pentaho.reporting.libraries.base.boot.Module module, org.pentaho.reporting.libraries.base.config.HierarchicalConfiguration config, ConfigDescriptionEntry[] keyNames)
createInstance
in interface ModuleEditor
module
- the module that should be edited.config
- the report configuration used to fill the values of the editors.keyNames
- the list of keynames this module editor should handle.ModuleEditor.createInstance(Module, HierarchicalConfiguration, ConfigDescriptionEntry[])
public boolean canHandle(org.pentaho.reporting.libraries.base.boot.Module module)
canHandle
in interface ModuleEditor
module
- the module to be edited.ModuleEditor.canHandle(Module)
public JComponent getComponent()
getComponent
in interface ModuleEditor
public void reset()
reset
in interface ModuleEditor
public void store()
store
in interface ModuleEditor