Class DefaultReferencePKEditor
- java.lang.Object
-
- com.hybris.cockpitng.editors.impl.AbstractCockpitEditorRenderer<java.lang.Object>
-
- de.hybris.platform.platformbackoffice.editors.pk.reference.DefaultReferencePKEditor
-
- All Implemented Interfaces:
com.hybris.cockpitng.editors.CockpitEditorRenderer<java.lang.Object>
public class DefaultReferencePKEditor extends com.hybris.cockpitng.editors.impl.AbstractCockpitEditorRenderer<java.lang.Object>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classDefaultReferencePKEditor.ReferenceContainer
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringEDITOR_ID_ONPREMISE_PKstatic java.lang.StringSCLASS_YE_DEFAULT_REFERENCE_CONTAINERstatic java.lang.StringSCLASS_YE_INVALID_PKstatic java.lang.StringSCLASS_YE_ONPREMISE_REFERENCE_PK_EDITORstatic java.lang.StringSCLASS_YE_REMOVE_REFERENCE
-
Constructor Summary
Constructors Constructor Description DefaultReferencePKEditor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.hybris.cockpitng.components.EditorcreateNestedPKEditor(com.hybris.cockpitng.editors.EditorContext<java.lang.Object> context)protected DefaultReferencePKEditor.ReferenceContainercreateReferenceContainer(java.lang.Object initialValue, com.hybris.cockpitng.editors.EditorListener<java.lang.Object> listener, com.hybris.cockpitng.components.Editor editor)com.hybris.cockpitng.util.type.BackofficeTypeUtilsgetBackofficeTypeUtils()com.hybris.cockpitng.labels.LabelServicegetLabelService()ModelServicegetModelService()protected java.lang.String[]getSupportedTypes(com.hybris.cockpitng.editors.EditorContext<java.lang.Object> context)protected voidhandleOnValueChanged(com.hybris.cockpitng.editors.EditorListener<java.lang.Object> listener, com.hybris.cockpitng.components.Editor editor, DefaultReferencePKEditor.ReferenceContainer referenceContainer, java.lang.Object data, com.hybris.cockpitng.editors.EditorContext<java.lang.Object> context)protected booleanisOfRequiredType(ItemModel model, com.hybris.cockpitng.editors.EditorContext<java.lang.Object> context)protected ItemModelloadItemByPK(com.hybris.cockpitng.components.Editor editor, PK pk, com.hybris.cockpitng.editors.EditorContext<java.lang.Object> context)protected com.hybris.cockpitng.editors.EditorContext<java.lang.Object>prepareNestedContext(com.hybris.cockpitng.editors.EditorContext<java.lang.Object> context)voidrender(org.zkoss.zk.ui.Component parent, com.hybris.cockpitng.editors.EditorContext<java.lang.Object> context, com.hybris.cockpitng.editors.EditorListener<java.lang.Object> listener)
-
-
-
Field Detail
-
EDITOR_ID_ONPREMISE_PK
public static final java.lang.String EDITOR_ID_ONPREMISE_PK
- See Also:
- Constant Field Values
-
SCLASS_YE_DEFAULT_REFERENCE_CONTAINER
public static final java.lang.String SCLASS_YE_DEFAULT_REFERENCE_CONTAINER
- See Also:
- Constant Field Values
-
SCLASS_YE_ONPREMISE_REFERENCE_PK_EDITOR
public static final java.lang.String SCLASS_YE_ONPREMISE_REFERENCE_PK_EDITOR
- See Also:
- Constant Field Values
-
SCLASS_YE_REMOVE_REFERENCE
public static final java.lang.String SCLASS_YE_REMOVE_REFERENCE
- See Also:
- Constant Field Values
-
SCLASS_YE_INVALID_PK
public static final java.lang.String SCLASS_YE_INVALID_PK
- See Also:
- Constant Field Values
-
-
Method Detail
-
render
public void render(org.zkoss.zk.ui.Component parent, com.hybris.cockpitng.editors.EditorContext<java.lang.Object> context, com.hybris.cockpitng.editors.EditorListener<java.lang.Object> listener)
-
prepareNestedContext
protected com.hybris.cockpitng.editors.EditorContext<java.lang.Object> prepareNestedContext(com.hybris.cockpitng.editors.EditorContext<java.lang.Object> context)
-
handleOnValueChanged
protected void handleOnValueChanged(com.hybris.cockpitng.editors.EditorListener<java.lang.Object> listener, com.hybris.cockpitng.components.Editor editor, DefaultReferencePKEditor.ReferenceContainer referenceContainer, java.lang.Object data, com.hybris.cockpitng.editors.EditorContext<java.lang.Object> context)
-
isOfRequiredType
protected boolean isOfRequiredType(ItemModel model, com.hybris.cockpitng.editors.EditorContext<java.lang.Object> context)
-
getSupportedTypes
protected java.lang.String[] getSupportedTypes(com.hybris.cockpitng.editors.EditorContext<java.lang.Object> context)
-
loadItemByPK
protected ItemModel loadItemByPK(com.hybris.cockpitng.components.Editor editor, PK pk, com.hybris.cockpitng.editors.EditorContext<java.lang.Object> context)
-
createNestedPKEditor
protected com.hybris.cockpitng.components.Editor createNestedPKEditor(com.hybris.cockpitng.editors.EditorContext<java.lang.Object> context)
-
createReferenceContainer
protected DefaultReferencePKEditor.ReferenceContainer createReferenceContainer(java.lang.Object initialValue, com.hybris.cockpitng.editors.EditorListener<java.lang.Object> listener, com.hybris.cockpitng.components.Editor editor)
-
getModelService
public ModelService getModelService()
-
getLabelService
public com.hybris.cockpitng.labels.LabelService getLabelService()
-
getBackofficeTypeUtils
public com.hybris.cockpitng.util.type.BackofficeTypeUtils getBackofficeTypeUtils()
-
-