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
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final StringFields inherited from class com.hybris.cockpitng.widgets.editorarea.renderer.impl.AbstractEditorAreaComponentRenderer
ATTR_NOT_SAVED_OBJECT, attributeDescriptionIconRenderer, CURRENT_OBJECT, CURRENT_OBJECT_DOTLESS, DEFAULT_ENCRYPTED_EDITOR, 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 -
Method Summary
Modifier and TypeMethodDescriptionprotected 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.Comboboxprotected org.zkoss.zul.Radiogroupprotected 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 Stringprotected Set<MediaModel>protected TimeZoneprotected ModelServiceprotected com.hybris.cockpitng.util.notifications.NotificationServiceprotected TicketAttachmentsServiceprotected TicketBusinessServiceprotected TicketServiceprotected org.zkoss.zk.ui.event.EventListenerhandleButtonClick(org.zkoss.zul.Combobox contactTypeCombo) Handles the button click events for the reply messages.protected booleanhasMatchingStatusEvent(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(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, getObjectFacade, getPermissionFacade, getPropertyValueService, getWidgetRenderingUtils, processEditorBeforeComposition, renderNotReadableLabel, resolveAttributeLabel, resolveAttributePath, resolveCustomComponentRenderer, resolveEditorType, resolveLabel, setAttributeDescriptionIconRenderer, setCockpitLocaleService, setCockpitUserService, setEditAvailabilityProviderFactory, setLabelService, setObjectFacade, setPasswordEditorAsDefaultForEncryptedStrings, setPermissionFacade, setPropertyValueService, setWidgetRenderingUtils, validateCustomElementMethods inherited from class com.hybris.cockpitng.widgets.common.AbstractWidgetComponentRenderer
addRendererListener, fireComponentRendered, fireComponentRendered, fireComponentRendered, removeRendererListenerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hybris.cockpitng.widgets.common.WidgetComponentRenderer
render
-
Field Details
-
CUSTOMER_SERVICE_STYLE_BOX
- See Also:
-
CUSTOMER_STYLE_BOX
- See Also:
-
SEND_BUTTON_STYLE
- See Also:
-
SEND_TEXTBOX_STYLE
- See Also:
-
PRIVATE_MSG_TEXTBOX_STYLE
- See Also:
-
PUBLIC_MSG_TEXTBOX_STYLE
- See Also:
-
STATUS_MSG_TEXTBOX_STYLE
- See Also:
-
CUSTOMER_MSG_TEXTBOX_STYLE
- See Also:
-
MSG_TEXTBOX_STYLE_CLOSE
- See Also:
-
MSG_TEXTBOX_STYLE_REOPEN
- See Also:
-
-
Constructor Details
-
CorrespondenceRenderer
public CorrespondenceRenderer()
-
-
Method Details
-
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) -
getFormatTimeZone
-
createCommentBox
-
createEntryChangeBox
-
hasMatchingStatusEvent
protected boolean hasMatchingStatusEvent(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
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 IOException - Throws:
IOException
-
createAttachmentLink
-
configureContactTypeCombo
protected org.zkoss.zul.Combobox configureContactTypeCombo() -
configureReplyToRadioGroup
protected org.zkoss.zul.Radiogroup configureReplyToRadioGroup() -
getTicketBusinessService
-
setTicketBusinessService
-
getTicketService
-
setTicketService
-
getAttachments
-
getNotificationService
protected com.hybris.cockpitng.util.notifications.NotificationService getNotificationService() -
setNotificationService
public void setNotificationService(com.hybris.cockpitng.util.notifications.NotificationService notificationService) -
setModelService
-
getModelService
-
getTicketAttachmentsService
-
setTicketAttachmentsService
-
getAllowedUploadedFormats
-
setAllowedUploadedFormats
-