SimpleServlets v5.5.0

com.simpleservlets.htmlobjects
Class HTMLForm.Select

java.lang.Object
  extended by com.simpleservlets.htmlobjects.GenericHTMLElement
      extended by com.simpleservlets.htmlobjects.HTMLForm.Select
All Implemented Interfaces:
HTMLElement
Enclosing class:
HTMLForm

public static class HTMLForm.Select
extends GenericHTMLElement

Input for forms (drop-down, scroll list), <select> tag.


Field Summary
static int NO_SIZE
           
 
Fields inherited from interface com.simpleservlets.htmlobjects.HTMLElement
ZERO_LEN_ARRAY
 
Constructor Summary
HTMLForm.Select()
           
HTMLForm.Select(String name)
           
HTMLForm.Select(String name, int visibleSize, boolean allowMultipleSelections)
           
 
Method Summary
 void clearAllSelections()
           
static HTMLForm.Select create(String name, int visibleSize, boolean allowMultipleSelections, String[] value, String selectedValue, String firstLine)
           
static HTMLForm.Select create(String name, String[] value)
           
static HTMLForm.Select create(String name, String[] value, String selectedValue, String firstLine)
           
 void setAllowMultiple(boolean multipleSelectionsOk)
           
 void setName(String name)
           
 void setSize(int size)
           
 
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
 

Field Detail

NO_SIZE

public static final int NO_SIZE
See Also:
Constant Field Values
Constructor Detail

HTMLForm.Select

public HTMLForm.Select(String name,
                       int visibleSize,
                       boolean allowMultipleSelections)

HTMLForm.Select

public HTMLForm.Select(String name)

HTMLForm.Select

public HTMLForm.Select()
Method Detail

setName

public void setName(String name)

setSize

public void setSize(int size)

setAllowMultiple

public void setAllowMultiple(boolean multipleSelectionsOk)

clearAllSelections

public void clearAllSelections()

create

public static HTMLForm.Select create(String name,
                                     int visibleSize,
                                     boolean allowMultipleSelections,
                                     String[] value,
                                     String selectedValue,
                                     String firstLine)

create

public static HTMLForm.Select create(String name,
                                     String[] value,
                                     String selectedValue,
                                     String firstLine)

create

public static HTMLForm.Select create(String name,
                                     String[] value)

SimpleServlets v5.5.0

Copyright © 2001-2007 Programix Incorporated. All rights reserved. SimpleServlets is free and is OSI Certified Open Source Software under the BSD license.