java.lang.Object
de.hybris.platform.cockpit.components.navigationarea.renderer.AbstractNavigationAreaSectionRenderer
de.hybris.platform.cockpit.components.navigationarea.renderer.InfoBoxRenderer
All Implemented Interfaces:
SectionRenderer, SimpleRenderer

public class InfoBoxRenderer extends AbstractNavigationAreaSectionRenderer implements SimpleRenderer
Dummy renderer.
  • Constructor Details

    • InfoBoxRenderer

      public InfoBoxRenderer()
  • Method Details

    • render

      public void render(SectionPanel panel, org.zkoss.zk.ui.Component parent, org.zkoss.zk.ui.Component captionComponent, Section section)
      Specified by:
      render in interface SectionRenderer
      Specified by:
      render in class AbstractNavigationAreaSectionRenderer
    • render

      public void render(org.zkoss.zk.ui.Component parent)
      Specified by:
      render in interface SimpleRenderer
    • renderAdditionalContent

      protected void renderAdditionalContent(org.zkoss.zk.ui.Component parent, List<ValuePair<String,Integer>> tokens)
      Could be overidden in a subclass to add additional content to the infobox.
      Parameters:
      parent - The container component, append your custom components to it.
      tokens - The tokens that are rendered in the section header. Add ValuePairs containing a string and an integer to this list if you want to display them.
    • createHeaderInfo

      protected org.zkoss.zk.ui.Component createHeaderInfo(List<ValuePair<String,Integer>> tokens)
      Returns a component for an additional header info string, seperated by '/' or null, if tokens is empty.
      Parameters:
      tokens - a valuepair representing a label and a number, like e.g. 'C' for comments and the number of comments
    • createHeaderTokenComponent

      protected org.zkoss.zk.ui.Component createHeaderTokenComponent(ValuePair<String,Integer> token)
    • getSectionPanelModel

      public SectionPanelModel getSectionPanelModel()
      Overrides:
      getSectionPanelModel in class AbstractNavigationAreaSectionRenderer
      Returns:
      the sectionPanelModel
    • getWorkflowAttClassNames

      public List<String> getWorkflowAttClassNames()
      Returns:
      the workflowAttClassNames
    • setWorkflowAttClassNames

      public void setWorkflowAttClassNames(List<String> workflowAttClassNames)
      Parameters:
      workflowAttClassNames - the workflowAttClassNames to set
    • getUserName

      protected String getUserName()
    • getLanguage

      protected String getLanguage()
    • getCockpitCommentService

      public CockpitCommentService getCockpitCommentService()
      Returns:
      the cockpitCommentService
    • getCommunicationBrowserModel

      public CommunicationBrowserModel getCommunicationBrowserModel()
      Returns:
      the communicationBrowserModel