| java.lang.Object javax.swing.text.html.parser.HTMLObject javax.swing.text.html.parser.HTMLText
Constructor Summary | |
public | HTMLText(String text, int pos, boolean hasLeadingSpaces, boolean hasTrailingSpaces) |
Method Summary | |
public String | getText() Returns the parsed text contained by this object. | public boolean | hasLeadingSpaces() Tells if the parsed text (stored in this object) has spaces at the
begining of it.
True if the parsed text had spaces at the begining of it. | public boolean | hasTrailingSpaces() Tells if the parsed text (stored in this object) has spaces at the end of
it.
True if the parsed text had spaces at the end of it. | public String | toString() |
HTMLText | public HTMLText(String text, int pos, boolean hasLeadingSpaces, boolean hasTrailingSpaces)(Code) | | Makes a new
HTMLText object
Parameters: text - The parsed text Parameters: pos - The position where the text was found Parameters: hasLeadingSpaces - Determines whether the parser text had spaces at the beginingof it. Parameters: hasTrailingSpaces - Determines whether the parser text had spaces at the endof it. |
getText | public String getText()(Code) | | Returns the parsed text contained by this object.
the parsed text. |
hasLeadingSpaces | public boolean hasLeadingSpaces()(Code) | | Tells if the parsed text (stored in this object) has spaces at the
begining of it.
True if the parsed text had spaces at the begining of it. Otherwise itreturns False. |
hasTrailingSpaces | public boolean hasTrailingSpaces()(Code) | | Tells if the parsed text (stored in this object) has spaces at the end of
it.
True if the parsed text had spaces at the end of it. Otherwise itreturns False. |
Methods inherited from javax.swing.text.html.parser.HTMLObject | public int getOffset()(Code)(Java Doc)
|
|
|