Class ParametersEditorMapper

    • Constructor Detail

      • ParametersEditorMapper

        public ParametersEditorMapper()
        Creates an empty ParametersEditorMapper object.
    • Method Detail

      • addEditor

        public void addEditor​(ClassInfo editorClass,
                              String parametersClassName)
        Description copied from interface: IParametersEditorMapper
        Adds a new parameters editor mapping to this mapper.
        Specified by:
        addEditor in interface IParametersEditorMapper
        Parameters:
        editorClass - 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.
      • addEditor

        public void addEditor​(String editorClassName,
                              String parametersClassName)
        Description copied from interface: IParametersEditorMapper
        Adds a new parameters editor mapping to this mapper. This is the same as calling addEditor(new ClassInfo(editorClassName)).
        Specified by:
        addEditor in interface IParametersEditorMapper
        Parameters:
        editorClassName - 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.
      • addDescriptionProvider

        public void addDescriptionProvider​(ClassInfo descriptionProviderClass,
                                           String parametersClassName)
        Description copied from interface: IParametersEditorMapper
        Adds a new editor description provider mapping to this mapper.
        Specified by:
        addDescriptionProvider in interface IParametersEditorMapper
        Parameters:
        descriptionProviderClass - 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.
      • addDescriptionProvider

        public void addDescriptionProvider​(String descriptionProviderClassName,
                                           String parametersClassName)
        Description copied from interface: IParametersEditorMapper
        Adds a new editor description provider mapping to this mapper. This is the same as calling addDescriptionProvider(new ClassInfo(descriptionProviderClassName)).
        Specified by:
        addDescriptionProvider in interface IParametersEditorMapper
        Parameters:
        descriptionProviderClassName - 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.
      • createParametersEditor

        public IParametersEditor createParametersEditor​(String parametersClassName)
        Description copied from interface: IParametersEditorMapper
        Creates an instance of the parameters editor for a given parameters class name.
        Specified by:
        createParametersEditor in interface IParametersEditorMapper
        Parameters:
        parametersClassName - the parameters class name to use for lookup.
        Returns:
        a new IParametersEditor object for the given class name, or null if no editor is available or if the object could not be created.
      • getDescriptionProvider

        public IEditorDescriptionProvider getDescriptionProvider​(String parametersClassName)
        Description copied from interface: IParametersEditorMapper
        Gets an object that can provide the UI description to use with a generic editor.
        Specified by:
        getDescriptionProvider in interface IParametersEditorMapper
        Parameters:
        parametersClassName - the name of the class for which to get the description provider.
        Returns:
        an editor description provider or null if none is set for this class.