|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.alphadisplaytag.alphalist.AlphabeticList
Utility class that slice and dice a List alphabetically into 37 sublist.
o List are broken up by the letter of the alphabet and place in a * map object
keyed by the alphabetic letters to be navigated.
For example to get the 'A' list use the A character as a key.
36 sublist to capture the alphabet:[A][B] [C] ...... [X] [Y] [Z] [Full].
There is the ability to revert to the [Full] list, instead of the broken list.
o The 37th sublist captures everything else and is keyd with ' ', like numbers, null and blanks.
These are the beginning string that do not start with A-Z, such as number, null and blanks.
o There are CSS styled properties which are read first from the AlphaTableTag.properties file.
If the properties are not found from this file, they are read from the define constants of the
AlphaTableProperties.java file.
| Constructor Summary | |
AlphabeticList(java.util.List list)
Creates an instance of this object that will help you chop up a list into 36 alphabetic list. |
|
AlphabeticList(java.util.List list,
java.lang.String column)
Creates an instance of this object that will help you chop up a list into 36 alphabetic list with a defined column to create and sort the analphabetical list navigation bar. |
|
| Method Summary | |
java.lang.String |
getAlphabeticFormattedBanner(javax.servlet.http.HttpServletRequest request,
javax.servlet.jsp.PageContext pageContext)
Get the alphabetic list display banner. |
java.util.List |
getAlphabeticList(char alphakey)
Get an alphabetic list. |
static char[] |
getAlphaCharList()
|
java.lang.String |
getAlphaNavigateClass()
Getter for the PROPERTY_ALPHANAVIGATE_DEFAULT_CLASS property. |
java.lang.String |
getAlphaNavigateFormat()
Getter for the PROPERTY_ALPHANAVIGATE_FORMAT property. |
java.lang.String |
getAlphaNavigateHrefFullSelected()
Getter for the PROPERTY_ALPHANAVIGATE_HREF_FULLSELECTED property. |
java.lang.String |
getAlphaNavigateHrefNotFullSelected()
Getter for the PROPERTY_ALPHANAVIGATE_HREF_FULLNOTSELECTED property. |
java.lang.String |
getAlphaNavigateHrefNotSelected()
Getter for the PROPERTY_ALPHANAVIGATE_HREF_NOTSELECTED property. |
java.lang.String |
getAlphaNavigateHrefSelected()
Getter for the PROPERTY_ALPHANAVIGATE_HREF_SELECTED property. |
java.lang.String |
getAlphaNavigateStyle()
Getter for the PROPERTY_ALPHANAVIGATE_DEFAULT_STYLE property. |
protected AlphaTableProperties |
getProperties()
Returns the properties, configurations for the alphabetical navication bar. |
void |
setAlphaCharList(char[] charlist)
Set the array of characters which starts the lists. |
void |
setNavivationtoFulllist(javax.servlet.http.HttpServletRequest request,
javax.servlet.jsp.PageContext pageContext)
Get the alphabetic list for all the entries - "full" |
protected java.lang.String |
setRequestURI(javax.servlet.http.HttpServletRequest request,
javax.servlet.jsp.PageContext pageContext)
Set the URI for the request. |
void |
setRequestURI(java.lang.String value)
Setter for the "requestURI" attribute - handles Struts and Tiles actions which provide a difficult technique to get the base URI when using Struts and Tiles. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AlphabeticList(java.util.List list)
throws java.lang.Exception
list - Full list to slice and dice.
public AlphabeticList(java.util.List list,
java.lang.String column)
throws java.lang.Exception
list - Full list to slice and dice.column - The column name to be used as key to create and sort the list by.| Method Detail |
public java.util.List getAlphabeticList(char alphakey)
alphakey - The 1st char defining the list to select.
public void setNavivationtoFulllist(javax.servlet.http.HttpServletRequest request,
javax.servlet.jsp.PageContext pageContext)
request - The current HTTP request.pageContext - The current page context.
public java.lang.String getAlphabeticFormattedBanner(javax.servlet.http.HttpServletRequest request,
javax.servlet.jsp.PageContext pageContext)
request - Need the HTTP request for the URI in order to create
the navigation banner.pageContext - The current page context. Needed for creating the banner.
public java.lang.String getAlphaNavigateHrefSelected()
PROPERTY_ALPHANAVIGATE_HREF_SELECTED property.
public java.lang.String getAlphaNavigateHrefNotSelected()
PROPERTY_ALPHANAVIGATE_HREF_NOTSELECTED property.
public java.lang.String getAlphaNavigateHrefFullSelected()
PROPERTY_ALPHANAVIGATE_HREF_FULLSELECTED property.
public java.lang.String getAlphaNavigateHrefNotFullSelected()
PROPERTY_ALPHANAVIGATE_HREF_FULLNOTSELECTED property.
public java.lang.String getAlphaNavigateClass()
PROPERTY_ALPHANAVIGATE_DEFAULT_CLASS property.
public java.lang.String getAlphaNavigateStyle()
PROPERTY_ALPHANAVIGATE_DEFAULT_STYLE property.
public java.lang.String getAlphaNavigateFormat()
PROPERTY_ALPHANAVIGATE_FORMAT property.
protected AlphaTableProperties getProperties()
public void setRequestURI(java.lang.String value)
value - base URI for creating links. Example: anyaction.do.
protected java.lang.String setRequestURI(javax.servlet.http.HttpServletRequest request,
javax.servlet.jsp.PageContext pageContext)
request - The current HTTP request.pageContext - The current page context.
String A new response URI.public void setAlphaCharList(char[] charlist)
charlist - The array of characters which will make up the alphabetical list.public static char[] getAlphaCharList()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
My Home Page. Contact me at: chauvetp@hotmail.com.
I am alway looking for Java/J2EE work and would appreciate the business.
Some of my design is inspired by the original display tag <display:*> code.
Please go to http://displaytag.sourceforge.net/ for details
on the <display:*> tag.
Copyright © 2004 Aiki Innovations Inc. Permission is granted to reuse and distribute for commercial or personal use if no extensive monetary gain is received. Java and the Java Standard Tag Library are programming languages owed by Sun Microsystems, Inc: http://java.sun.com/products/jsp/jstl/