Package com.hybris.cockpitng.editors
Interface EditorRegistry
-
- All Known Implementing Classes:
SimpleEditorRegistry
public interface EditorRegistryManages cockpit NG editors by type.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetDefaultEditorCode(java.lang.String editorType)Return the default editor code (example: 'com.hybris.cockpitng.editor.default.text') for the given editorType (example: 'TEXT')EditorDefinitiongetEditorForCode(java.lang.String editorDefinitionCode)Returns for the given definition code.EditorDefinitiongetEditorForType(java.lang.String valueType)Returns an editor for the given value type.EditorDefinitiongetFallbackEditor()Returns an editor that should be used in case there is no dedicated editor.
-
-
-
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
nullif 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
nullif 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)
-
-