|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
org.dspace.app.webui.jsptag.ControlledVocabularyTag
public class ControlledVocabularyTag
A Tag to load and display controlled vocabularies
| Field Summary | |
|---|---|
Map<String,Document> |
controlledVocabularies
|
| Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
|---|
id, pageContext |
| Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
|---|
EVAL_BODY_AGAIN |
| Fields inherited from interface javax.servlet.jsp.tagext.Tag |
|---|
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
| Constructor Summary | |
|---|---|
ControlledVocabularyTag()
|
|
| Method Summary | |
|---|---|
int |
doEndTag()
End processing tag |
int |
doStartTag()
Process tag |
Document |
filterVocabulary(Document vocabulary,
String vocabularyPrunningXSLT,
String filter)
Applies a filter to the provided vocabulary, i.e. |
String |
getFilter()
Gets the filter provided as parameter to the tag |
String |
getVocabulary()
Gets the name of the vocabulary to be displayed |
boolean |
isAllowMultipleSelection()
Returns the value of the multiple selection parameter |
String |
renderVocabularyAsHTML(Document vocabulary,
String controlledVocabulary2HtmlXSLT,
boolean allowMultipleSelection,
String contextPath)
Renders a taxonomy as HTML by applying a stylesheet. |
void |
setAllowMultipleSelection(boolean allowMultipleSelection)
Defines if we want to be able to select multiple terms of the taxonomy |
void |
setFilter(String filter)
Sets the filter |
void |
setVocabulary(String vocabulary)
Sets the name of the vocabulary to be displayed. |
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
|---|
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public Map<String,Document> controlledVocabularies
| Constructor Detail |
|---|
public ControlledVocabularyTag()
| Method Detail |
|---|
public int doStartTag()
throws javax.servlet.jsp.JspException
doStartTag in interface javax.servlet.jsp.tagext.TagdoStartTag in class javax.servlet.jsp.tagext.TagSupportjavax.servlet.jsp.JspExceptionpublic int doEndTag()
doEndTag in interface javax.servlet.jsp.tagext.TagdoEndTag in class javax.servlet.jsp.tagext.TagSupport
public String renderVocabularyAsHTML(Document vocabulary,
String controlledVocabulary2HtmlXSLT,
boolean allowMultipleSelection,
String contextPath)
vocabulary - The XML document representing a taxonomycontrolledVocabulary2HtmlXSLT - The filename of the stylesheet that converts the taxonomy to
HTMLallowMultipleSelection - include checkboxes next to the taxonomy termscontextPath - The context path
public Document filterVocabulary(Document vocabulary,
String vocabularyPrunningXSLT,
String filter)
vocabulary - The vocabulary to be trimmedvocabularyPrunningXSLT - The filename of the stylesheet that trims the vocabularyfilter - The filter to be applied
public String getFilter()
public void setFilter(String filter)
filter - the filterpublic boolean isAllowMultipleSelection()
public void setAllowMultipleSelection(boolean allowMultipleSelection)
allowMultipleSelection - true if we want to be able to select more than on termpublic String getVocabulary()
public void setVocabulary(String vocabulary)
vocabulary - the name of the vocabulary to be selected
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||