|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectTagSupport
net.sourceforge.pebble.web.tagext.SelectTag
public class SelectTag
Given a Collection or array, this tag produces a HTML select (dropdown) list based upon the items contained within.
| Constructor Summary | |
|---|---|
SelectTag()
|
|
| Method Summary | |
|---|---|
int |
doStartTag()
Called when the starting tag is encountered. |
void |
setItems(java.lang.Object items)
Sets the items over which this tag should iterate. |
void |
setLabel(java.lang.String label)
Sets the name of the property to display. |
void |
setMultiple(boolean multiple)
Sets the multiple attribute on the underlying select control. |
void |
setName(java.lang.String name)
Sets the name for the generated select control. |
void |
setSelected(java.lang.Object selected)
Sets the selected value. |
void |
setSize(int size)
Sets the size of the generated select control. |
void |
setValue(java.lang.String value)
Sets the name of the property to use as the hidden value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SelectTag()
| Method Detail |
|---|
public int doStartTag()
throws JspException
JspExceptionpublic void setItems(java.lang.Object items)
items - a Collection or arraypublic void setName(java.lang.String name)
name - the name as a Stringpublic void setSize(int size)
size - the sizepublic void setMultiple(boolean multiple)
multiple - a booleanpublic void setLabel(java.lang.String label)
label - the name of the label propertypublic void setValue(java.lang.String value)
value - the name of the value propertypublic void setSelected(java.lang.Object selected)
selected - the selected value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||