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, parentTagEVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE| 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.
|
Map<? extends Object,? extends Object> |
getMap()
Returns the
Map that was passed in via setMap(). |
void |
setMap(Map<? extends Object,? extends 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, isXmlTags, 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 Map<? extends Object,? extends Object> getMap()
Returns the Map that was passed in via setMap().
Map passed in via setMap().public void setMap(Map<? extends Object,? extends 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 JspException
doEndTag in interface TagdoEndTag in class InputOptionsCollectionTagJspException© Copyright 2005-2006, Stripes Development Team.