Class SimpleEditorRegistry

    • Field Detail

      • NO_EDITOR_AVAILABLE

        protected static final java.lang.String NO_EDITOR_AVAILABLE
        See Also:
        Constant Field Values
      • typeToEditorCache

        protected final java.util.Map<java.lang.String,​java.lang.String> typeToEditorCache
    • Constructor Detail

      • SimpleEditorRegistry

        public SimpleEditorRegistry()
    • Method Detail

      • getEditorForType

        public EditorDefinition getEditorForType​(java.lang.String editorType)
        Description copied from interface: EditorRegistry
        Returns an editor for the given value type.
        Specified by:
        getEditorForType in interface EditorRegistry
        Parameters:
        editorType - value type (e.g. java.lang.String)
        Returns:
        editor for the given value type or null if no suitable editor found
      • getEditorForType

        protected EditorDefinition getEditorForType​(java.lang.String editorType,
                                                    boolean scanSuperclasses)
      • getClassLoader

        protected java.lang.ClassLoader getClassLoader()
      • getEditorForCode

        public EditorDefinition getEditorForCode​(java.lang.String editorDefinitionCode)
        Description copied from interface: EditorRegistry
        Returns for the given definition code.
        Specified by:
        getEditorForCode in interface EditorRegistry
        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

        public 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')
        Specified by:
        getDefaultEditorCode in interface EditorRegistry
        Returns:
        the default editor code for given editorType
      • setDefaultEditorMapping

        public void setDefaultEditorMapping​(java.util.Map<java.lang.String,​java.lang.String> defaultEditorMapping)
      • reset

        public void reset()
        Description copied from interface: Resettable
        Resets the something the implementation provides.
        Specified by:
        reset in interface Resettable
      • getDefaultEditorCode

        public java.lang.String getDefaultEditorCode()
      • setDefaultEditorCode

        public void setDefaultEditorCode​(java.lang.String defaultEditorCode)
      • getDefaultEditorMapping

        public java.util.Map<java.lang.String,​java.lang.String> getDefaultEditorMapping()