[Htmlparser-cvs] htmlparser/src/org/htmlparser/tags FormTag.java,1.24,1.25
Brought to you by:
derrickoswald
From: <der...@us...> - 2003-07-30 03:06:05
|
Update of /cvsroot/htmlparser/htmlparser/src/org/htmlparser/tags In directory sc8-pr-cvs1:/tmp/cvs-serv8834/org/htmlparser/tags Modified Files: FormTag.java Log Message: Added recursive input and textarea harvesting to FormTag. Index: FormTag.java =================================================================== RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/tags/FormTag.java,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** FormTag.java 27 Jul 2003 19:19:19 -0000 1.24 --- FormTag.java 30 Jul 2003 03:06:02 -0000 1.25 *************** *** 68,80 **** this.formName = compositeTagData.getStartTag().getAttribute("NAME"); this.formMethod = compositeTagData.getStartTag().getAttribute("METHOD"); ! this.formInputList = compositeTagData.getChildren().searchFor(InputTag.class); ! this.textAreaList = compositeTagData.getChildren().searchFor(TextareaTag.class); } /** ! * @return Vector Input elements in the form */ ! public NodeList getFormInputs() { return formInputList; } --- 68,91 ---- this.formName = compositeTagData.getStartTag().getAttribute("NAME"); this.formMethod = compositeTagData.getStartTag().getAttribute("METHOD"); ! this.formInputList = compositeTagData.getChildren().searchFor(InputTag.class, true); ! this.textAreaList = compositeTagData.getChildren().searchFor(TextareaTag.class, true); } /** ! * Get the list of input fields. ! * @return Input elements in the form. */ ! public NodeList getFormInputs() ! { return formInputList; + } + + /** + * Get the list of text areas. + * @return Textarea elements in the form + */ + public NodeList getFormtextAreas() + { + return textAreaList; } |