|
|||||||||
Home >> All >> javax >> swing >> text >> [ html overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: ![]() ![]() ![]() |
DETAIL: FIELD | CONSTR | METHOD |
javax.swing.text.html
Class HTMLEditorKit.ParserCallback

java.lang.Objectjavax.swing.text.html.HTMLEditorKit.ParserCallback
- Direct Known Subclasses:
- HTMLDocument.HTMLReader
- Enclosing class:
- HTMLEditorKit
- public static class HTMLEditorKit.ParserCallback
- extends java.lang.Object
The "hook" that receives all information about the HTML document structure while parsing it. The methods are invoked by parser and should be normally overridden.
Field Summary | |
static java.lang.Object |
IMPLIED
If the tag does not occurs in the html stream directly, but is supposed by parser, the tag attribute set contains this additional attribute, having value Boolean.True. |
Constructor Summary | |
HTMLEditorKit.ParserCallback()
Constructor |
Method Summary | |
void |
flush()
The parser calls this method after it finishes parsing the document. |
void |
handleComment(char[] comment,
int position)
Handle HTML comment, present in the given position. |
void |
handleEndOfLineString(java.lang.String end_of_line)
Notifies about the character sequences, used to separate lines in this document. |
void |
handleEndTag(HTML.Tag tag,
int position)
The method is called when the HTML closing tag ((like </table>) is found or if the parser concludes that the one should be present in the current position. |
void |
handleError(java.lang.String message,
int position)
Handle the error. |
void |
handleSimpleTag(HTML.Tag tag,
javax.swing.text.MutableAttributeSet attributes,
int position)
Handle the tag with no content, like <br>. |
void |
handleStartTag(HTML.Tag tag,
javax.swing.text.MutableAttributeSet attributes,
int position)
The method is called when the HTML opening tag ((like <table>) is found or if the parser concludes that the one should be present in the current position. |
void |
handleText(char[] text,
int position)
Handle the text section. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
IMPLIED
public static final java.lang.Object IMPLIED
- If the tag does not occurs in the html stream directly, but
is supposed by parser, the tag attribute set contains this additional
attribute, having value Boolean.True.
Constructor Detail |
HTMLEditorKit.ParserCallback
public HTMLEditorKit.ParserCallback()
- Constructor
Method Detail |
flush
public void flush() throws javax.swing.text.BadLocationException
- The parser calls this method after it finishes parsing the document.
handleComment
public void handleComment(char[] comment, int position)
- Handle HTML comment, present in the given position.
handleEndOfLineString
public void handleEndOfLineString(java.lang.String end_of_line)
- Notifies about the character sequences, used to separate lines in
this document. The parser calls this method after it finishes
parsing the document, but before flush().
handleEndTag
public void handleEndTag(HTML.Tag tag, int position)
- The method is called when the HTML closing tag ((like </table>)
is found or if the parser concludes that the one should be present
in the current position.
handleError
public void handleError(java.lang.String message, int position)
- Handle the error.
handleSimpleTag
public void handleSimpleTag(HTML.Tag tag, javax.swing.text.MutableAttributeSet attributes, int position)
- Handle the tag with no content, like <br>. The method is
called for the elements that, in accordance with the current DTD,
has an empty content.
handleStartTag
public void handleStartTag(HTML.Tag tag, javax.swing.text.MutableAttributeSet attributes, int position)
- The method is called when the HTML opening tag ((like <table>)
is found or if the parser concludes that the one should be present
in the current position.
handleText
public void handleText(char[] text, int position)
- Handle the text section.
|
|||||||||
Home >> All >> javax >> swing >> text >> [ html overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: ![]() ![]() ![]() |
DETAIL: FIELD | CONSTR | METHOD |