com.simpleservlets.htmlobjects
Class HTMLForm.Input
java.lang.Object
com.simpleservlets.htmlobjects.GenericHTMLElement
com.simpleservlets.htmlobjects.HTMLForm.Input
- All Implemented Interfaces:
- HTMLElement, NoChildrenAllowed
- Enclosing class:
- HTMLForm
public static class HTMLForm.Input
- extends GenericHTMLElement
- implements NoChildrenAllowed
Input for forms, <input> tag.
|
Method Summary |
static HTMLForm.Input |
createCheckBox(String name,
String value,
boolean initiallyChecked)
|
static HTMLForm.Input |
createHidden(String name,
String value)
|
static HTMLForm.Input |
createImage(String name,
String value,
String imageSrc)
|
static HTMLForm.Input |
createPassword(String name,
String value,
int size)
|
static HTMLForm.Input[] |
createRadioButtons(String name,
String[] value,
String selectedValue)
|
static HTMLForm.Input |
createSubmit(String name,
String value)
|
static HTMLForm.Input |
createText(String name,
String value,
int size)
|
void |
setAlt(String altText)
|
void |
setChecked(boolean checked)
|
void |
setMaxLength(int maxLength)
|
void |
setName(String name)
|
void |
setSize(int size)
|
void |
setSize(String size)
|
void |
setSource(String srcURI)
|
void |
setValue(int value)
|
void |
setValue(String value)
|
| 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.Input
public HTMLForm.Input(String type,
String name,
String value)
HTMLForm.Input
public HTMLForm.Input(String type,
String name)
HTMLForm.Input
public HTMLForm.Input(String type)
setName
public void setName(String name)
setValue
public void setValue(String value)
setValue
public void setValue(int value)
setSize
public void setSize(String size)
setSize
public void setSize(int size)
setMaxLength
public void setMaxLength(int maxLength)
setChecked
public void setChecked(boolean checked)
setSource
public void setSource(String srcURI)
setAlt
public void setAlt(String altText)
createSubmit
public static HTMLForm.Input createSubmit(String name,
String value)
createImage
public static HTMLForm.Input createImage(String name,
String value,
String imageSrc)
createHidden
public static HTMLForm.Input createHidden(String name,
String value)
createText
public static HTMLForm.Input createText(String name,
String value,
int size)
createPassword
public static HTMLForm.Input createPassword(String name,
String value,
int size)
createCheckBox
public static HTMLForm.Input createCheckBox(String name,
String value,
boolean initiallyChecked)
createRadioButtons
public static HTMLForm.Input[] createRadioButtons(String name,
String[] value,
String selectedValue)
Copyright © 2001-2007
Programix Incorporated.
All rights reserved.
SimpleServlets is free
and is
OSI Certified
Open Source Software under the BSD
license.