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,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, Object> com.hybris.cockpitng.widgets.common.WidgetComponentRenderer<org.zkoss.zk.ui.HtmlBasedComponent,com.hybris.cockpitng.config.quicklist.jaxb.QuickList, Object>
public class WarehousingQuickListRenderer
extends com.hybris.backoffice.widgets.quicklist.renderer.DefaultQuickListItemRenderer
Renderer that lists consignment entries within a summary context
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final StringFields 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, TOOLTIP_QUICK_LIST_REMOVE_BUTTON_TOOLTIPFields inherited from class com.hybris.cockpitng.widgets.collectionbrowser.mold.impl.common.renderer.AbstractImageComponentRenderer
SCLASS_YW_TITLE_ONLY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.zkoss.zul.LabellabelizeProperty(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, 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 StringresolveLabel(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, setWidgetRenderingUtilsMethods 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, setObjectPreviewServiceMethods inherited from class com.hybris.cockpitng.widgets.common.AbstractWidgetComponentRenderer
addRendererListener, fireComponentRendered, fireComponentRendered, fireComponentRendered, removeRendererListenerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hybris.cockpitng.widgets.common.WidgetComponentRenderer
render
-
Field Details
-
SCLASS_HBOX_CONTAINER
- See Also:
-
SCLASS_VBOX_CONTAINER
- See Also:
-
SCLASS_YW_QUICK_LIST_TILE_TITLE_CUST
- See Also:
-
SCLASS_YW_QUICK_LIST_TILE_CUST
- See Also:
-
SCLASS_YW_QUICK_LIST_TILE_IMG_CUST
- See Also:
-
SCLASS_YW_QUICK_LIST_TILE_PROD_CODE
- See Also:
-
SCLASS_YW_QUICK_LIST_TILE_PROD_NAME
- See Also:
-
SCLASS_YW_QUICK_LIST_TILE_PROD_QTY
- See Also:
-
-
Constructor Details
-
WarehousingQuickListRenderer
public WarehousingQuickListRenderer()
-
-
Method Details
-
render
public void render(org.zkoss.zk.ui.HtmlBasedComponent parent, com.hybris.cockpitng.config.quicklist.jaxb.QuickList configuration, 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, Object> - Overrides:
renderin classcom.hybris.backoffice.widgets.quicklist.renderer.DefaultQuickListItemRenderer
-
labelizeProperty
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
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
-