/** * Get the number of columns in this row. * @return The number of columns in this row. * <em>Note: this is a a simple count of the number of {@.html <TD>} tags and * may be incorrect if the {@.html <TD>} tags span multiple columns.</em> */ public int getColumnCount () { return (getColumns ().length); }
/** * Get the number of headers in this row. * @return The count of header tags in this row. */ public int getHeaderCount () { return (getHeaders ().length); }
/** * Is this a mail address * @return boolean true/false */ public boolean isMailLink() { getLink (); // force an evaluation of the booleans return (mailLink); }
/** * Tests if the link is an HTTP link. * * @return flag indicating if this link is an HTTP link */ public boolean isHTTPLink() { return (!isFTPLink() && !isHTTPSLink() && !isJavascriptLink() && !isMailLink() && !isIRCLink()); }
/** * Return a string representation of this tag for debugging. * @return A string with the text of the title. */ public String toString() { return "TITLE: " + getTitle(); } }
/** * Return a string representation of this node suitable for debugging. * @return The value and text of this tag in a string. */ public String toString() { String output = "OPTION VALUE: " + getValue() + " TEXT: " + getOptionText()+"\n"; return output; }
/** * Get the number of rows in this table. * @return The number of rows in this table. * <em>Note: this is a a simple count of the number of {@.html <TR>} tags and * may be incorrect if the {@.html <TR>} tags span multiple rows.</em> */ public int getRowCount () { return (getRows ().length); }
/** * Get the style data in this tag. * @return The HTML of the children of this tag. */ public String getStyleCode () { return (getChildrenHTML ()); }
/** * Get the list of input fields. * @return Input elements in the form. */ public NodeList getFormInputs() { return (searchFor (InputTag.class, true)); }
/** * Get the <code>ACCESSKEY</code> attribute, if any. * @return The value of the <code>ACCESSKEY</code> attribute, * or <code>null</code> if the attribute doesn't exist. */ public String getAccessKey() { return (getAttribute("ACCESSKEY")); }
/** * Get the <code>NAME</code> attribute, if any. * @return The value of the <code>NAME</code> attribute, * or <code>null</code> if the attribute doesn't exist. */ public String getFrameName() { return (getAttribute ("NAME")); }
/** * Returns the text contained inside this label tag. * @return The textual contents between the {@.html <LABEL></LABEL>} pair. */ public String getLabel() { return toPlainTextString(); }
/** * Get the jar file of the applet. * @return The value of the <code>ARCHIVE</code> attribute, or <code>null</code> if it wasn't specified. */ public String getArchive() { return (getAttribute ("ARCHIVE")); }
/** * Returns the text contained inside this label tag. * @return The textual contents between the {@.html <LABEL></LABEL>} pair. */ public String getLabel() { return toPlainTextString(); }
/** * Tests if the link is javascript * @return flag indicating if the link is a javascript code */ public boolean isJavascriptLink() { getLink (); // force an evaluation of the booleans return (javascriptLink); }
/** * Get the list of text areas. * @return Textarea elements in the form. */ public NodeList getFormTextareas() { return (searchFor (TextareaTag.class, true)); }
/** * Get the title text. * @return The title. */ public String getTitle() { return toPlainTextString(); }
/** * Is this a mail address * @return boolean true/false */ public boolean isMailLink() { getLink (); // force an evaluation of the booleans return (mailLink); }
/** * Return the plain text contents from this text area. * @return The text of the children of this <code>TEXTAREA</code> tag. */ public String getValue() { return toPlainTextString(); } }
/** * Returns the textual contents of this <code>BODY</code> tag. * Equivalent to <code>toPlainTextString()</code>. * @return The 'browser' text in this tag. */ public String getBody() { return toPlainTextString(); } }