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.StringCUSTOMER_MSG_TEXTBOX_STYLEprotected static java.lang.StringCUSTOMER_SERVICE_STYLE_BOXprotected static java.lang.StringCUSTOMER_STYLE_BOXprotected static java.lang.StringMSG_TEXTBOX_STYLE_CLOSEprotected static java.lang.StringMSG_TEXTBOX_STYLE_REOPENprotected static java.lang.StringPRIVATE_MSG_TEXTBOX_STYLEprotected static java.lang.StringPUBLIC_MSG_TEXTBOX_STYLEprotected static java.lang.StringSEND_BUTTON_STYLEprotected static java.lang.StringSEND_TEXTBOX_STYLEprotected static java.lang.StringSTATUS_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.EventListeneraddReplyToComboEventListener(org.zkoss.zul.Radiogroup replyToTypeRadioGroup, org.zkoss.zul.Combobox contactTypeCombo)protected org.zkoss.zk.ui.event.EventListeneraddReplyToRadioEventListener(org.zkoss.zul.Radiogroup replyToTypeRadioGroup, org.zkoss.zul.Combobox contactTypeCombo)protected voidaddSendArea(org.zkoss.zk.ui.Component parent)protected org.zkoss.zul.ComboboxconfigureContactTypeCombo()protected org.zkoss.zul.RadiogroupconfigureReplyToRadioGroup()protected org.zkoss.zul.AcreateAttachmentLink(MediaModel mediaModel)protected org.zkoss.zk.ui.ComponentcreateCommentBox(CsTicketEventModel csTicketEventModel)protected org.zkoss.zk.ui.ComponentcreateEntryChangeBox(CsTicketEventModel csTicketEventModel)protected org.zkoss.zk.ui.ComponentcreateFooter(CsTicketEventModel ticket)protected MediaModelcreateMediaModel(org.zkoss.util.media.Media media, UserModel customer)protected java.lang.StringgetAllowedUploadedFormats()protected java.util.Set<MediaModel>getAttachments()protected ModelServicegetModelService()protected com.hybris.cockpitng.util.notifications.NotificationServicegetNotificationService()protected TicketAttachmentsServicegetTicketAttachmentsService()protected TicketBusinessServicegetTicketBusinessService()protected TicketServicegetTicketService()protected org.zkoss.zk.ui.event.EventListenerhandleButtonClick(org.zkoss.zul.Combobox contactTypeCombo)Handles the button click events for the reply messages.protected booleanhasMatchingStatusEvent(java.util.Set<CsTicketChangeEventEntryModel> ticketEventEntries, CsTicketState oldState, CsTicketState newState)protected voidhighlightReplyTextBox(CsInterventionType selectedInterventionType)Adds CSS class to the replyTextbox to highlight the color based on selection of the radio / combo itemprotected voidremoveSaveButton(org.zkoss.zk.ui.Component component)voidrender(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)voidsetAllowedUploadedFormats(java.lang.String allowedUploadedFormats)voidsetModelService(ModelService modelService)voidsetNotificationService(com.hybris.cockpitng.util.notifications.NotificationService notificationService)voidsetTicketAttachmentsService(TicketAttachmentsService ticketAttachmentsService)voidsetTicketBusinessService(TicketBusinessService ticketBusinessService)voidsetTicketService(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)
-
-