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.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.hybris.cockpitng.actions.impl.DefaultActionRenderer
com.hybris.cockpitng.actions.impl.DefaultActionRenderer.DefaultActionRendererEventListener<T extends org.zkoss.zk.ui.event.Event> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringstatic final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringstatic final StringFields inherited from class com.hybris.cockpitng.actions.impl.DefaultActionRenderer
LABEL_CONTAINER_SCLASS, tooltipText -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidattachListenerToMenuitem(Map<org.zkoss.zul.Radio, HybrisEnumValue> map, com.hybris.cockpitng.actions.ActionContext<Collection<Object>> context) protected voidcloseActionGroupPopup(org.zkoss.zk.ui.Component parent) protected org.zkoss.zul.ButtoncreateButton(String labelKey, org.zkoss.zk.ui.event.EventListener<? extends org.zkoss.zk.ui.event.Event> clickEventListener, com.hybris.cockpitng.actions.ActionContext<Collection<Object>> context) protected org.zkoss.zk.ui.HtmlBasedComponentcreateEnumList(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) 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) protected org.zkoss.zul.MenuitemcreateMenuEntry(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) protected org.zkoss.zul.WindowDeprecated, for removal: This API element is subject to removal in a future version.since 2205protected booleanisViewMode(com.hybris.cockpitng.actions.ActionContext<Collection<Object>> context, String viewMode) protected booleanisWindowAlreadyOpened(org.zkoss.zk.ui.Component component) protected voidopenWindow(org.zkoss.zul.Window window) Deprecated, for removal: This API element is subject to removal in a future version.since 2205prepareData(Collection<Object> data) protected List<HybrisEnumValue>prepareEnums(String qualifier, List<Object> dataToUpdate) voidrender(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) protected voidrenderAsMenu(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) Methods inherited from class com.hybris.cockpitng.actions.impl.DefaultActionRenderer
addEventListener, addKeyboardSupport, adjustUri, checkDataCompatibleWithDefinedInput, createTipsLabel, createYTestId, extractIconDisabledUri, extractIconHoverUri, extractIconUri, extractKeyEvent, findActionComponent, findGroupComponent, findParentComponent, getActionBodySclass, getIconHoverUri, getIconName, getIconUri, getKeyboardSupportService, getLocalizedName, getOrCreateContainer, getOrCreateIcon, getOrCreateIcon, getOrCreateIconButton, getOrCreateLabel, getOrCreateLabel, getTooltipText, getToolTipWithCtrlKeysText, loadFromParentModel, perform, performWithConfirmationCheck, registerHoverEventsOnContainer, registerHoverEventsOnContainer, removeEventListeners, removeEventListeners, removeIcon, removeLabel, setTips, setTooltipText, storeInParentModel, triggerFromKeyEvent, useImage
-
Field Details
-
LABEL_ENUMERATION_ACTION_UPDATE_STATUS
- See Also:
-
SCLASS_YW_ENUMERATION_ACTION_POPUP
- See Also:
-
SCLASS_YW_ENUMERATION_ACTION_CONTAINER
- See Also:
-
SCLASS_YW_ENUMERATION_ACTION_MENU_CONTAINER
- See Also:
-
SCLASS_YW_ENUMERATION_ACTION_MENU_DISABLED
- See Also:
-
SCLASS_YW_ENUMERATION_ACTION_MENU_POPUP
- See Also:
-
SCLASS_YW_ENUMERATION_ACTION_MENU_POPUP_MENUITEM
- See Also:
-
VIEW_MODE_MENU
- See Also:
-
ORIENT_VERTICAL
- See Also:
-
-
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:
renderin interfacecom.hybris.cockpitng.actions.CockpitActionRenderer<Collection<Object>,Object> - Overrides:
renderin classcom.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:
createEventListenerin classcom.hybris.cockpitng.actions.impl.DefaultActionRenderer<Collection<Object>,Object>
-
prepareData
-
prepareEnums
-
createWindow
Deprecated, for removal: This API element is subject to removal in a future version.since 2205Create 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, for removal: This API element is subject to removal in a future version.since 2205Open window.- Parameters:
window- window to open
-
isWindowAlreadyOpened
protected boolean isWindowAlreadyOpened(org.zkoss.zk.ui.Component component)
-