Class WarehousingQuickListRenderer
- java.lang.Object
-
- com.hybris.cockpitng.widgets.common.AbstractWidgetComponentRenderer<P,C,D>
-
- com.hybris.cockpitng.widgets.collectionbrowser.mold.impl.common.renderer.AbstractImageComponentRenderer<org.zkoss.zk.ui.HtmlBasedComponent,com.hybris.cockpitng.config.quicklist.jaxb.QuickList,java.lang.Object>
-
- com.hybris.backoffice.widgets.quicklist.renderer.DefaultQuickListItemRenderer
-
- de.hybris.platform.warehousingbackoffice.renderers.WarehousingQuickListRenderer
-
- All Implemented Interfaces:
com.hybris.backoffice.widgets.quicklist.renderer.QuickListItemRenderer,com.hybris.cockpitng.widgets.common.NotifyingWidgetComponentRenderer<org.zkoss.zk.ui.HtmlBasedComponent,com.hybris.cockpitng.config.quicklist.jaxb.QuickList,java.lang.Object>,com.hybris.cockpitng.widgets.common.WidgetComponentRenderer<org.zkoss.zk.ui.HtmlBasedComponent,com.hybris.cockpitng.config.quicklist.jaxb.QuickList,java.lang.Object>
public class WarehousingQuickListRenderer extends com.hybris.backoffice.widgets.quicklist.renderer.DefaultQuickListItemRendererRenderer that lists consignment entries within a summary context
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringSCLASS_HBOX_CONTAINERprotected static java.lang.StringSCLASS_VBOX_CONTAINERprotected static java.lang.StringSCLASS_YW_QUICK_LIST_TILE_CUSTprotected static java.lang.StringSCLASS_YW_QUICK_LIST_TILE_IMG_CUSTprotected static java.lang.StringSCLASS_YW_QUICK_LIST_TILE_PROD_CODEprotected static java.lang.StringSCLASS_YW_QUICK_LIST_TILE_PROD_NAMEprotected static java.lang.StringSCLASS_YW_QUICK_LIST_TILE_PROD_QTYprotected static java.lang.StringSCLASS_YW_QUICK_LIST_TILE_TITLE_CUST-
Fields inherited from class com.hybris.backoffice.widgets.quicklist.renderer.DefaultQuickListItemRenderer
ATTRIBUTE_CLICKABLE_REMOVE_BUTTON, ATTRIBUTE_CLICKABLE_TITLE, ATTRIBUTE_KEY_CLICKABLE, PREVIEW_SUFFIX_QUICK_LIST, SCLASS_IMG_PREVIEW_POPUP, SCLASS_REMOVE_BUTTON, SCLASS_YW_QUICK_LIST_TILE_IMG, SCLASS_YW_QUICK_LIST_TILE_SUBTITLE, SCLASS_YW_QUICK_LIST_TILE_SUBTITLE_CONTAINER, SCLASS_YW_QUICK_LIST_TILE_TITLE, SCLASS_YW_QUICK_LIST_TILE_TITLE_ONLY
-
-
Constructor Summary
Constructors Constructor Description WarehousingQuickListRenderer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.zkoss.zul.LabellabelizeProperty(java.lang.String attributeToRender)Returns aLabelof the given property while applying the corresponding styling classvoidrender(org.zkoss.zk.ui.HtmlBasedComponent parent, com.hybris.cockpitng.config.quicklist.jaxb.QuickList configuration, java.lang.Object data, com.hybris.cockpitng.dataaccess.facades.type.DataType dataType, com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager)protected voidrenderConsignmentEntry(org.zkoss.zk.ui.HtmlBasedComponent parent, ConsignmentEntryModel consignmentEntry)Renders eachConsignmentEntryModelthat will be displayed in the quick list.protected java.lang.StringresolveLabel(java.lang.String labelKey)Returns localized label by key, or a "[labelKey]" if localized label was nor registered.-
Methods inherited from class com.hybris.backoffice.widgets.quicklist.renderer.DefaultQuickListItemRenderer
appendDescriptionLabels, appendLabel, appendRemoveButton, appendThumbnailAndPopupPreview, getLabelService, getObjectPreview, getWidgetRenderingUtils, isAllowRemove, isOpenItemHyperlink, isRemoveItemButton, prepareThumbnail, setAllowRemove, setLabelService, setWidgetRenderingUtils
-
Methods inherited from class com.hybris.cockpitng.widgets.collectionbrowser.mold.impl.common.renderer.AbstractImageComponentRenderer
appendPopupPreview, appendThumbnailAndPopupPreview, findMimeByExtension, getConfigurationMapping, getDefaultImage, getExtensionsToMime, getObjectPreview, getObjectPreview, getObjectPreviewService, getPreviewPopupSclass, getThumbnailSclass, isDisplayDefaultImage, loadBaseConfiguration, preparePreviewPopup, setDefaultImage, setDisplayDefaultImage, setExtensionsToMime, setObjectPreviewService
-
Methods inherited from class com.hybris.cockpitng.widgets.common.AbstractWidgetComponentRenderer
addRendererListener, fireComponentRendered, fireComponentRendered, fireComponentRendered, removeRendererListener
-
-
-
-
Field Detail
-
SCLASS_HBOX_CONTAINER
protected static final java.lang.String SCLASS_HBOX_CONTAINER
- See Also:
- Constant Field Values
-
SCLASS_VBOX_CONTAINER
protected static final java.lang.String SCLASS_VBOX_CONTAINER
- See Also:
- Constant Field Values
-
SCLASS_YW_QUICK_LIST_TILE_TITLE_CUST
protected static final java.lang.String SCLASS_YW_QUICK_LIST_TILE_TITLE_CUST
- See Also:
- Constant Field Values
-
SCLASS_YW_QUICK_LIST_TILE_CUST
protected static final java.lang.String SCLASS_YW_QUICK_LIST_TILE_CUST
- See Also:
- Constant Field Values
-
SCLASS_YW_QUICK_LIST_TILE_IMG_CUST
protected static final java.lang.String SCLASS_YW_QUICK_LIST_TILE_IMG_CUST
- See Also:
- Constant Field Values
-
SCLASS_YW_QUICK_LIST_TILE_PROD_CODE
protected static final java.lang.String SCLASS_YW_QUICK_LIST_TILE_PROD_CODE
- See Also:
- Constant Field Values
-
SCLASS_YW_QUICK_LIST_TILE_PROD_NAME
protected static final java.lang.String SCLASS_YW_QUICK_LIST_TILE_PROD_NAME
- See Also:
- Constant Field Values
-
SCLASS_YW_QUICK_LIST_TILE_PROD_QTY
protected static final java.lang.String SCLASS_YW_QUICK_LIST_TILE_PROD_QTY
- See Also:
- Constant Field Values
-
-
Method Detail
-
render
public void render(org.zkoss.zk.ui.HtmlBasedComponent parent, com.hybris.cockpitng.config.quicklist.jaxb.QuickList configuration, java.lang.Object data, com.hybris.cockpitng.dataaccess.facades.type.DataType dataType, com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager)- Specified by:
renderin interfacecom.hybris.cockpitng.widgets.common.WidgetComponentRenderer<org.zkoss.zk.ui.HtmlBasedComponent,com.hybris.cockpitng.config.quicklist.jaxb.QuickList,java.lang.Object>- Overrides:
renderin classcom.hybris.backoffice.widgets.quicklist.renderer.DefaultQuickListItemRenderer
-
labelizeProperty
protected org.zkoss.zul.Label labelizeProperty(java.lang.String attributeToRender)
Returns aLabelof the given property while applying the corresponding styling class- Parameters:
attributeToRender- The attribute to render as aLabel- Returns:
- the label of the given property
-
resolveLabel
protected java.lang.String resolveLabel(java.lang.String labelKey)
Returns localized label by key, or a "[labelKey]" if localized label was nor registered.- Parameters:
labelKey- the key of the label to retrieve- Returns:
- The localized label
-
renderConsignmentEntry
protected void renderConsignmentEntry(org.zkoss.zk.ui.HtmlBasedComponent parent, ConsignmentEntryModel consignmentEntry)Renders eachConsignmentEntryModelthat will be displayed in the quick list.- Parameters:
parent- parent component of theConsignmentEntryModelconsignmentEntry-ConsignmentEntryModelto be rendered
-
-