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 Constructor Description InfoBoxRenderer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.zkoss.zk.ui.ComponentcreateHeaderInfo(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.protected org.zkoss.zk.ui.ComponentcreateHeaderTokenComponent(ValuePair<java.lang.String,java.lang.Integer> token)CockpitCommentServicegetCockpitCommentService()CommunicationBrowserModelgetCommunicationBrowserModel()protected java.lang.StringgetLanguage()SectionPanelModelgetSectionPanelModel()protected java.lang.StringgetUserName()java.util.List<java.lang.String>getWorkflowAttClassNames()voidrender(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, java.util.List<ValuePair<java.lang.String,java.lang.Integer>> tokens)Could be overidden in a subclass to add additional content to the infobox.voidsetWorkflowAttClassNames(java.util.List<java.lang.String> workflowAttClassNames)-
Methods inherited from class de.hybris.platform.cockpit.components.navigationarea.renderer.AbstractNavigationAreaSectionRenderer
createBrowserItemTooltip, createList, getNavigationArea, setNavigationArea
-
-
-
-
Method Detail
-
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, 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. AddValuePairs 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)
-
getSectionPanelModel
public SectionPanelModel getSectionPanelModel()
- Overrides:
getSectionPanelModelin classAbstractNavigationAreaSectionRenderer- Returns:
- the sectionPanelModel
-
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
-
-