Class DefaultCouponCodeListEditorRenderer<T>

java.lang.Object
com.hybris.cockpitng.engine.impl.AbstractComponentWidgetAdapterAware
com.hybris.cockpitng.editor.commonreferenceeditor.AbstractReferenceEditor<T,Collection<T>>
com.hybris.cockpitng.editor.defaultmultireferenceeditor.DefaultMultiReferenceEditor<T>
de.hybris.platform.coupon.backoffice.cockpitng.editor.coupons.DefaultCouponCodeListEditorRenderer<T>
All Implemented Interfaces:
com.hybris.cockpitng.editor.commonreferenceeditor.ReferenceEditorLogic<T>, com.hybris.cockpitng.editors.CockpitEditorRenderer<Collection<T>>, com.hybris.cockpitng.engine.ComponentWidgetAdapterAware

public class DefaultCouponCodeListEditorRenderer<T> extends com.hybris.cockpitng.editor.defaultmultireferenceeditor.DefaultMultiReferenceEditor<T>
Default coupon code list editor.
  • Field Summary

    Fields inherited from class com.hybris.cockpitng.editor.defaultmultireferenceeditor.DefaultMultiReferenceEditor

    COCKPIT_PROPERTY_MULTI_REFERENCE_EDITOR_RENDER_ON_DEMAND_SIZE, COCKPIT_PROPERTY_SELECTED_ITEMS_MAX_SIZE, cockpitProperties, PARAM_RENDER_ON_DEMAND_SIZE, PARAM_SELECTED_ITEMS_MAX_SIZE, SELECTED_ITEMS_TYPE_COLLECTION, SELECTED_ITEMS_TYPE_LIST, SELECTED_ITEMS_TYPE_SET, selectedItems

    Fields inherited from class com.hybris.cockpitng.editor.commonreferenceeditor.AbstractReferenceEditor

    editorLayout, pageable, pageSize, PARAM_AVAILABLE_VALUES_PROVIDER, PARAM_CREATE_ONLY, PARAM_DISABLE_DISPLAYING_DETAILS, PARAM_DISABLE_REMOVE_REFERENCE, PARAM_LABEL_PROVIDER_BEAN, PARAM_NESTED_CREATION_DISABLED, PARAM_PAGE_SIZE, PARAM_PLACEHOLDER_KEY, PARAM_REDIRECT_REFERENCE_SELECTED_SOCKET_ID, PARAM_REFERENCE_ADVANCED_SEARCH_ENABLED, PARAM_RESTRICT_TO_TYPE, PARAM_WHITELISTED_TYPES, PARENT_OBJECT, renderOnDemandSize, selectedItemsMaxSize, SOCKET_IN_REFERENCE_EDITOR, SOCKET_OUT_REFERENCE_EDITOR, SOCKET_OUT_REFERENCE_SEARCH_CTX, SOCKET_OUT_REFRENCE_SELECTED, TYPE_CODE

    Fields inherited from interface com.hybris.cockpitng.editors.CockpitEditorRenderer

    INITIAL_EDIT_STRING
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    The addSelectedObject method is overridden in order to prevent addition of generated coupon code media object from the multi reference editor drop down to the list of already generated coupon media.
    com.hybris.cockpitng.editor.commonreferenceeditor.ReferenceEditorLayout<T>
    createReferenceLayout(com.hybris.cockpitng.editors.EditorContext context)
     
    protected boolean
     
    protected com.hybris.cockpitng.core.config.impl.jaxb.hybris.Base
    loadBaseConfiguration(String typeCode, com.hybris.cockpitng.engine.WidgetInstanceManager wim)
     
    void
     

    Methods inherited from class com.hybris.cockpitng.editor.defaultmultireferenceeditor.DefaultMultiReferenceEditor

    changeSelectedObject, extractRenderOnDemandSize, extractSelectedItemsMaxSize, getCollectionType, getRegexEditorPattern, initializeSelectedItemsCollection, isEditable, openReferenceAdvancedSearch, readTypeCode, refreshObjects, removeSelectedObject, render, setCommonEditorParameters, setEditorParameters, setInitialValue

    Methods inherited from class com.hybris.cockpitng.editor.commonreferenceeditor.AbstractReferenceEditor

    allowNestedObjectCreation, createInputSocketEventListener, createNewReference, createNewReference, extractPageSize, findAncestorEditor, getCockpitConfigurationService, getCockpitUserService, getCustomValuesProviderBeanId, getEditorContext, getEditorLayout, getEditorListener, getLabelProvider, getLabelProviderBeanName, getLabelService, getObjectFacade, getPageable, getParentEditor, getParentObject, getPermissionFacade, getPlaceholderKey, getPropertyValueService, getRedirectReferenceSelectedToParentWidget, getReferenceEditorSearchConditionHandler, getReferenceEditorSearchFacade, getReferenceSearchConditions, getReferenceSearchContextMap, getStringRepresentationOfObject, getSuccessNotificationId, getTypeCode, getTypeFacade, isDisableDisplayingDetails, isDisableRemoveReference, isOnlyCreateMode, isReferenceAdvancedSearchEnabled, loadBaseConfiguration, loadSimpleSearchConfiguration, preserveFocus, resolveTypeToCreate, restrictTypeCode, setCreateOnly, setEditorContext, setEditorLayout, setEditorListener, setLabelProviderBeanName, setNestedObjectCreationDisabled, setPageSize, setParentEditor, setParentObject, setReferenceSearchConditions, setRenderOnDemandSize, setSelectedItemsMaxSize, setSuccessNotificationId, setTypeCode, triggerReferenceSelected, updateReferencesListBoxModel

    Methods inherited from class com.hybris.cockpitng.engine.impl.AbstractComponentWidgetAdapterAware

    addSocketInputEventListener, getComponentID, handleSocketInputEvent, initialize, initializeDefaultEventListeners, registerStubInstance, sendOutput, setComponentID, unregisterStubInstance

    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.editor.commonreferenceeditor.ReferenceEditorLogic

    forwardEditorEvent
  • Constructor Details

    • DefaultCouponCodeListEditorRenderer

      public DefaultCouponCodeListEditorRenderer()
  • Method Details

    • createReferenceLayout

      public com.hybris.cockpitng.editor.commonreferenceeditor.ReferenceEditorLayout<T> createReferenceLayout(com.hybris.cockpitng.editors.EditorContext context)
      Overrides:
      createReferenceLayout in class com.hybris.cockpitng.editor.commonreferenceeditor.AbstractReferenceEditor<T,Collection<T>>
    • updateReferencesListBoxModel

      public void updateReferencesListBoxModel(String searchText)
      Specified by:
      updateReferencesListBoxModel in interface com.hybris.cockpitng.editor.commonreferenceeditor.ReferenceEditorLogic<T>
      Overrides:
      updateReferencesListBoxModel in class com.hybris.cockpitng.editor.commonreferenceeditor.AbstractReferenceEditor<T,Collection<T>>
    • addSelectedObject

      public void addSelectedObject(T obj)
      The addSelectedObject method is overridden in order to prevent addition of generated coupon code media object from the multi reference editor drop down to the list of already generated coupon media. Instead download action has been added to the item in the editor drop down.
      Specified by:
      addSelectedObject in interface com.hybris.cockpitng.editor.commonreferenceeditor.ReferenceEditorLogic<T>
      Overrides:
      addSelectedObject in class com.hybris.cockpitng.editor.defaultmultireferenceeditor.DefaultMultiReferenceEditor<T>
    • hasListEntries

      protected boolean hasListEntries(Object coupon)
    • loadBaseConfiguration

      protected com.hybris.cockpitng.core.config.impl.jaxb.hybris.Base loadBaseConfiguration(String typeCode, com.hybris.cockpitng.engine.WidgetInstanceManager wim)
      Overrides:
      loadBaseConfiguration in class com.hybris.cockpitng.editor.commonreferenceeditor.AbstractReferenceEditor<T,Collection<T>>