Class CallInfoTab

  • All Implemented Interfaces:
    InfoTab, Tab, com.novomind.ecom.common.api.attribute.DisplayNamed, com.novomind.ecom.common.api.attribute.Named

    public final class CallInfoTab
    extends java.lang.Object
    implements InfoTab
    Instances of this class are used as return values of CallInfoTabProvider to define and display custom tabs in the call info view (Supervisor and Agent)
    Since:
    11.27
    • Constructor Summary

      Constructors 
      Constructor Description
      CallInfoTab​(java.lang.String name, java.lang.String displayName, java.lang.String url)
      Initializes a newly created CallInfoTab
    • Constructor Detail

      • CallInfoTab

        public CallInfoTab​(java.lang.String name,
                           java.lang.String displayName,
                           java.lang.String url)
        Initializes a newly created CallInfoTab
        Parameters:
        name - The unique name of the call info tab
        displayName - The name to be displayed at the top of the call info tab
        url - The url to be loaded and displayed within the call info tab content (Please note that relative URLs must be provided as result of CallInfoViewContext.getViewUrl(String url)) Example:
                 public class HelloWorldCallInfoTab implements CallInfoTabProvider {
                   @Override
                   public CallInfoTab getCallInfoTab(CallInfoViewContext context) {
                     return new CallInfoTab(name, displayName, context.getViewUrl("/callinfo/helloworld/helloWorld.xhtml"));
                   }
                 }
                 
        Since:
        11.27
    • Method Detail

      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface com.novomind.ecom.common.api.attribute.Named
        Since:
        11.27
      • getDisplayName

        public java.lang.String getDisplayName()
        Specified by:
        getDisplayName in interface com.novomind.ecom.common.api.attribute.DisplayNamed
        Since:
        11.27
      • getUrl

        public java.lang.String getUrl()
        Description copied from interface: Tab
        The URL of the tab's content
        Specified by:
        getUrl in interface Tab
        Returns:
        the URL as String
        Since:
        11.27
      • setBehavior

        public CallInfoTab setBehavior​(InfoTabBehavior behavior)
        Parameters:
        behavior - The behavior of the InfoTab when the tab's parent view is being rendered.
        Returns:
        this CallInfoTab
        Since:
        11.27
      • getBehavior

        public InfoTabBehavior getBehavior()
        Description copied from interface: InfoTab
        The behavior of the InfoTab when the tab's parent view is being rendered.
        Specified by:
        getBehavior in interface InfoTab
        Returns:
        the InfoTabBehavior
        Since:
        11.27
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
        Since:
        11.27