
public class BreadcrumbsTag extends WikiTagBase
maxpages, the number of pages to store, 10 by default
separator, the separator string to use between pages, " | " by default
This class is implemented by storing a breadcrumb trail, which is a fixed size queue, into a session variable "breadCrumbTrail". This queue is displayed as a series of links separated by a separator character.
| Modifier and Type | Class and Description |
|---|---|
static class |
BreadcrumbsTag.FixedQueue
Extends the LinkedList class to provide a fixed-size queue implementation
|
| Modifier and Type | Field and Description |
|---|---|
static String |
BREADCRUMBTRAIL_KEY
The name of the session attribute representing the breadcrumbtrail
|
ATTR_CONTEXT, m_wikiContext| Constructor and Description |
|---|
BreadcrumbsTag() |
| Modifier and Type | Method and Description |
|---|---|
int |
doWikiStartTag()
This method is allowed to do pretty much whatever he wants.
|
int |
getMaxpages()
Returns the maxpages.
|
String |
getSeparator()
Get the separator string.
|
void |
initTag()
This method is called when the tag is encountered within a new request,
but before the setXXX() methods are called.
|
void |
setMaxpages(int maxpages)
Sets how many pages to show.
|
void |
setSeparator(String separator)
Set the separator string.
|
doCatch, doEndTag, doFinally, doStartTag, setId, setPageContextpublic static final String BREADCRUMBTRAIL_KEY
public BreadcrumbsTag()
public void initTag()
initTag in class WikiTagBasepublic int getMaxpages()
public void setMaxpages(int maxpages)
maxpages - The amount.public String getSeparator()
public void setSeparator(String separator)
separator - A string which separates the page names.public int doWikiStartTag() throws IOException
doWikiStartTag in class WikiTagBaseIOExceptionCopyright © 2001-2018 The Apache Software Foundation. All rights reserved.