Class ChatInfoTab

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

    public final class ChatInfoTab
    extends AbstractTab
    implements InfoTab
    Represents an info tab within a chat info view
    Since:
    10.0.142
    • Constructor Summary

      Constructors 
      Constructor Description
      ChatInfoTab​(java.lang.String name, java.lang.String displayName, java.lang.String url)
      Initializes a newly created ChatInfoTab
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      InfoTabBehavior getBehavior()
      The behavior of the InfoTab when the tab's parent view is being rendered.
      ChatInfoTab setBehavior​(InfoTabBehavior behavior)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface com.novomind.ecom.common.api.attribute.DisplayNamed

        getDisplayName
      • Methods inherited from interface com.novomind.ecom.common.api.attribute.Named

        getName
      • Methods inherited from interface com.novomind.ecom.api.iagent.frontend.tab.Tab

        getUrl
    • Constructor Detail

      • ChatInfoTab

        public ChatInfoTab​(java.lang.String name,
                           java.lang.String displayName,
                           java.lang.String url)
        Initializes a newly created ChatInfoTab
        Parameters:
        name - The unique name of the chat info tab
        displayName - The name to be displayed at the top of the chat info tab
        url - The url to be loaded and displayed within the iframe of the chat info tab (Please note that relative URLs must be provided as result of ChatInfoViewContext.getViewUrl(String url)) Example:
                  public class HelloWorldChatInfoTab implements ChatInfoTabProvider {
                    @Override
                    public ChatInfoTab getChatInfoTab(ChatInfoViewContext context) {
                      return new ChatInfoTab(name, displayName, context.getViewUrl("/chatinfo/helloworld/helloWorld.xhtml"));
                    }
                  }
                  
        Since:
        10.0.142
    • Method Detail

      • setBehavior

        public ChatInfoTab setBehavior​(InfoTabBehavior behavior)
        Parameters:
        behavior - The behavior of this chat info tab
        Returns:
        the ChatInfoTab
        Since:
        10.0.142
      • 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:
        10.0.142
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class AbstractTab
        Since:
        10.0.142