org.encog.bot.browse.range
Class Input
java.lang.Object
org.encog.bot.browse.range.DocumentRange
org.encog.bot.browse.range.FormElement
org.encog.bot.browse.range.Input
public class Input
- extends FormElement
A form element that represents for input for text. These are of the form
name=value.
- Author:
- jheaton
|
Constructor Summary |
Input(WebPage source)
Construct this Input element. |
|
Method Summary |
java.lang.String |
getType()
|
boolean |
isAutoSend()
|
void |
setType(java.lang.String type)
Set the type of this input element. |
java.lang.String |
toString()
|
| Methods inherited from class org.encog.bot.browse.range.DocumentRange |
addElement, getBegin, getClassAttribute, getElements, getEnd, getIdAttribute, getParent, getSource, getTextOnly, setBegin, setClassAttribute, setEnd, setIdAttribute, setParent, setSource |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Input
public Input(WebPage source)
- Construct this Input element.
- Parameters:
source - The source for this input element.
getType
public java.lang.String getType()
- Returns:
- The type of this input.
isAutoSend
public boolean isAutoSend()
- Specified by:
isAutoSend in class FormElement
- Returns:
- True if this is autosend, which means that the type is NOT
submit. This prevents a form that has multiple submit buttons
from sending ALL of them in a single post.
setType
public void setType(java.lang.String type)
- Set the type of this input element.
- Parameters:
type - The type of this input element.
toString
public java.lang.String toString()
- Overrides:
toString in class DocumentRange
- Returns:
- This object as a string.