public class InputOptionsMapTag extends InputOptionsCollectionTag
Extracts the Set of Map.Entry from the
specified Map and uses it as the Collection
for the superclass InputOptionsCollectionTag.
The value and label parameters will be set to "key" and "value" respectively if they are null.
InputOptionsCollectionTag.EntrypageContext, parentTag| Constructor and Description |
|---|
InputOptionsMapTag() |
| Modifier and Type | Method and Description |
|---|---|
int |
doEndTag()
Calls super.doEndTag() and cleans up instance variables so this instance
may be reused.
|
java.util.Map<? extends java.lang.Object,? extends java.lang.Object> |
getMap()
Returns the
Map that was passed in via setMap(). |
void |
setMap(java.util.Map<? extends java.lang.Object,? extends java.lang.Object> map)
This function simply passes the result of Map.entrySet()
as the collection to be used by the superclass and sets the value and label
variables if they have not already been set.
|
addEntry, addEntry, doStartTag, getCollection, getGroup, getLabel, getSort, getValue, setCollection, setGroup, setLabel, setSort, setValueevaluateExpression, get, getAccesskey, getAttributes, getBodyContent, getBodyContentAsString, getCssClass, getDir, getId, getLang, getOnblur, getOnchange, getOnclick, getOndblclick, getOnfocus, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnselect, getStyle, getTabindex, getTitle, release, set, setAccesskey, setBodyContent, setClass, setCssClass, setDir, setDynamicAttribute, setId, setLang, setOnblur, setOnchange, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnselect, setStyle, setTabindex, setTitle, toString, writeAttributes, writeCloseTag, writeOpenTag, writeSingletonTaggetActionBeanType, getActionBeanUrl, getPageContext, getParent, getParentTag, getTagStack, popPageContextAttributes, pushPageContextAttributes, setPageContext, setParentpublic java.util.Map<? extends java.lang.Object,? extends java.lang.Object> getMap()
Returns the Map that was passed in via setMap().
Map passed in via setMap().public void setMap(java.util.Map<? extends java.lang.Object,? extends java.lang.Object> map)
This function simply passes the result of Map.entrySet() as the collection to be used by the superclass and sets the value and label variables if they have not already been set.
map - a Mappublic int doEndTag()
throws javax.servlet.jsp.JspException
doEndTag in interface javax.servlet.jsp.tagext.TagdoEndTag in class InputOptionsCollectionTagjavax.servlet.jsp.JspException? Copyright 2005-2006, Stripes Development Team.