Class InfoBoxRenderer
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.zkoss.zk.ui.ComponentcreateHeaderInfo(List<ValuePair<String, Integer>> tokens) Returns a component for an additional header info string, seperated by '/' or null, if tokens is empty.protected org.zkoss.zk.ui.Componentprotected Stringprotected Stringvoidrender(SectionPanel panel, org.zkoss.zk.ui.Component parent, org.zkoss.zk.ui.Component captionComponent, Section section) voidrender(org.zkoss.zk.ui.Component parent) protected voidrenderAdditionalContent(org.zkoss.zk.ui.Component parent, List<ValuePair<String, Integer>> tokens) Could be overidden in a subclass to add additional content to the infobox.voidsetWorkflowAttClassNames(List<String> workflowAttClassNames) Methods inherited from class de.hybris.platform.cockpit.components.navigationarea.renderer.AbstractNavigationAreaSectionRenderer
createBrowserItemTooltip, createList, getNavigationArea, setNavigationArea
-
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:
renderin interfaceSectionRenderer- Specified by:
renderin classAbstractNavigationAreaSectionRenderer
-
render
public void render(org.zkoss.zk.ui.Component parent) - Specified by:
renderin interfaceSimpleRenderer
-
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. AddValuePairs containing a string and an integer to this list if you want to display them.
-
createHeaderInfo
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
-
getSectionPanelModel
- Overrides:
getSectionPanelModelin classAbstractNavigationAreaSectionRenderer- Returns:
- the sectionPanelModel
-
getWorkflowAttClassNames
- Returns:
- the workflowAttClassNames
-
setWorkflowAttClassNames
- Parameters:
workflowAttClassNames- the workflowAttClassNames to set
-
getUserName
-
getLanguage
-
getCockpitCommentService
- Returns:
- the cockpitCommentService
-
getCommunicationBrowserModel
- Returns:
- the communicationBrowserModel
-