Class 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 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
    • Constructor Detail

      • CorrespondenceRenderer

        public CorrespondenceRenderer()
    • 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)
      • 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()
      • setTicketBusinessService

        public void setTicketBusinessService​(TicketBusinessService ticketBusinessService)
      • 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()
      • setTicketAttachmentsService

        public void setTicketAttachmentsService​(TicketAttachmentsService ticketAttachmentsService)
      • getAllowedUploadedFormats

        protected java.lang.String getAllowedUploadedFormats()
      • setAllowedUploadedFormats

        public void setAllowedUploadedFormats​(java.lang.String allowedUploadedFormats)