|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dlese.dpc.vocab.HistogramVocabNode
public class HistogramVocabNode
Wrapper for a plain VocabNode that ties to a Lucene index for generating vocab-based totals
Constructor Summary | |
---|---|
HistogramVocabNode(VocabNode vocabNode,
HistogramForm histogramForm,
boolean isCollection)
Constructor for the HistogramVocabNode object |
Method Summary | |
---|---|
static void |
clearCache()
Clear the cache that holds the totals for histogram nodes |
String |
getHasSubtotalsGreaterThanZero()
Gets the hasSubtotalsGreaterThanZero attribute of the HistogramVocabNode object |
String |
getHistogramQuery()
Gets the histogramQuery attribute of the HistogramVocabNode object |
String |
getIsLastInSublist()
Gets the isLastInSublist attribute of the HistogramVocabNode object |
String |
getLibraryTotal()
Gets the libraryTotal attribute of the HistogramVocabNode object |
VocabNode |
getVocabNode()
Gets the vocabNode attribute of the HistogramVocabNode object |
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(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(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,
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). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HistogramVocabNode(VocabNode vocabNode, HistogramForm histogramForm, boolean isCollection)
vocabNode
- histogramForm
- Description of the ParameterisCollection
- Description of the ParameterMethod Detail |
---|
public void setCollection(String collection)
collection
- The new collection valuepublic String getHistogramQuery()
public void setLargestTotalInThisGroup(String total)
total
- The new largestTotalInThisGroup valuepublic void setPercentAdjust(int perc)
perc
- Percentage multiplier (1-100)public String getVocabTotalBarPercent()
public int setLibraryTotal(SimpleLuceneIndex index, RepositoryManager rm, String addQuery)
index
- Lucene indexrm
- repository manageraddQuery
- added to query that gets the total for this node
public static void clearCache()
public void setLibraryTotal(int total)
total
- The new libraryTotal valuepublic String getLibraryTotal()
public boolean hasSubtotalsGreaterThanZero()
public void setHasSubtotalsGreaterThanZero(boolean hasSubtotalsGreaterThanZero)
hasSubtotalsGreaterThanZero
- The new hasSubtotalsGreaterThanZero
valuepublic String getHasSubtotalsGreaterThanZero()
public boolean isLastInSublist()
public void setIsLastInSublist(boolean isLastInSublist)
isLastInSublist
- The new isLastInSublist valuepublic String getIsLastInSublist()
public VocabNode getVocabNode()
|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |