Class CorrespondenceRenderer
- java.lang.Object
-
- com.hybris.cockpitng.widgets.common.AbstractWidgetComponentRenderer<org.zkoss.zk.ui.Component,T,K>
-
- com.hybris.cockpitng.widgets.editorarea.renderer.impl.AbstractEditorAreaComponentRenderer<com.hybris.cockpitng.core.config.impl.jaxb.editorarea.AbstractPanel,K>
-
- com.hybris.cockpitng.widgets.editorarea.renderer.impl.AbstractEditorAreaPanelRenderer<CsTicketModel>
-
- de.hybris.platform.customersupportbackoffice.renderers.CorrespondenceRenderer
-
- All Implemented Interfaces:
com.hybris.cockpitng.widgets.common.NotifyingWidgetComponentRenderer<org.zkoss.zk.ui.Component,com.hybris.cockpitng.core.config.impl.jaxb.editorarea.AbstractPanel,CsTicketModel>
,com.hybris.cockpitng.widgets.common.WidgetComponentRenderer<org.zkoss.zk.ui.Component,com.hybris.cockpitng.core.config.impl.jaxb.editorarea.AbstractPanel,CsTicketModel>
public class CorrespondenceRenderer extends com.hybris.cockpitng.widgets.editorarea.renderer.impl.AbstractEditorAreaPanelRenderer<CsTicketModel>
Special renderer for Ticket -> General tab -> Correspondence section. looks like chat
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.String
CUSTOMER_MSG_TEXTBOX_STYLE
protected static java.lang.String
CUSTOMER_SERVICE_STYLE_BOX
protected static java.lang.String
CUSTOMER_STYLE_BOX
protected static java.lang.String
MSG_TEXTBOX_STYLE_CLOSE
protected static java.lang.String
MSG_TEXTBOX_STYLE_REOPEN
protected static java.lang.String
PRIVATE_MSG_TEXTBOX_STYLE
protected static java.lang.String
PUBLIC_MSG_TEXTBOX_STYLE
protected static java.lang.String
SEND_BUTTON_STYLE
protected static java.lang.String
SEND_TEXTBOX_STYLE
protected static java.lang.String
STATUS_MSG_TEXTBOX_STYLE
-
Fields inherited from class com.hybris.cockpitng.widgets.editorarea.renderer.impl.AbstractEditorAreaComponentRenderer
ATTR_NOT_SAVED_OBJECT, attributeDescriptionIconRenderer, CURRENT_OBJECT, CURRENT_OBJECT_DOTLESS, MISSING_RENDERER_ERROR_MSG, SCLASS_CELL_READ_RESTRICTED, SCLASS_CUSTOM_CONTAINER, SCLASS_DESCRIPTION, SCLASS_DESCRIPTION_LABEL, SCLASS_EDITOR, SCLASS_EDITOR_CONTAINER, SCLASS_LABEL, SCLASS_READONLY_EDITOR
-
-
Constructor Summary
Constructors Constructor Description CorrespondenceRenderer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.zkoss.zk.ui.event.EventListener
addReplyToComboEventListener(org.zkoss.zul.Radiogroup replyToTypeRadioGroup, org.zkoss.zul.Combobox contactTypeCombo)
protected org.zkoss.zk.ui.event.EventListener
addReplyToRadioEventListener(org.zkoss.zul.Radiogroup replyToTypeRadioGroup, org.zkoss.zul.Combobox contactTypeCombo)
protected void
addSendArea(org.zkoss.zk.ui.Component parent)
protected org.zkoss.zul.Combobox
configureContactTypeCombo()
protected org.zkoss.zul.Radiogroup
configureReplyToRadioGroup()
protected org.zkoss.zul.A
createAttachmentLink(MediaModel mediaModel)
protected org.zkoss.zk.ui.Component
createCommentBox(CsTicketEventModel csTicketEventModel)
protected org.zkoss.zk.ui.Component
createEntryChangeBox(CsTicketEventModel csTicketEventModel)
protected org.zkoss.zk.ui.Component
createFooter(CsTicketEventModel ticket)
protected MediaModel
createMediaModel(org.zkoss.util.media.Media media, UserModel customer)
protected java.lang.String
getAllowedUploadedFormats()
protected java.util.Set<MediaModel>
getAttachments()
protected ModelService
getModelService()
protected com.hybris.cockpitng.util.notifications.NotificationService
getNotificationService()
protected TicketAttachmentsService
getTicketAttachmentsService()
protected TicketBusinessService
getTicketBusinessService()
protected TicketService
getTicketService()
protected org.zkoss.zk.ui.event.EventListener
handleButtonClick(org.zkoss.zul.Combobox contactTypeCombo)
Handles the button click events for the reply messages.protected boolean
hasMatchingStatusEvent(java.util.Set<CsTicketChangeEventEntryModel> ticketEventEntries, CsTicketState oldState, CsTicketState newState)
protected void
highlightReplyTextBox(CsInterventionType selectedInterventionType)
Adds CSS class to the replyTextbox to highlight the color based on selection of the radio / combo itemprotected void
removeSaveButton(org.zkoss.zk.ui.Component component)
void
render(org.zkoss.zk.ui.Component component, com.hybris.cockpitng.core.config.impl.jaxb.editorarea.AbstractPanel abstractPanel, CsTicketModel csTicketModel, com.hybris.cockpitng.dataaccess.facades.type.DataType dataType, com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager)
void
setAllowedUploadedFormats(java.lang.String allowedUploadedFormats)
void
setModelService(ModelService modelService)
void
setNotificationService(com.hybris.cockpitng.util.notifications.NotificationService notificationService)
void
setTicketAttachmentsService(TicketAttachmentsService ticketAttachmentsService)
void
setTicketBusinessService(TicketBusinessService ticketBusinessService)
void
setTicketService(TicketService ticketService)
-
Methods inherited from class com.hybris.cockpitng.widgets.editorarea.renderer.impl.AbstractEditorAreaComponentRenderer
buildEditor, canChangeProperty, createCustom, createEditor, createNotReadableAttributeLabelRenderer, evaluateCustomDefinition, extractParameterName, extractParameterValue, extractPropertiesList, getAttributeDescription, getCockpitLocaleService, getCockpitUserService, getEditAvailabilityProviderFactory, getEditorBuilder, getLabelService, getPermissionFacade, getPropertyValueService, getWidgetRenderingUtils, processEditorBeforeComposition, renderNotReadableLabel, resolveAttributeLabel, resolveAttributePath, resolveCustomComponentRenderer, resolveEditorType, resolveLabel, setAttributeDescriptionIconRenderer, setCockpitLocaleService, setCockpitUserService, setEditAvailabilityProviderFactory, setLabelService, setPermissionFacade, setPropertyValueService, setWidgetRenderingUtils, validateCustomElement
-
Methods inherited from class com.hybris.cockpitng.widgets.common.AbstractWidgetComponentRenderer
addRendererListener, fireComponentRendered, fireComponentRendered, fireComponentRendered, removeRendererListener
-
-
-
-
Field Detail
-
CUSTOMER_SERVICE_STYLE_BOX
protected static final java.lang.String CUSTOMER_SERVICE_STYLE_BOX
- See Also:
- Constant Field Values
-
CUSTOMER_STYLE_BOX
protected static final java.lang.String CUSTOMER_STYLE_BOX
- See Also:
- Constant Field Values
-
SEND_BUTTON_STYLE
protected static final java.lang.String SEND_BUTTON_STYLE
- See Also:
- Constant Field Values
-
SEND_TEXTBOX_STYLE
protected static final java.lang.String SEND_TEXTBOX_STYLE
- See Also:
- Constant Field Values
-
PRIVATE_MSG_TEXTBOX_STYLE
protected static final java.lang.String PRIVATE_MSG_TEXTBOX_STYLE
- See Also:
- Constant Field Values
-
PUBLIC_MSG_TEXTBOX_STYLE
protected static final java.lang.String PUBLIC_MSG_TEXTBOX_STYLE
- See Also:
- Constant Field Values
-
STATUS_MSG_TEXTBOX_STYLE
protected static final java.lang.String STATUS_MSG_TEXTBOX_STYLE
- See Also:
- Constant Field Values
-
CUSTOMER_MSG_TEXTBOX_STYLE
protected static final java.lang.String CUSTOMER_MSG_TEXTBOX_STYLE
- See Also:
- Constant Field Values
-
MSG_TEXTBOX_STYLE_CLOSE
protected static final java.lang.String MSG_TEXTBOX_STYLE_CLOSE
- See Also:
- Constant Field Values
-
MSG_TEXTBOX_STYLE_REOPEN
protected static final java.lang.String MSG_TEXTBOX_STYLE_REOPEN
- See Also:
- Constant Field Values
-
-
Method Detail
-
render
public void render(org.zkoss.zk.ui.Component component, com.hybris.cockpitng.core.config.impl.jaxb.editorarea.AbstractPanel abstractPanel, CsTicketModel csTicketModel, com.hybris.cockpitng.dataaccess.facades.type.DataType dataType, com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager)
-
createFooter
protected org.zkoss.zk.ui.Component createFooter(CsTicketEventModel ticket)
-
createCommentBox
protected org.zkoss.zk.ui.Component createCommentBox(CsTicketEventModel csTicketEventModel)
-
createEntryChangeBox
protected org.zkoss.zk.ui.Component createEntryChangeBox(CsTicketEventModel csTicketEventModel)
-
hasMatchingStatusEvent
protected boolean hasMatchingStatusEvent(java.util.Set<CsTicketChangeEventEntryModel> ticketEventEntries, CsTicketState oldState, CsTicketState newState)
-
removeSaveButton
protected void removeSaveButton(org.zkoss.zk.ui.Component component)
-
addSendArea
protected void addSendArea(org.zkoss.zk.ui.Component parent)
-
handleButtonClick
protected org.zkoss.zk.ui.event.EventListener handleButtonClick(org.zkoss.zul.Combobox contactTypeCombo)
Handles the button click events for the reply messages.- Parameters:
contactTypeCombo
-- Returns:
- EventListener
-
highlightReplyTextBox
protected void highlightReplyTextBox(CsInterventionType selectedInterventionType)
Adds CSS class to the replyTextbox to highlight the color based on selection of the radio / combo item- Parameters:
selectedInterventionType
-
-
addReplyToComboEventListener
protected org.zkoss.zk.ui.event.EventListener addReplyToComboEventListener(org.zkoss.zul.Radiogroup replyToTypeRadioGroup, org.zkoss.zul.Combobox contactTypeCombo)
- Parameters:
contactTypeCombo
-replyToTypeRadioGroup
-
-
addReplyToRadioEventListener
protected org.zkoss.zk.ui.event.EventListener addReplyToRadioEventListener(org.zkoss.zul.Radiogroup replyToTypeRadioGroup, org.zkoss.zul.Combobox contactTypeCombo)
- Parameters:
contactTypeCombo
-replyToTypeRadioGroup
-
-
createMediaModel
protected MediaModel createMediaModel(org.zkoss.util.media.Media media, UserModel customer) throws java.io.IOException
- Throws:
java.io.IOException
-
createAttachmentLink
protected org.zkoss.zul.A createAttachmentLink(MediaModel mediaModel)
-
configureContactTypeCombo
protected org.zkoss.zul.Combobox configureContactTypeCombo()
-
configureReplyToRadioGroup
protected org.zkoss.zul.Radiogroup configureReplyToRadioGroup()
-
getTicketBusinessService
protected TicketBusinessService getTicketBusinessService()
-
setTicketBusinessService
public void setTicketBusinessService(TicketBusinessService ticketBusinessService)
-
getTicketService
protected TicketService getTicketService()
-
setTicketService
public void setTicketService(TicketService ticketService)
-
getAttachments
protected java.util.Set<MediaModel> getAttachments()
-
getNotificationService
protected com.hybris.cockpitng.util.notifications.NotificationService getNotificationService()
-
setNotificationService
public void setNotificationService(com.hybris.cockpitng.util.notifications.NotificationService notificationService)
-
setModelService
public void setModelService(ModelService modelService)
-
getModelService
protected ModelService getModelService()
-
getTicketAttachmentsService
protected TicketAttachmentsService getTicketAttachmentsService()
-
setTicketAttachmentsService
public void setTicketAttachmentsService(TicketAttachmentsService ticketAttachmentsService)
-
getAllowedUploadedFormats
protected java.lang.String getAllowedUploadedFormats()
-
setAllowedUploadedFormats
public void setAllowedUploadedFormats(java.lang.String allowedUploadedFormats)
-
-