Class AlphabeticalLabelGroupingSupport
- java.lang.Object
-
- com.atlassian.confluence.util.actions.AlphabeticalLabelGroupingSupport
-
public class AlphabeticalLabelGroupingSupport extends Object
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.
- See Also:
extractFirstCharacter(Object)
-
-
Constructor Summary
Constructors Constructor Description AlphabeticalLabelGroupingSupport(Collection c)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List
getContents()
Return all of the contentList
getContents(String s)
Return the content that begins with the specified string.Collection
getKeys()
boolean
hasContent(String s)
Return true if there is content that starts with the specified string.
-
-
-
Field Detail
-
NUMERIC
public static final String NUMERIC
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AlphabeticalLabelGroupingSupport
public AlphabeticalLabelGroupingSupport(Collection c)
-
-
Method Detail
-
hasContent
public boolean hasContent(String s)
Return true if there is content that starts with the specified string.- Parameters:
s
-
-
getContents
public List getContents(String s)
Return the content that begins with the specified string.- Parameters:
s
-
-
getContents
public List getContents()
Return all of the content
-
getKeys
public Collection getKeys()
-
-