public class AlphaBarHelper
extends java.lang.Object
| Constructor and Description |
|---|
AlphaBarHelper() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAlphaValue(java.lang.String listName,
javax.servlet.ServletRequest req)
Returns the alpha value..
|
static AlphaBarHelper |
getInstance()
get the singleton instance
|
boolean |
isSelected(java.lang.String listName,
javax.servlet.ServletRequest req)
Returns true if the alpha bar item was selected from the request
|
static java.lang.String |
makeAlphaKey(java.lang.String listName)
provides the alpha bar key
|
void |
writeAlphaBar(javax.servlet.jsp.PageContext pageContext,
java.util.Set<java.lang.Character> activeChars,
java.lang.String listName)
Write the alpha bar to the current pageContext
|
public static java.lang.String makeAlphaKey(java.lang.String listName)
listName - the list namepublic boolean isSelected(java.lang.String listName,
javax.servlet.ServletRequest req)
listName - the name of this list, ncessary for unique identificationreq - the servlet request.public java.lang.String getAlphaValue(java.lang.String listName,
javax.servlet.ServletRequest req)
listName - the name of this list, ncessary for unique identificationreq - the servlet request.public static AlphaBarHelper getInstance()
public void writeAlphaBar(javax.servlet.jsp.PageContext pageContext,
java.util.Set<java.lang.Character> activeChars,
java.lang.String listName)
throws javax.servlet.jsp.JspException
pageContext - the pageContext to write toactiveChars - a Set of characters that are active in the alpha barlistName - the name of the list to write the alpha bar for.javax.servlet.jsp.JspException - jspException from the super class