|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openqa.jetty.html.Element
org.openqa.jetty.html.Composite
org.openqa.jetty.html.Block
org.openqa.jetty.html.Select
public class Select
HTML select Block.
Block| Field Summary |
|---|
| Fields inherited from class org.openqa.jetty.html.Block |
|---|
Bold, Center, Div, Italic, Left, Listing, Plain, Pre, Quote, Right, Span, Xmp |
| Fields inherited from class org.openqa.jetty.html.Composite |
|---|
elements, nest |
| Fields inherited from class org.openqa.jetty.html.Element |
|---|
ALIGN, attributeMap, BGCOLOR, BOTTOM, CENTER, CLASS, COLOR, HEIGHT, ID, LEFT, MIDDLE, noAttributes, RIGHT, SIZE, STYLE, TOP, VALIGN, WIDTH |
| Constructor Summary | |
|---|---|
Select(java.lang.String name,
boolean multiple)
|
|
Select(java.lang.String name,
boolean multiple,
java.lang.String[] options)
|
|
| Method Summary | |
|---|---|
Select |
add(java.util.Enumeration e)
|
Composite |
add(java.lang.Object o)
Add option and specify if selected. |
Select |
add(java.lang.Object o,
boolean selected)
Add option and specify if selected. |
Select |
add(java.lang.Object o,
boolean selected,
java.lang.String value)
Add an option. |
Select |
add(java.lang.String[] arr,
int selected)
Build a select from the given array of Strings. |
Select |
add(java.lang.String[] arr,
java.lang.String selected)
Build a select from the given array of Strings. |
static int |
bitsetFormResult(java.lang.String result)
Utility function for multi-selectors. |
Select |
setSize(int size)
Set the number of options to display at once |
| Methods inherited from class org.openqa.jetty.html.Block |
|---|
write |
| Methods inherited from class org.openqa.jetty.html.Composite |
|---|
contents, nest, replace, reset, setNest, size, unnest |
| Methods inherited from class org.openqa.jetty.html.Element |
|---|
attribute, attribute, attribute, attributes, attributes, bgColor, bottom, center, color, cssClass, cssID, height, height, height, left, middle, right, setAttributesFrom, size, size, style, top, toString, width, width, width, write, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Select(java.lang.String name,
boolean multiple)
name - Name of the form elementmultiple - Whether multiple selections can be made
public Select(java.lang.String name,
boolean multiple,
java.lang.String[] options)
name - Name of the form elementmultiple - Whether multiple selections can be made| Method Detail |
|---|
public Select setSize(int size)
public Select add(java.util.Enumeration e)
public Composite add(java.lang.Object o)
add in class Compositeo - The Object to add. If it is a String or Element, it is
added directly, otherwise toString() is called.
public Select add(java.lang.Object o,
boolean selected)
public Select add(java.lang.Object o,
boolean selected,
java.lang.String value)
o - The name of the option (displayed in the form)selected - Whether the option is selectedvalue - The value of this option (returned in the form content)
public Select add(java.lang.String[] arr,
int selected)
arr - The array of strings for labelsselected - The index of the selected label, -1 for default
public Select add(java.lang.String[] arr,
java.lang.String selected)
arr - The array of strings for labelsselected - The index of the selected label, -1 for defaultpublic static int bitsetFormResult(java.lang.String result)
This function takes the result returned by a multi-select input and produces an integer bit-set result of the selections made. It assumes the values of the multi-select are all different powers of 2.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||