org.alphadisplaytag.alphalist
Class AlphabeticSubList

java.lang.Object
  extended byorg.alphadisplaytag.alphalist.AlphabeticSubList

public class AlphabeticSubList
extends java.lang.Object

Helper utility class that slice and dice a List alphabetically into 37 sublist. Helper class for AlphabeticList class. An object representing the alphabetic list.

Version:
$Revision: 1.0 $ ($Author: pchauvet $)
Author:
Philip Jahmani Chauvet

Constructor Summary
AlphabeticSubList(char listBeginingCharacter, boolean isSelected)
          Creates a new list page with the specified list begining character.
 
Method Summary
 char getBeginingCharacter()
          Returns the page list begining character.
 java.util.List getList()
          Get this alphabetic list.
 int getListSize()
          Get the list size of the list for this character
 boolean getSelected()
          Is the page selected?
 boolean isEmpty()
          Is the list empty.
 void setList(java.util.List tlist)
          Set the the list, List, with alphabetical entries.
 void setListSize(int lsize)
          Set the list size of the list for this character
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AlphabeticSubList

public AlphabeticSubList(char listBeginingCharacter,
                         boolean isSelected)
Creates a new list page with the specified list begining character.

Parameters:
listBeginingCharacter - The alphabetic character the list begins with.
isSelected - Is the page selected.
Method Detail

getBeginingCharacter

public char getBeginingCharacter()
Returns the page list begining character.

Returns:
The page listBeginingCharacter

getSelected

public boolean getSelected()
Is the page selected?

Returns:
True if the page is selected, else false.

getListSize

public int getListSize()
Get the list size of the list for this character

Returns:
int The number of elements in the list

setListSize

public void setListSize(int lsize)
Set the list size of the list for this character

Parameters:
lsize - The listSize of the list for this character

getList

public java.util.List getList()
Get this alphabetic list.

Returns:
List An alphabetic list for entries starting with an A, B, C, or Z

setList

public void setList(java.util.List tlist)
Set the the list, List, with alphabetical entries.

Parameters:
tlist - The list for entries starting with an A, B, C, or Z

isEmpty

public boolean isEmpty()
Is the list empty.

Returns:
boolean True if the list empty, otherwise false.

toString

public java.lang.String toString()
See Also:
Object.toString()


Alphabetical Navigation Bar Java Display Tag Home Page. 

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/