public class HtmlForm extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
HtmlForm.Element
Class to encapsulate the data found in HTML form elements.
|
static class |
HtmlForm.ElementAttribute
Class representing an HTML form element attribute.
|
| Constructor and Description |
|---|
HtmlForm(String id,
int method,
String action,
String encType)
Constructor for which everything is specified but the name.
|
HtmlForm(String id,
String name,
int method,
String action,
String encType)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addElement(HtmlForm.Element element) |
String |
getAction() |
HtmlForm.Element |
getElement(int i) |
int |
getElementCount() |
String |
getEncType() |
String |
getID() |
int |
getMethod() |
String |
getName() |
void |
setAction(String action) |
void |
setEncType(String encType) |
void |
setID(String mid) |
void |
setMethod(int method) |
void |
setName(String name) |
public static final int GET
public static final int POST
public HtmlForm(String id, String name, int method, String action, String encType)
id - element id, which is usually the same as the name when both are
supplied.name - the name, which is usually the same as id, when both are supplied.method - the method, POST or GET.action - the form action.encType - form encoding.public void addElement(HtmlForm.Element element)
public int getElementCount()
public HtmlForm.Element getElement(int i)
public String getID()
public String getName()
public int getMethod()
public String getAction()
public String getEncType()
public void setID(String mid)
public void setName(String name)
public void setMethod(int method)
public void setAction(String action)
public void setEncType(String encType)
Copyright © 2017 Java Wikipedia API (Bliki engine). All rights reserved.