public class ParametersEditorMapper extends Object implements IParametersEditorMapper
| Modifier and Type | Field and Description |
|---|---|
protected LinkedHashMap<String,ClassInfo> |
descMap
Map of the editor descriptions for this mapper.
|
protected LinkedHashMap<String,ClassInfo> |
editorMap
Map of the editors for this mapper.
|
| Constructor and Description |
|---|
ParametersEditorMapper()
Creates an empty ParametersEditorMapper object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addDescriptionProvider(ClassInfo descriptionProviderClass,
String parametersClassName)
Adds a new editor description provider mapping to this mapper.
|
void |
addDescriptionProvider(String descriptionProviderClassName,
String parametersClassName)
Adds a new editor description provider mapping to this mapper.
|
void |
addEditor(ClassInfo editorClass,
String parametersClassName)
Adds a new parameters editor mapping to this mapper.
|
void |
addEditor(String editorClassName,
String parametersClassName)
Adds a new parameters editor mapping to this mapper.
|
void |
clearDescriptionProviders()
Removes all editor mappings for this mapper.
|
void |
clearEditors()
Removes all editor mappings for this mapper.
|
IParametersEditor |
createParametersEditor(String parametersClassName)
Creates an instance of the parameters editor for a given parameters class name.
|
IEditorDescriptionProvider |
getDescriptionProvider(String parametersClassName)
Gets an object that can provide the UI description to use with a generic editor.
|
void |
removeDescriptionProvider(String className)
Removes a given editor description provider from this mapper.
|
void |
removeEditor(String className)
Removes a given editor from this mapper.
|
protected LinkedHashMap<String,ClassInfo> editorMap
protected LinkedHashMap<String,ClassInfo> descMap
public ParametersEditorMapper()
public void addEditor(ClassInfo editorClass, String parametersClassName)
IParametersEditorMapperaddEditor in interface IParametersEditorMappereditorClass - the class information of the editor to add.parametersClassName - the class name of the parameters this editor can edit.
If this class name is already listed, the exiting entry will be replaced by
this one.public void addEditor(String editorClassName, String parametersClassName)
IParametersEditorMapperaddEditor(new ClassInfo(editorClassName)).addEditor in interface IParametersEditorMappereditorClassName - the class name of the editor to add.parametersClassName - the class name of the parameters this editor can edit.
If this class name is already listed, the exiting entry will be replaced by
this one.public void addDescriptionProvider(ClassInfo descriptionProviderClass, String parametersClassName)
IParametersEditorMapperaddDescriptionProvider in interface IParametersEditorMapperdescriptionProviderClass - the class information of the editor description
provider to add.parametersClassName - the class name of the parameters this editor can edit.
If this class name is already listed, the exiting entry will be replaced by
this one.public void addDescriptionProvider(String descriptionProviderClassName, String parametersClassName)
IParametersEditorMapperaddDescriptionProvider(new ClassInfo(descriptionProviderClassName)).addDescriptionProvider in interface IParametersEditorMapperdescriptionProviderClassName - the class name of the editor description
provider to add.parametersClassName - the class name of the parameters this editor can edit.
If this class name is already listed, the exiting entry will be replaced by
this one.public void clearEditors()
IParametersEditorMapperclearEditors in interface IParametersEditorMapperpublic void clearDescriptionProviders()
IParametersEditorMapperclearDescriptionProviders in interface IParametersEditorMapperpublic void removeEditor(String className)
IParametersEditorMapperremoveEditor in interface IParametersEditorMapperclassName - the class name of the editor to remove.public void removeDescriptionProvider(String className)
IParametersEditorMapperremoveDescriptionProvider in interface IParametersEditorMapperclassName - the class name of the editor description provider to remove.public IParametersEditor createParametersEditor(String parametersClassName)
IParametersEditorMappercreateParametersEditor in interface IParametersEditorMapperparametersClassName - the parameters class name to use for lookup.public IEditorDescriptionProvider getDescriptionProvider(String parametersClassName)
IParametersEditorMappergetDescriptionProvider in interface IParametersEditorMapperparametersClassName - the name of the class for which to get the description provider.Copyright © 2022. All rights reserved.