Class InfoBoxRenderer

    • Constructor Detail

      • InfoBoxRenderer

        public InfoBoxRenderer()
    • Method Detail

      • 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,
                                               java.util.List<ValuePair<java.lang.String,​java.lang.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​(java.util.List<ValuePair<java.lang.String,​java.lang.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<java.lang.String,​java.lang.Integer> token)
      • getWorkflowAttClassNames

        public java.util.List<java.lang.String> getWorkflowAttClassNames()
        Returns:
        the workflowAttClassNames
      • setWorkflowAttClassNames

        public void setWorkflowAttClassNames​(java.util.List<java.lang.String> workflowAttClassNames)
        Parameters:
        workflowAttClassNames - the workflowAttClassNames to set
      • getUserName

        protected java.lang.String getUserName()
      • getLanguage

        protected java.lang.String getLanguage()
      • getCockpitCommentService

        public CockpitCommentService getCockpitCommentService()
        Returns:
        the cockpitCommentService
      • getCommunicationBrowserModel

        public CommunicationBrowserModel getCommunicationBrowserModel()
        Returns:
        the communicationBrowserModel