public class HistogramVocabNode
extends java.lang.Object
Constructor and Description |
---|
HistogramVocabNode(VocabNode vocabNode,
HistogramForm histogramForm,
boolean isCollection)
Constructor for the HistogramVocabNode object
|
Modifier and Type | Method and Description |
---|---|
static void |
clearCache()
Clear the cache that holds the totals for histogram nodes
|
java.lang.String |
getHasSubtotalsGreaterThanZero()
Gets the hasSubtotalsGreaterThanZero attribute of the HistogramVocabNode
object
|
java.lang.String |
getHistogramQuery()
Gets the histogramQuery attribute of the HistogramVocabNode object
|
java.lang.String |
getIsLastInSublist()
Gets the isLastInSublist attribute of the HistogramVocabNode object
|
java.lang.String |
getLibraryTotal()
Gets the libraryTotal attribute of the HistogramVocabNode object
|
VocabNode |
getVocabNode()
Gets the vocabNode attribute of the HistogramVocabNode object
|
java.lang.String |
getVocabTotalBarPercent()
Gets the vocabTotalBar attribute of the HistogramVocabNode object
|
boolean |
hasSubtotalsGreaterThanZero()
If this node is a sub-header, does it contain sub-nodes that have a total
number of resources > 0?
|
boolean |
isLastInSublist()
Gets the lastInSublist attribute of the HistogramVocabNode object
|
void |
setCollection(java.lang.String collection)
Sets the collection attribute of the HistogramVocabNode object
|
void |
setHasSubtotalsGreaterThanZero(boolean hasSubtotalsGreaterThanZero)
Sets the hasSubtotalsGreaterThanZero attribute of the HistogramVocabNode
object
|
void |
setIsLastInSublist(boolean isLastInSublist)
Sets the isLastInSublist attribute of the HistogramVocabNode object
|
void |
setLargestTotalInThisGroup(java.lang.String total)
Sets the largestTotalInThisGroup attribute of the HistogramVocabNode object
|
void |
setLibraryTotal(int total)
Sets the libraryTotal attribute of the HistogramVocabNode object
|
int |
setLibraryTotal(SimpleLuceneIndex index,
RepositoryManager rm,
java.lang.String addQuery)
Set the total for this vocab value, with added query (for things like
collection)
|
void |
setPercentAdjust(int perc)
Percentages are adjusted to account for extra UI space (in the browse case,
the total number displayed next to the percentage image bar).
|
public HistogramVocabNode(VocabNode vocabNode, HistogramForm histogramForm, boolean isCollection)
vocabNode
- histogramForm
- Description of the ParameterisCollection
- Description of the Parameterpublic void setCollection(java.lang.String collection)
collection
- The new collection valuepublic java.lang.String getHistogramQuery()
public void setLargestTotalInThisGroup(java.lang.String total)
total
- The new largestTotalInThisGroup valuepublic void setPercentAdjust(int perc)
perc
- Percentage multiplier (1-100)public java.lang.String getVocabTotalBarPercent()
public int setLibraryTotal(SimpleLuceneIndex index, RepositoryManager rm, java.lang.String addQuery)
index
- Lucene indexrm
- repository manageraddQuery
- added to query that gets the total for this nodepublic static void clearCache()
public void setLibraryTotal(int total)
total
- The new libraryTotal valuepublic java.lang.String getLibraryTotal()
public boolean hasSubtotalsGreaterThanZero()
public void setHasSubtotalsGreaterThanZero(boolean hasSubtotalsGreaterThanZero)
hasSubtotalsGreaterThanZero
- The new hasSubtotalsGreaterThanZero
valuepublic java.lang.String getHasSubtotalsGreaterThanZero()
public boolean isLastInSublist()
public void setIsLastInSublist(boolean isLastInSublist)
isLastInSublist
- The new isLastInSublist valuepublic java.lang.String getIsLastInSublist()
public VocabNode getVocabNode()