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.
- A qualifier such as qualifier= "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
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
    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
    protected 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.
     
    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, 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,Object> defaultListCellRenderer)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    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, wait

    Methods 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:
      render in interface com.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,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,Object> defaultListCellRenderer)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • checkIfObjectIsEmptyCollection

      protected boolean checkIfObjectIsEmptyCollection(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.