|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.arsdigita.acs.ContextBarWs
Class that displays a Yahoo-style context navbar for a logged-in user, with "your workspace" at the root.
Elements are added to the context bar in order; each element consists of a path to be used as a relative URL link, and the title to be displayed as a link to that path. The last element added to the context bar is the title of the current page, and a path should not be provided.
| Constructor Summary | |
ContextBarWs()
Creates a new context bar. |
|
ContextBarWs(PageContext pageContext)
For group-scoped modules, this constructor can create a context bar that contains the links set up by UserGroupFilter |
|
ContextBarWs(String[][] pairs)
Creates a new context bar with "Your Workspace" as the root. |
|
ContextBarWs(String path,
String title)
Creates a new context bar, with the given link at the root instead of the "Your Workspace" link. |
|
| Method Summary | |
void |
add(String title)
Adds a new element to the context bar with no path, for final element. |
void |
add(String path,
String title)
Adds a new element to the context bar. |
String |
getHTML()
Returns HTML represenation of this context bar. |
String |
toString()
Returns HTML represenation of this context bar. |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public ContextBarWs()
public ContextBarWs(String path,
String title)
public ContextBarWs(String[][] pairs)
pairs - an array of pairs, each pair is an array of length two with path and title. If the last pair has
a null or emptry string title, it is used as the final element of the Context Bar. For example:
new ContextBarWs(new String[][] { {return_url, item},
{"Add a comment ][",null} } )public ContextBarWs(PageContext pageContext)
| Method Detail |
public void add(String path,
String title)
path - Relative URL to appear in hreftitle - Title for this pagepublic void add(String title)
title - Title for this pagepublic String getHTML()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||