public class InfoBoxRenderer extends AbstractNavigationAreaSectionRenderer implements SimpleRenderer
| Constructor and Description |
|---|
InfoBoxRenderer() |
| Modifier and Type | Method and Description |
|---|---|
protected Component |
createHeaderInfo(List<ValuePair<String,Integer>> tokens)
Returns a component for an additional header info string, seperated by '/' or null, if tokens is empty.
|
protected Component |
createHeaderTokenComponent(ValuePair<String,Integer> token) |
CockpitCommentService |
getCockpitCommentService() |
CommunicationBrowserModel |
getCommunicationBrowserModel() |
protected String |
getLanguage() |
SectionPanelModel |
getSectionPanelModel() |
protected String |
getUserName() |
List<String> |
getWorkflowAttClassNames() |
WorkflowService |
getWorkflowService()
Deprecated.
|
void |
render(Component parent) |
void |
render(SectionPanel panel,
Component parent,
Component captionComponent,
Section section) |
protected void |
renderAdditionalContent(Component parent,
List<ValuePair<String,Integer>> tokens)
Could be overidden in a subclass to add additional content to the infobox.
|
void |
setWorkflowAttClassNames(List<String> workflowAttClassNames) |
createBrowserItemTooltip, createList, getNavigationArea, setNavigationAreapublic void render(SectionPanel panel, Component parent, Component captionComponent, Section section)
render in interface SectionRendererrender in class AbstractNavigationAreaSectionRendererpublic void render(Component parent)
render in interface SimpleRendererprotected void renderAdditionalContent(Component parent,
List<ValuePair<String,Integer>> tokens)
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.protected Component createHeaderInfo(List<ValuePair<String,Integer>> tokens)
tokens - a valuepair representing a label and a number, like e.g. 'C' for comments and the number of commentsprotected Component createHeaderTokenComponent(ValuePair<String,Integer> token)
public SectionPanelModel getSectionPanelModel()
getSectionPanelModel in class AbstractNavigationAreaSectionRenderer@Deprecated public WorkflowService getWorkflowService()
public List<String> getWorkflowAttClassNames()
public void setWorkflowAttClassNames(List<String> workflowAttClassNames)
workflowAttClassNames - the workflowAttClassNames to setprotected String getUserName()
protected String getLanguage()
public CockpitCommentService getCockpitCommentService()
public CommunicationBrowserModel getCommunicationBrowserModel()
Copyright © 2017 SAP SE. All Rights Reserved.