Class AbstractLocalizedEditor
- java.lang.Object
-
- com.hybris.cockpitng.editors.impl.AbstractCockpitEditorRenderer<java.lang.Object>
-
- com.hybris.cockpitng.editor.localized.AbstractLocalizedEditor
-
- All Implemented Interfaces:
CockpitEditorRenderer<java.lang.Object>,WidgetInstanceManagerAware
- Direct Known Subclasses:
LocalizedEditor,LocalizedSimpleEditor
public abstract class AbstractLocalizedEditor extends AbstractCockpitEditorRenderer<java.lang.Object> implements WidgetInstanceManagerAware
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringLOCALIZED_EDITOR_LOCALEstatic java.lang.StringSCLASS_CELL_LABELstatic java.lang.StringSCLASS_MANDATORY_ATTRIBUTE_LABELstatic java.lang.StringYW_LOCEDITOR_CAPTION-
Fields inherited from class com.hybris.cockpitng.editors.impl.AbstractCockpitEditorRenderer
HEADER_LABEL_TOOLTIP, ON_ADD_EVENT, ON_DELETE_EVENT, YW_EDITOR_AREA_LABEL_CONTAINER
-
Fields inherited from interface com.hybris.cockpitng.editors.CockpitEditorRenderer
INITIAL_EDIT_STRING
-
-
Constructor Summary
Constructors Constructor Description AbstractLocalizedEditor()
-
Method Summary
-
Methods inherited from class com.hybris.cockpitng.editors.impl.AbstractCockpitEditorRenderer
extractEmbeddedEditor, extractEmbeddedType, findAncestorEditor, findEmbeddedEditors, getInitialEditString, getL10nDecorator
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.hybris.cockpitng.editors.CockpitEditorRenderer
render
-
-
-
-
Field Detail
-
LOCALIZED_EDITOR_LOCALE
public static final java.lang.String LOCALIZED_EDITOR_LOCALE
- See Also:
- Constant Field Values
-
YW_LOCEDITOR_CAPTION
public static final java.lang.String YW_LOCEDITOR_CAPTION
- See Also:
- Constant Field Values
-
SCLASS_CELL_LABEL
public static final java.lang.String SCLASS_CELL_LABEL
- See Also:
- Constant Field Values
-
SCLASS_MANDATORY_ATTRIBUTE_LABEL
public static final java.lang.String SCLASS_MANDATORY_ATTRIBUTE_LABEL
- See Also:
- Constant Field Values
-
-
Method Detail
-
createEditorLabel
protected org.zkoss.zul.Div createEditorLabel(EditorContext editorContext)
-
prepareSubEditor
protected Editor prepareSubEditor(EditorContext<java.lang.Object> editorContext, java.lang.Object currentValue)
- Parameters:
editorContext- contextcurrentValue- editors's value- Returns:
- the editor
-
prepareSubEditor
protected Editor prepareSubEditor(EditorContext<java.lang.Object> editorContext, java.lang.Object currentValue, java.util.Locale locale)
- Parameters:
editorContext- contextcurrentValue- editors's valuelocale- sub editor's locale- Returns:
- the editor
- Since:
- 2.1.0
-
getActiveLocales
protected java.util.List<java.util.Locale> getActiveLocales()
-
getCockpitLocaleService
protected CockpitLocaleService getCockpitLocaleService()
-
setCockpitLocaleService
public void setCockpitLocaleService(CockpitLocaleService cockpitLocaleService)
-
getCockpitUserService
protected CockpitUserService getCockpitUserService()
-
setCockpitUserService
public void setCockpitUserService(CockpitUserService cockpitUserService)
-
getLabelService
public LabelService getLabelService()
-
setLabelService
public void setLabelService(LabelService labelService)
-
getComponentDefinitionService
public CockpitComponentDefinitionService getComponentDefinitionService()
-
setComponentDefinitionService
public void setComponentDefinitionService(CockpitComponentDefinitionService componentDefinitionService)
-
getEditorRegistry
public EditorRegistry getEditorRegistry()
-
setEditorRegistry
public void setEditorRegistry(EditorRegistry editorRegistry)
-
getWidgetInstanceManager
public WidgetInstanceManager getWidgetInstanceManager()
-
setWidgetInstanceManager
public void setWidgetInstanceManager(WidgetInstanceManager widgetInstanceManager)
- Specified by:
setWidgetInstanceManagerin interfaceWidgetInstanceManagerAware
-
-