|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.util.actions.AlphabeticalGroupingSupport
This class provides support for grouping a collection of data alphabetically. This is used and useful for displaying alphabetically grouped list of pages and labels.
Note: numerics are grouped together into the group 0-9
Note: the extraction of the name of an object from the object is presently hard coded in this class, and only ContentEntityObjects and Labels are reasonably supported.
#extractFirstCharacter(Object)
Field Summary | |
static String |
NUMERIC
|
Constructor Summary | |
AlphabeticalGroupingSupport(Collection c)
|
Method Summary | |
List |
getContents()
Return all of the content |
List |
getContents(char c)
|
List |
getContents(String s)
Return the content that begins with the specified string. |
boolean |
hasContent(char c)
Return true if there is content that starts with the specified character |
boolean |
hasContent(String s)
Return true if there is content that starts with the specified string. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String NUMERIC
Constructor Detail |
public AlphabeticalGroupingSupport(Collection c)
Method Detail |
public boolean hasContent(char c)
c
-
public boolean hasContent(String s)
s
-
public List getContents(char c)
public List getContents(String s)
s
-
public List getContents()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |