Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.htmlparser.tags
Class FormTag  view FormTag download FormTag.java

java.lang.Object
  extended byorg.htmlparser.Node
      extended byorg.htmlparser.tags.Tag
          extended byorg.htmlparser.tags.CompositeTag
              extended byorg.htmlparser.tags.FormTag
All Implemented Interfaces:
java.io.Serializable

public class FormTag
extends CompositeTag

Represents a FORM tag.


Field Summary
protected  org.htmlparser.util.NodeList formInputList
           
protected  java.lang.String formMethod
           
protected  java.lang.String formName
           
protected  java.lang.String formURL
           
static java.lang.String GET
           
static java.lang.String POST
           
private  org.htmlparser.util.NodeList textAreaList
           
 
Fields inherited from class org.htmlparser.tags.CompositeTag
childTags, endTag, startTag
 
Fields inherited from class org.htmlparser.tags.Tag
attributes, breakTags, EMPTYTAG, tagContents, TAGNAME, thisScanner, TYPE
 
Fields inherited from class org.htmlparser.Node
lineSeparator, nodeBegin, nodeEnd, parent
 
Constructor Summary
FormTag(org.htmlparser.tags.data.TagData tagData, org.htmlparser.tags.data.CompositeTagData compositeTagData)
          Constructor takes in tagData, compositeTagData, formTagData
 
Method Summary
 org.htmlparser.util.NodeList getFormInputs()
           
 java.lang.String getFormLocation()
           
 java.lang.String getFormMethod()
          Returns the method of the form
 java.lang.String getFormName()
           
 InputTag getInputTag(java.lang.String name)
          Get the input tag in the form corresponding to the given name
 TextareaTag getTextAreaTag(java.lang.String name)
          Find the textarea tag matching the given name
 void setFormLocation(java.lang.String formURL)
          Set the form location.
 java.lang.String toString()
          Print the contents of the tag
 
Methods inherited from class org.htmlparser.tags.CompositeTag
accept, childAt, children, collectInto, collectInto, digupStringNode, elements, findPositionOf, findPositionOf, getChild, getChildCount, getChildren, getChildrenAsNodeArray, getChildrenHTML, getEndTag, getStartTag, putChildrenInto, putEndTagInto, putStartTagInto, searchByName, searchFor, searchFor, searchFor, toHtml, toPlainTextString
 
Methods inherited from class org.htmlparser.tags.Tag
append, append, breaksFlow, extractWord, find, getAttribute, getAttributes, getParameter, getParsed, getTagBegin, getTagEnd, getTagEndLine, getTagLine, getTagLines, getTagName, getTagStartLine, getText, getThisScanner, getType, isEmptyXmlTag, redoParseAttributes, scan, setAttribute, setAttributes, setEmptyXmlTag, setTagBegin, setTagEnd, setTagLine, setTagParser, setText, setThisScanner
 
Methods inherited from class org.htmlparser.Node
elementBegin, elementEnd, getLineSeparator, getParent, setLineSeparator, setParent, toHTML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

POST

public static final java.lang.String POST
See Also:
Constant Field Values

GET

public static final java.lang.String GET
See Also:
Constant Field Values

formURL

protected java.lang.String formURL

formName

protected java.lang.String formName

formMethod

protected java.lang.String formMethod

formInputList

protected org.htmlparser.util.NodeList formInputList

textAreaList

private org.htmlparser.util.NodeList textAreaList
Constructor Detail

FormTag

public FormTag(org.htmlparser.tags.data.TagData tagData,
               org.htmlparser.tags.data.CompositeTagData compositeTagData)
Constructor takes in tagData, compositeTagData, formTagData

Method Detail

getFormInputs

public org.htmlparser.util.NodeList getFormInputs()

getFormLocation

public java.lang.String getFormLocation()

getFormMethod

public java.lang.String getFormMethod()
Returns the method of the form


getInputTag

public InputTag getInputTag(java.lang.String name)
Get the input tag in the form corresponding to the given name


getFormName

public java.lang.String getFormName()

setFormLocation

public void setFormLocation(java.lang.String formURL)
Set the form location. Modification of this element will cause the HTML rendering to change as well (in a call to toHTML()).


toString

public java.lang.String toString()
Description copied from class: Tag
Print the contents of the tag

Overrides:
toString in class Tag

getTextAreaTag

public TextareaTag getTextAreaTag(java.lang.String name)
Find the textarea tag matching the given name