Class ToggleItemLockActionRenderer
- java.lang.Object
-
- com.hybris.cockpitng.actions.impl.DefaultActionRenderer<java.lang.Object,java.lang.Object>
-
- com.hybris.backoffice.widgets.actions.locking.ToggleItemLockActionRenderer
-
- All Implemented Interfaces:
com.hybris.cockpitng.actions.CockpitActionRenderer<java.lang.Object,java.lang.Object>
public class ToggleItemLockActionRenderer extends com.hybris.cockpitng.actions.impl.DefaultActionRenderer<java.lang.Object,java.lang.Object>
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.String
I18N_LOCK_ACTION_TOOLTIP
protected static java.lang.String
I18N_UNLOCK_ACTION_TOOLTIP
protected static java.lang.String
ICON_ACTION_LOCK_ITEM_DEFAULT_PNG
protected static java.lang.String
ICON_ACTION_LOCK_ITEM_DISABLED_PNG
protected static java.lang.String
ICON_ACTION_LOCK_ITEM_HOVER_PNG
protected static java.lang.String
ICON_ACTION_UNLOCK_ITEM_DEFAULT_PNG
protected static java.lang.String
ICON_ACTION_UNLOCK_ITEM_DISABLED_PNG
protected static java.lang.String
ICON_ACTION_UNLOCK_ITEM_HOVER_PNG
-
Constructor Summary
Constructors Constructor Description ToggleItemLockActionRenderer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
getIconHoverUri(com.hybris.cockpitng.actions.ActionContext<java.lang.Object> context, boolean canPerform)
protected java.lang.String
getIconUri(com.hybris.cockpitng.actions.ActionContext<java.lang.Object> context, boolean canPerform)
protected ItemLockingService
getItemLockingService()
protected java.lang.String
getLocalizedName(com.hybris.cockpitng.actions.ActionContext<?> context)
protected java.lang.String
getLockedIconUri(java.lang.Object data, java.lang.String lockedFileName, java.lang.String unlockedFileName)
protected boolean
isLocked(java.lang.Object data)
-
Methods inherited from class com.hybris.cockpitng.actions.impl.DefaultActionRenderer
addEventListener, addKeyboardSupport, adjustUri, checkDataCompatibleWithDefinedInput, createEventListener, createYTestId, extractIconDisabledUri, extractIconHoverUri, extractIconUri, extractKeyEvent, findActionComponent, findGroupComponent, findParentComponent, getActionBodySclass, getKeyboardSupportService, getOrCreateContainer, getOrCreateIcon, getOrCreateIcon, getOrCreateLabel, getTooltipText, getToolTipWithCtrlKeysText, loadFromParentModel, perform, performWithConfirmationCheck, registerHoverEventsOnContainer, removeEventListeners, removeEventListeners, removeIcon, removeLabel, render, setTooltipText, storeInParentModel, triggerFromKeyEvent
-
-
-
-
Field Detail
-
ICON_ACTION_UNLOCK_ITEM_HOVER_PNG
protected static final java.lang.String ICON_ACTION_UNLOCK_ITEM_HOVER_PNG
- See Also:
- Constant Field Values
-
ICON_ACTION_LOCK_ITEM_HOVER_PNG
protected static final java.lang.String ICON_ACTION_LOCK_ITEM_HOVER_PNG
- See Also:
- Constant Field Values
-
ICON_ACTION_UNLOCK_ITEM_DEFAULT_PNG
protected static final java.lang.String ICON_ACTION_UNLOCK_ITEM_DEFAULT_PNG
- See Also:
- Constant Field Values
-
ICON_ACTION_LOCK_ITEM_DEFAULT_PNG
protected static final java.lang.String ICON_ACTION_LOCK_ITEM_DEFAULT_PNG
- See Also:
- Constant Field Values
-
ICON_ACTION_UNLOCK_ITEM_DISABLED_PNG
protected static final java.lang.String ICON_ACTION_UNLOCK_ITEM_DISABLED_PNG
- See Also:
- Constant Field Values
-
ICON_ACTION_LOCK_ITEM_DISABLED_PNG
protected static final java.lang.String ICON_ACTION_LOCK_ITEM_DISABLED_PNG
- See Also:
- Constant Field Values
-
I18N_UNLOCK_ACTION_TOOLTIP
protected static final java.lang.String I18N_UNLOCK_ACTION_TOOLTIP
- See Also:
- Constant Field Values
-
I18N_LOCK_ACTION_TOOLTIP
protected static final java.lang.String I18N_LOCK_ACTION_TOOLTIP
- See Also:
- Constant Field Values
-
-
Method Detail
-
getIconHoverUri
protected java.lang.String getIconHoverUri(com.hybris.cockpitng.actions.ActionContext<java.lang.Object> context, boolean canPerform)
- Overrides:
getIconHoverUri
in classcom.hybris.cockpitng.actions.impl.DefaultActionRenderer<java.lang.Object,java.lang.Object>
-
getIconUri
protected java.lang.String getIconUri(com.hybris.cockpitng.actions.ActionContext<java.lang.Object> context, boolean canPerform)
- Overrides:
getIconUri
in classcom.hybris.cockpitng.actions.impl.DefaultActionRenderer<java.lang.Object,java.lang.Object>
-
getLockedIconUri
protected java.lang.String getLockedIconUri(java.lang.Object data, java.lang.String lockedFileName, java.lang.String unlockedFileName)
-
getLocalizedName
protected java.lang.String getLocalizedName(com.hybris.cockpitng.actions.ActionContext<?> context)
- Overrides:
getLocalizedName
in classcom.hybris.cockpitng.actions.impl.DefaultActionRenderer<java.lang.Object,java.lang.Object>
-
isLocked
protected boolean isLocked(java.lang.Object data)
-
getItemLockingService
protected ItemLockingService getItemLockingService()
-
-