Class 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>
    • 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>
    • 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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
    • Constructor Detail

      • ToggleItemLockActionRenderer

        public ToggleItemLockActionRenderer()
    • Method Detail

      • getIconHoverUri

        protected java.lang.String getIconHoverUri​(com.hybris.cockpitng.actions.ActionContext<java.lang.Object> context,
                                                   boolean canPerform)
        Overrides:
        getIconHoverUri in class com.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 class com.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 class com.hybris.cockpitng.actions.impl.DefaultActionRenderer<java.lang.Object,​java.lang.Object>
      • isLocked

        protected boolean isLocked​(java.lang.Object data)