Interface EditorRegistry

  • All Known Implementing Classes:
    SimpleEditorRegistry

    public interface EditorRegistry
    Manages cockpit NG editors by type.
    • Method Detail

      • getEditorForType

        EditorDefinition getEditorForType​(java.lang.String valueType)
        Returns an editor for the given value type.
        Parameters:
        valueType - value type (e.g. java.lang.String)
        Returns:
        editor for the given value type or null if no suitable editor found
      • getEditorForCode

        EditorDefinition getEditorForCode​(java.lang.String editorDefinitionCode)
        Returns for the given definition code.
        Parameters:
        editorDefinitionCode - The definition code (ID) of the editor to be found
        Returns:
        Editor for the given definition code (ID) or null if editor with such definition code does not exist.
      • getDefaultEditorCode

        java.lang.String getDefaultEditorCode​(java.lang.String editorType)
        Return the default editor code (example: 'com.hybris.cockpitng.editor.default.text') for the given editorType (example: 'TEXT')
        Parameters:
        editorType -
        Returns:
        the default editor code for given editorType
      • getFallbackEditor

        EditorDefinition getFallbackEditor()
        Returns an editor that should be used in case there is no dedicated editor.
        Returns:
        default editor (may be null)