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.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.protected org.zkoss.zk.ui.Component
createHeaderTokenComponent(ValuePair<java.lang.String,java.lang.Integer> token)
CockpitCommentService
getCockpitCommentService()
CommunicationBrowserModel
getCommunicationBrowserModel()
protected java.lang.String
getLanguage()
SectionPanelModel
getSectionPanelModel()
protected java.lang.String
getUserName()
java.util.List<java.lang.String>
getWorkflowAttClassNames()
void
render(SectionPanel panel, org.zkoss.zk.ui.Component parent, org.zkoss.zk.ui.Component captionComponent, Section section)
void
render(org.zkoss.zk.ui.Component parent)
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.void
setWorkflowAttClassNames(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:
render
in interfaceSectionRenderer
- Specified by:
render
in classAbstractNavigationAreaSectionRenderer
-
render
public void render(org.zkoss.zk.ui.Component parent)
- Specified by:
render
in 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. AddValuePair
s 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:
getSectionPanelModel
in 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
-
-