com.simpleservlets.htmlobjects
Class HTMLForm.Option
java.lang.Object
com.simpleservlets.htmlobjects.GenericHTMLElement
com.simpleservlets.htmlobjects.HTMLForm.Option
- All Implemented Interfaces:
- HTMLElement
- Enclosing class:
- HTMLForm
public static class HTMLForm.Option
- extends GenericHTMLElement
Options for HTMLForm.Select, <option> tag.
| Methods inherited from class com.simpleservlets.htmlobjects.GenericHTMLElement |
add, add, addSibling, addSibling, getAttributes, getChildren, getName, getParent, hasAttributes, hasChildren, isSafeToWrapWithWhitespace, removeAllAttributes, removeAllChildren, removeAttribute, removeChild, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeGroup, setParent, setSafeToWrapWithWhitespace, setStyle |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HTMLForm.Option
public HTMLForm.Option(String text,
String value,
boolean selected)
HTMLForm.Option
public HTMLForm.Option(String text,
boolean selected)
HTMLForm.Option
public HTMLForm.Option(String text)
setValue
public void setValue(String value)
setSelected
public void setSelected(boolean selectOn)
createSet
public static HTMLForm.Option[] createSet(String[] value,
String selectedValue,
String firstLine)
- Creates a set of option elements.
- Parameters:
value - list of values to make available.selectedValue - value to initially select, null for first.firstLine - null to omit, "" for blank, or other text.
- Returns:
- options created. If firstLine is null, length is
value.length, if firstLine is not null, length is value.length + 1.
Copyright © 2001-2007
Programix Incorporated.
All rights reserved.
SimpleServlets is free
and is
OSI Certified
Open Source Software under the BSD
license.