Class EnumerationActionRenderer

java.lang.Object
com.hybris.cockpitng.actions.impl.DefaultActionRenderer<Collection<Object>,Object>
com.hybris.backoffice.widgets.actions.enumeration.EnumerationActionRenderer
All Implemented Interfaces:
com.hybris.cockpitng.actions.CockpitActionRenderer<Collection<Object>,Object>

public class EnumerationActionRenderer extends com.hybris.cockpitng.actions.impl.DefaultActionRenderer<Collection<Object>,Object>
EnumerationActionRenderer is default renderer of EnumerationAction. It allows to display list of the enums on the list. It supports additional view mode which allows to render action as menu item viewMode=menu. It should be used when action is nested in the action group.
  • Field Details

  • Constructor Details

    • EnumerationActionRenderer

      public EnumerationActionRenderer()
  • Method Details

    • render

      public void render(org.zkoss.zk.ui.Component parent, com.hybris.cockpitng.actions.CockpitAction<Collection<Object>,Object> action, com.hybris.cockpitng.actions.ActionContext<Collection<Object>> context, boolean updateMode, com.hybris.cockpitng.actions.ActionListener<Object> listener)
      Specified by:
      render in interface com.hybris.cockpitng.actions.CockpitActionRenderer<Collection<Object>,Object>
      Overrides:
      render in class com.hybris.cockpitng.actions.impl.DefaultActionRenderer<Collection<Object>,Object>
    • renderAsMenu

      protected void renderAsMenu(org.zkoss.zk.ui.Component parent, com.hybris.cockpitng.actions.CockpitAction<Collection<Object>,Object> action, com.hybris.cockpitng.actions.ActionContext<Collection<Object>> context, boolean updateMode, com.hybris.cockpitng.actions.ActionListener<Object> listener)
    • createMenuEntry

      protected org.zkoss.zul.Menuitem createMenuEntry(org.zkoss.zk.ui.Component parent, com.hybris.cockpitng.actions.CockpitAction<Collection<Object>,Object> action, com.hybris.cockpitng.actions.ActionContext<Collection<Object>> context, com.hybris.cockpitng.actions.ActionListener<Object> listener, HybrisEnumValue enumValue)
    • closeActionGroupPopup

      protected void closeActionGroupPopup(org.zkoss.zk.ui.Component parent)
    • isViewMode

      protected boolean isViewMode(com.hybris.cockpitng.actions.ActionContext<Collection<Object>> context, String viewMode)
    • createEventListener

      protected org.zkoss.zk.ui.event.EventListener<? extends org.zkoss.zk.ui.event.Event> createEventListener(com.hybris.cockpitng.actions.CockpitAction<Collection<Object>,Object> action, com.hybris.cockpitng.actions.ActionContext<Collection<Object>> context, com.hybris.cockpitng.actions.ActionListener<Object> listener)
      Overrides:
      createEventListener in class com.hybris.cockpitng.actions.impl.DefaultActionRenderer<Collection<Object>,Object>
    • prepareData

      protected List<Object> prepareData(Collection<Object> data)
    • prepareEnums

      protected List<HybrisEnumValue> prepareEnums(String qualifier, List<Object> dataToUpdate)
    • createWindow

      @Deprecated(since="2205", forRemoval=true) protected org.zkoss.zul.Window createWindow()
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 2205
      Create Window instance.
      Returns:
      Window
    • createEnumList

      protected org.zkoss.zk.ui.HtmlBasedComponent createEnumList(List<HybrisEnumValue> hybrisEnumValues, com.hybris.cockpitng.actions.ActionContext<Collection<Object>> context, org.zkoss.zk.ui.event.EventListener<? extends org.zkoss.zk.ui.event.Event> eventListener)
    • createButton

      protected org.zkoss.zul.Button createButton(String labelKey, org.zkoss.zk.ui.event.EventListener<? extends org.zkoss.zk.ui.event.Event> clickEventListener, com.hybris.cockpitng.actions.ActionContext<Collection<Object>> context)
    • attachListenerToMenuitem

      protected void attachListenerToMenuitem(Map<org.zkoss.zul.Radio,HybrisEnumValue> map, com.hybris.cockpitng.actions.ActionContext<Collection<Object>> context)
    • openWindow

      @Deprecated(since="2205", forRemoval=true) protected void openWindow(org.zkoss.zul.Window window)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 2205
      Open window.
      Parameters:
      window - window to open
    • isWindowAlreadyOpened

      protected boolean isWindowAlreadyOpened(org.zkoss.zk.ui.Component component)