Class CoverageInfoAction

java.lang.Object
de.hybris.platform.cockpit.components.listview.AbstractListViewAction
de.hybris.platform.cockpit.components.listview.impl.CoverageInfoAction
All Implemented Interfaces:
AdvancedListViewAction, ListViewAction

public class CoverageInfoAction extends AbstractListViewAction
Action displaying the coverage info of an item.
  • Constructor Details

    • CoverageInfoAction

      public CoverageInfoAction()
  • Method Details

    • getCoveragePercentageValue

      protected Integer getCoveragePercentageValue(CoverageInfo covInfo)
    • getImageURI

      public String getImageURI(ListViewAction.Context context)
      Description copied from interface: ListViewAction
      Gets the image URI which represents the action button.
      Returns:
      URI of the image to represent the action button
    • getEventListener

      public org.zkoss.zk.ui.event.EventListener getEventListener(ListViewAction.Context context)
      Description copied from interface: ListViewAction
      Gets the EventListener which is to be registered for the Events.ON_CLICK event.
      Returns:
      the event listener which should be called when user clicks the action button
    • getPopup

      public org.zkoss.zul.Menupopup getPopup(ListViewAction.Context context)
      Description copied from interface: ListViewAction
      Gets the popup of the action button.
      Returns:
      the popup which should appear when the user clicks the action button or null if no popup is available
    • getContextPopup

      public org.zkoss.zul.Menupopup getContextPopup(ListViewAction.Context context)
      Description copied from interface: ListViewAction
      Gets the context popup of the action button.
      Returns:
      the popup which should appear when the user right-clicks the action button or null if no popup is available
    • getTooltip

      public String getTooltip(ListViewAction.Context context)
      Description copied from interface: ListViewAction
      Gets the tooltip of the action button.
      Returns:
      the tooltip string which should appear when the user hovers over the action button
    • doCreateContext

      protected void doCreateContext(ListViewAction.Context context)
      Specified by:
      doCreateContext in class AbstractListViewAction
    • setCoverageCalculationService

      public void setCoverageCalculationService(CoverageCalculationService coverageCalculationService)