com.redhat.rhn.frontend.taglibs.list
Class AlphaBarHelper

java.lang.Object
  extended by com.redhat.rhn.frontend.taglibs.list.AlphaBarHelper

public class AlphaBarHelper
extends java.lang.Object

AlphaBarHelper


Constructor Summary
AlphaBarHelper()
           
 
Method Summary
 java.lang.String getAlphaValue(java.lang.String listName, ServletRequest req)
          Returns the alpha value..
static AlphaBarHelper getInstance()
          get the singleton instance
 boolean isSelected(java.lang.String listName, ServletRequest req)
          Returns true if the alpha bar item was selected from the request
 java.lang.String makeAlphaKey(java.lang.String listName)
          provides the alpha bar key
 void writeAlphaBar(PageContext pageContext, java.util.Set<java.lang.Character> activeChars, java.lang.String listName)
          Write the alpha bar to the current pageContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlphaBarHelper

public AlphaBarHelper()
Method Detail

makeAlphaKey

public java.lang.String makeAlphaKey(java.lang.String listName)
provides the alpha bar key

Parameters:
listName - the list name
Returns:
the url key for the alpha bar

isSelected

public boolean isSelected(java.lang.String listName,
                          ServletRequest req)
Returns true if the alpha bar item was selected from the request

Parameters:
listName - the name of this list, ncessary for unique identification
req - the servlet request.
Returns:
true if the alpha bar item was selected from the request

getAlphaValue

public java.lang.String getAlphaValue(java.lang.String listName,
                                      ServletRequest req)
Returns the alpha value..

Parameters:
listName - the name of this list, ncessary for unique identification
req - the servlet request.
Returns:
the alpha value

getInstance

public static AlphaBarHelper getInstance()
get the singleton instance

Returns:
the instance

writeAlphaBar

public void writeAlphaBar(PageContext pageContext,
                          java.util.Set<java.lang.Character> activeChars,
                          java.lang.String listName)
                   throws JspException
Write the alpha bar to the current pageContext

Parameters:
pageContext - the pageContext to write to
activeChars - a Set of characters that are active in the alpha bar
listName - the name of the list to write the alpha bar for.
Throws:
JspException - jspException from the super class