Class DefaultWorkflowActionsRenderer

  • All Implemented Interfaces:
    com.hybris.cockpitng.widgets.common.WidgetComponentRenderer<org.zkoss.zul.Listitem,​java.lang.Object,​WorkflowActionModel>
    Direct Known Subclasses:
    DashboardWorkflowActionsRenderer

    public class DefaultWorkflowActionsRenderer
    extends java.lang.Object
    implements com.hybris.cockpitng.widgets.common.WidgetComponentRenderer<org.zkoss.zul.Listitem,​java.lang.Object,​WorkflowActionModel>
    Renderer which is responsible for rendering workflow action on the list.
    • Field Detail

      • SCLASS_WORKFLOW_ACTIONS_LIST_CONTENT

        protected static final java.lang.String SCLASS_WORKFLOW_ACTIONS_LIST_CONTENT
        See Also:
        Constant Field Values
      • SCLASS_WORKFLOW_ACTIONS_LIST_CONTENT_BOTTOM

        protected static final java.lang.String SCLASS_WORKFLOW_ACTIONS_LIST_CONTENT_BOTTOM
        See Also:
        Constant Field Values
      • SCLASS_WORKFLOW_ACTIONS_LIST_CONTENT_MIDDLE

        protected static final java.lang.String SCLASS_WORKFLOW_ACTIONS_LIST_CONTENT_MIDDLE
        See Also:
        Constant Field Values
      • SCLASS_WORKFLOW_ACTIONS_LIST_CONTENT_TOP

        protected static final java.lang.String SCLASS_WORKFLOW_ACTIONS_LIST_CONTENT_TOP
        See Also:
        Constant Field Values
      • SCLASS_WORKFLOW_ACTIONS_LIST_INFO

        protected static final java.lang.String SCLASS_WORKFLOW_ACTIONS_LIST_INFO
        See Also:
        Constant Field Values
      • SCLASS_WORKFLOW_ACTIONS_LIST_ITEM

        protected static final java.lang.String SCLASS_WORKFLOW_ACTIONS_LIST_ITEM
        See Also:
        Constant Field Values
      • SCLASS_WORKFLOW_ACTIONS_LIST_TITLE

        protected static final java.lang.String SCLASS_WORKFLOW_ACTIONS_LIST_TITLE
        See Also:
        Constant Field Values
      • LABEL_WORKFLOW_ACTIONS_ATTACHMENT

        protected static final java.lang.String LABEL_WORKFLOW_ACTIONS_ATTACHMENT
        See Also:
        Constant Field Values
      • LABEL_WORKFLOW_ACTIONS_ATTACHMENTS

        protected static final java.lang.String LABEL_WORKFLOW_ACTIONS_ATTACHMENTS
        See Also:
        Constant Field Values
    • Constructor Detail

      • DefaultWorkflowActionsRenderer

        public DefaultWorkflowActionsRenderer()
    • Method Detail

      • render

        public void render​(org.zkoss.zul.Listitem listitem,
                           java.lang.Object configuration,
                           WorkflowActionModel data,
                           com.hybris.cockpitng.dataaccess.facades.type.DataType dataType,
                           com.hybris.cockpitng.engine.WidgetInstanceManager wim)
        Specified by:
        render in interface com.hybris.cockpitng.widgets.common.WidgetComponentRenderer<org.zkoss.zul.Listitem,​java.lang.Object,​WorkflowActionModel>
      • createTopContentTitle

        protected java.lang.String createTopContentTitle​(WorkflowActionModel data)
      • createTopContent

        protected org.zkoss.zul.Div createTopContent​(java.lang.String title,
                                                     WorkflowActionModel data,
                                                     com.hybris.cockpitng.engine.WidgetInstanceManager wim)
      • createTitleButton

        protected org.zkoss.zul.Button createTitleButton​(java.lang.String title,
                                                         WorkflowActionModel data,
                                                         com.hybris.cockpitng.engine.WidgetInstanceManager wim)
      • createMiddleContent

        protected org.zkoss.zul.Div createMiddleContent​(com.hybris.cockpitng.engine.WidgetInstanceManager wim,
                                                        WorkflowActionModel data)
      • createMiddleContentLabel

        protected java.lang.String createMiddleContentLabel​(WorkflowActionModel data)
      • createBottomContent

        protected org.zkoss.zul.Div createBottomContent​(com.hybris.cockpitng.engine.WidgetInstanceManager wim,
                                                        WorkflowActionModel data)
      • createDateLabel

        protected org.zkoss.zul.Label createDateLabel​(WorkflowActionModel data)
      • createNoOfAttachmentsLabel

        protected org.zkoss.zul.Label createNoOfAttachmentsLabel​(com.hybris.cockpitng.engine.WidgetInstanceManager wim,
                                                                 WorkflowActionModel data)
      • setUiDateRendererProvider

        public void setUiDateRendererProvider​(UIDateRendererProvider uiDateRendererProvider)
      • onTitleClick

        protected void onTitleClick​(WorkflowActionModel data,
                                    com.hybris.cockpitng.engine.WidgetInstanceManager wim)
      • setTimeService

        public void setTimeService​(TimeService timeService)
      • getLabelService

        public com.hybris.cockpitng.labels.LabelService getLabelService()
      • setLabelService

        public void setLabelService​(com.hybris.cockpitng.labels.LabelService labelService)
      • setSessionService

        public void setSessionService​(SessionService sessionService)
      • setI18NService

        public void setI18NService​(I18NService i18NService)