|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--util.HTMLElement
HTMLElement is a representation of a
javax.swing.text.Element that provides some useful interfaces.
| Constructor Summary | |
HTMLElement(Element eInput)
Creates a new HTMLElement instance from an input
javax.swing.text.Element. |
|
| Method Summary | |
boolean |
containsAttribute(String sAttribName)
Returns true if this element has the named attribute. |
String |
getAttribute(HTML.Attribute hAttribute)
Returns the string value of the attribute with the given attribute key. |
String |
getAttribute(String sAttribName)
Returns the string value of the attribute with the given attribute name. |
int |
getAttributeCount()
Returns the number of attributes of this element. |
AttributeSet |
getAttributes()
Returns this element's attribute set. |
Document |
getDocument()
Gets the associated document. |
String |
getName()
Gets the name of this element. |
String |
getText()
Gets the text between the tag anchors. |
String |
toString()
Returns a string representation of this. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Constructor Detail |
public HTMLElement(Element eInput)
HTMLElement instance from an input
javax.swing.text.Element.eInput - a javax.swing.text.Element value| Method Detail |
public boolean containsAttribute(String sAttribName)
sAttribName - a String valueboolean valuepublic AttributeSet getAttributes()
AttributeSet valuepublic String getAttribute(HTML.Attribute hAttribute)
hAttribute - a HTML.Attribute valueString valuepublic String getAttribute(String sAttribName)
sAttribName - a String valueString valuepublic int getAttributeCount()
int valuepublic String getText()
Hello World
, getText() returns "Hello World"String valuepublic String getName()
String valuepublic Document getDocument()
javax.swing.text.Document valuepublic String toString()
String value
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||