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, Object>
@Deprecated(since="1905",
forRemoval=true)
public class NullSafeListCellRenderer
extends Object
implements com.hybris.cockpitng.widgets.common.WidgetComponentRenderer<org.zkoss.zul.Listcell,com.hybris.cockpitng.core.config.impl.jaxb.listview.ListColumn,Object>
Deprecated, for removal: This API element is subject to removal in a future version.
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
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancheckIfObjectIsEmptyCollection(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, Object> Deprecated, for removal: This API element is subject to removal in a future version.protected NestedAttributeUtilsDeprecated, for removal: This API element is subject to removal in a future version.voidrender(org.zkoss.zul.Listcell parent, com.hybris.cockpitng.core.config.impl.jaxb.listview.ListColumn columnConfiguration, 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.voidsetDefaultListCellRenderer(com.hybris.cockpitng.widgets.common.WidgetComponentRenderer<org.zkoss.zul.Listcell, com.hybris.cockpitng.core.config.impl.jaxb.listview.ListColumn, Object> defaultListCellRenderer) Deprecated, for removal: This API element is subject to removal in a future version.voidsetNestedAttributeUtils(NestedAttributeUtils nestedAttributeUtils) Deprecated, for removal: This API element is subject to removal in a future version.Methods 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
addRendererListener, removeRendererListener, render
-
Constructor Details
-
NullSafeListCellRenderer
public NullSafeListCellRenderer()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
render
public void render(org.zkoss.zul.Listcell parent, com.hybris.cockpitng.core.config.impl.jaxb.listview.ListColumn columnConfiguration, 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:
renderin interfacecom.hybris.cockpitng.widgets.common.WidgetComponentRenderer<org.zkoss.zul.Listcell,com.hybris.cockpitng.core.config.impl.jaxb.listview.ListColumn, Object>
-
getDefaultListCellRenderer
protected com.hybris.cockpitng.widgets.common.WidgetComponentRenderer<org.zkoss.zul.Listcell,com.hybris.cockpitng.core.config.impl.jaxb.listview.ListColumn, getDefaultListCellRenderer()Object> 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, Object> defaultListCellRenderer) Deprecated, for removal: This API element is subject to removal in a future version. -
checkIfObjectIsEmptyCollection
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
Deprecated, for removal: This API element is subject to removal in a future version. -
setNestedAttributeUtils
Deprecated, for removal: This API element is subject to removal in a future version.
-
qualifier= "columnValue==null ? '' : columnValue"can be defined in the context view, instead.