Class NullSafeListCellRenderer
- java.lang.Object
-
- de.hybris.platform.omsbackoffice.renderers.NullSafeListCellRenderer
-
- All Implemented Interfaces:
com.hybris.cockpitng.widgets.common.WidgetComponentRenderer<org.zkoss.zul.Listcell,com.hybris.cockpitng.core.config.impl.jaxb.listview.ListColumn,java.lang.Object>
@Deprecated(since="1905", forRemoval=true) public class NullSafeListCellRenderer extends java.lang.Object implements com.hybris.cockpitng.widgets.common.WidgetComponentRenderer<org.zkoss.zul.Listcell,com.hybris.cockpitng.core.config.impl.jaxb.listview.ListColumn,java.lang.Object>
Deprecated, for removal: This API element is subject to removal in a future version.- A qualifier such asqualifier= "columnValue==null ? '' : columnValue"
can be defined in the context view, instead.Proxy for DefaultListCellRenderer. It checks if a nested attribute has a null parent before rendering. If null, it renders nothing. If not null, it delegates to the CockpitNG default renderer.
-
-
Constructor Summary
Constructors Constructor Description NullSafeListCellRenderer()
Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected boolean
checkIfObjectIsEmptyCollection(java.lang.Object object)
Deprecated, for removal: This API element is subject to removal in a future version.Identify if the object is a collection type and it's empty or nullprotected com.hybris.cockpitng.widgets.common.WidgetComponentRenderer<org.zkoss.zul.Listcell,com.hybris.cockpitng.core.config.impl.jaxb.listview.ListColumn,java.lang.Object>
getDefaultListCellRenderer()
Deprecated, for removal: This API element is subject to removal in a future version.protected NestedAttributeUtils
getNestedAttributeUtils()
Deprecated, for removal: This API element is subject to removal in a future version.void
render(org.zkoss.zul.Listcell parent, com.hybris.cockpitng.core.config.impl.jaxb.listview.ListColumn columnConfiguration, java.lang.Object object, com.hybris.cockpitng.dataaccess.facades.type.DataType dataType, com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager)
Deprecated, for removal: This API element is subject to removal in a future version.void
setDefaultListCellRenderer(com.hybris.cockpitng.widgets.common.WidgetComponentRenderer<org.zkoss.zul.Listcell,com.hybris.cockpitng.core.config.impl.jaxb.listview.ListColumn,java.lang.Object> defaultListCellRenderer)
Deprecated, for removal: This API element is subject to removal in a future version.void
setNestedAttributeUtils(NestedAttributeUtils nestedAttributeUtils)
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
-
Method Detail
-
render
public void render(org.zkoss.zul.Listcell parent, com.hybris.cockpitng.core.config.impl.jaxb.listview.ListColumn columnConfiguration, java.lang.Object object, com.hybris.cockpitng.dataaccess.facades.type.DataType dataType, com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager)
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
render
in interfacecom.hybris.cockpitng.widgets.common.WidgetComponentRenderer<org.zkoss.zul.Listcell,com.hybris.cockpitng.core.config.impl.jaxb.listview.ListColumn,java.lang.Object>
-
getDefaultListCellRenderer
protected com.hybris.cockpitng.widgets.common.WidgetComponentRenderer<org.zkoss.zul.Listcell,com.hybris.cockpitng.core.config.impl.jaxb.listview.ListColumn,java.lang.Object> getDefaultListCellRenderer()
Deprecated, for removal: This API element is subject to removal in a future version.
-
setDefaultListCellRenderer
public void setDefaultListCellRenderer(com.hybris.cockpitng.widgets.common.WidgetComponentRenderer<org.zkoss.zul.Listcell,com.hybris.cockpitng.core.config.impl.jaxb.listview.ListColumn,java.lang.Object> defaultListCellRenderer)
Deprecated, for removal: This API element is subject to removal in a future version.
-
checkIfObjectIsEmptyCollection
protected boolean checkIfObjectIsEmptyCollection(java.lang.Object object)
Deprecated, for removal: This API element is subject to removal in a future version.Identify if the object is a collection type and it's empty or null- Parameters:
object
- the object to be verified- Returns:
- true if the object is a collection and it's empty
-
getNestedAttributeUtils
protected NestedAttributeUtils getNestedAttributeUtils()
Deprecated, for removal: This API element is subject to removal in a future version.
-
setNestedAttributeUtils
public void setNestedAttributeUtils(NestedAttributeUtils nestedAttributeUtils)
Deprecated, for removal: This API element is subject to removal in a future version.
-
-