org.encog.bot.browse.range
Class FormElement
- java.lang.Object
-
- org.encog.bot.browse.range.DocumentRange
-
- org.encog.bot.browse.range.FormElement
-
- Direct Known Subclasses:
- Input
public abstract class FormElement extends DocumentRange
A document range that represents one individual component to a form.
-
-
Constructor Summary
Constructors Constructor and Description FormElement(WebPage source)Construct a form element from the specified web page.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description java.lang.StringgetName()FormgetOwner()java.lang.StringgetValue()abstract booleanisAutoSend()voidsetName(java.lang.String theName)Set the name of this form element.voidsetOwner(Form theOwner)Set the owner of this form element.voidsetValue(java.lang.String theValue)Set the value for this form element.java.lang.StringtoString()-
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
-
-
-
-
Constructor Detail
-
FormElement
public FormElement(WebPage source)
Construct a form element from the specified web page.- Parameters:
source- The page that holds this form element.
-
-
Method Detail
-
getName
public final java.lang.String getName()
- Returns:
- The name of this form.
-
getOwner
public final Form getOwner()
- Returns:
- The owner of this form element.
-
getValue
public final java.lang.String getValue()
- Returns:
- The value of this form element.
-
isAutoSend
public abstract boolean isAutoSend()
- 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.
-
setName
public final void setName(java.lang.String theName)
Set the name of this form element.- Parameters:
theName- The name of this form element.
-
setOwner
public final void setOwner(Form theOwner)
Set the owner of this form element.- Parameters:
theOwner- The owner of this form element.
-
setValue
public final void setValue(java.lang.String theValue)
Set the value for this form element.- Parameters:
theValue- The value for this form element.
-
toString
public final java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-
DMelt 3.0 © DataMelt by jWork.ORG