|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.arsdigita.acs.html.ContextBar
Class that displays a Yahoo-style context navbar for a logged-in user, with "your workspace" at the root; or with the system name at the root for non-logged in users.
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.
Field Summary | |
static int |
ADMIN
Personal "your workspace" context bar for logged-in users and "administration". |
static int |
PERSONAL
Personal context bar; "your workspace" at root |
static int |
PERSONAL_OR_INDEX
Personal "your workspace" context bar for logged-in users; points to root /index page for non-logged in users. |
Constructor Summary | |
ContextBar()
Creates a new personal context bar. |
|
ContextBar(int type,
UserInfo user)
Creates a new context bar of the given type, for a given user. |
Method Summary | |
void |
add(String title)
Adds a new element to the context bar with no path, for final element. |
void |
add(String[][] pairs)
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 |
|
Field Detail |
public static final int PERSONAL
public static final int PERSONAL_OR_INDEX
public static final int ADMIN
Constructor Detail |
public ContextBar(int type, UserInfo user)
public ContextBar()
Method Detail |
public void add(String path, String title)
path
- Relative URL to appear in href
title
- Title for this pagepublic void add(String title)
title
- Title for this pagepublic void add(String[][] pairs)
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 |