Class DefaultWorkflowActionsRenderer
- java.lang.Object
-
- com.hybris.backoffice.widgets.workflowactions.renderer.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 Summary
Fields Modifier and Type Field Description protected static java.lang.StringLABEL_WORKFLOW_ACTIONS_ATTACHMENTprotected static java.lang.StringLABEL_WORKFLOW_ACTIONS_ATTACHMENTSprotected static java.lang.StringSCLASS_WORKFLOW_ACTIONS_LIST_CONTENTprotected static java.lang.StringSCLASS_WORKFLOW_ACTIONS_LIST_CONTENT_BOTTOMprotected static java.lang.StringSCLASS_WORKFLOW_ACTIONS_LIST_CONTENT_MIDDLEprotected static java.lang.StringSCLASS_WORKFLOW_ACTIONS_LIST_CONTENT_TOPprotected static java.lang.StringSCLASS_WORKFLOW_ACTIONS_LIST_INFOprotected static java.lang.StringSCLASS_WORKFLOW_ACTIONS_LIST_ITEMprotected static java.lang.StringSCLASS_WORKFLOW_ACTIONS_LIST_TITLE
-
Constructor Summary
Constructors Constructor Description DefaultWorkflowActionsRenderer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.zkoss.zul.DivcreateBottomContent(com.hybris.cockpitng.engine.WidgetInstanceManager wim, WorkflowActionModel data)protected org.zkoss.zul.LabelcreateDateLabel(WorkflowActionModel data)protected org.zkoss.zul.DivcreateMiddleContent(com.hybris.cockpitng.engine.WidgetInstanceManager wim, WorkflowActionModel data)protected java.lang.StringcreateMiddleContentLabel(WorkflowActionModel data)protected org.zkoss.zul.LabelcreateNoOfAttachmentsLabel(com.hybris.cockpitng.engine.WidgetInstanceManager wim, WorkflowActionModel data)protected org.zkoss.zul.ButtoncreateTitleButton(java.lang.String title, WorkflowActionModel data, com.hybris.cockpitng.engine.WidgetInstanceManager wim)protected org.zkoss.zul.DivcreateTopContent(java.lang.String title, WorkflowActionModel data, com.hybris.cockpitng.engine.WidgetInstanceManager wim)protected java.lang.StringcreateTopContentTitle(WorkflowActionModel data)I18NServicegetI18NService()com.hybris.cockpitng.labels.LabelServicegetLabelService()SessionServicegetSessionService()TimeServicegetTimeService()UIDateRendererProvidergetUiDateRendererProvider()protected voidonTitleClick(WorkflowActionModel data, com.hybris.cockpitng.engine.WidgetInstanceManager wim)voidrender(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)voidsetI18NService(I18NService i18NService)voidsetLabelService(com.hybris.cockpitng.labels.LabelService labelService)voidsetSessionService(SessionService sessionService)voidsetTimeService(TimeService timeService)voidsetUiDateRendererProvider(UIDateRendererProvider uiDateRendererProvider)
-
-
-
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
-
-
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:
renderin interfacecom.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)
-
getUiDateRendererProvider
public UIDateRendererProvider getUiDateRendererProvider()
-
setUiDateRendererProvider
public void setUiDateRendererProvider(UIDateRendererProvider uiDateRendererProvider)
-
onTitleClick
protected void onTitleClick(WorkflowActionModel data, com.hybris.cockpitng.engine.WidgetInstanceManager wim)
-
getTimeService
public TimeService getTimeService()
-
setTimeService
public void setTimeService(TimeService timeService)
-
getLabelService
public com.hybris.cockpitng.labels.LabelService getLabelService()
-
setLabelService
public void setLabelService(com.hybris.cockpitng.labels.LabelService labelService)
-
getSessionService
public SessionService getSessionService()
-
setSessionService
public void setSessionService(SessionService sessionService)
-
getI18NService
public I18NService getI18NService()
-
setI18NService
public void setI18NService(I18NService i18NService)
-
-