|
Java Platform 1.2 Beta 4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.java.swing.text.html.HTMLEditorKit.ParserCallback | +--com.sun.java.swing.text.html.HTMLDocument.HTMLReader
Inner Class Summary | |
HTMLDocument.HTMLReader.BlockAction
|
|
HTMLDocument.HTMLReader.CharacterAction
|
|
HTMLDocument.HTMLReader.ParagraphAction
|
|
HTMLDocument.HTMLReader.PreAction
|
|
HTMLDocument.HTMLReader.SpecialAction
|
|
HTMLDocument.HTMLReader.TagAction
This is an action to be performed in response to parsing a tag. |
Constructor Summary | |
HTMLDocument.HTMLReader(int offset)
|
Method Summary | |
protected void | addContent(char[] data,
int offs,
int length)
Add some text with the current character attributes. |
protected void | addSpecialElement(HTML.Tag t,
MutableAttributeSet a)
Add content that is basically specified entirely in the attribute set. |
protected void | blockClose(HTML.Tag t)
Add an instruction to the parse buffer to close out a block element of the given type. |
protected void | blockOpen(HTML.Tag t,
MutableAttributeSet attr)
Add an instruction to the parse buffer to create a block element with the given attributes. |
void | flush()
This is the last method called on the reader. |
void | handleEndTag(HTML.Tag t,
int pos)
Callback from the parser. |
void | handleSimpleTag(HTML.Tag t,
MutableAttributeSet a,
int pos)
Callback from the parser. |
void | handleStartTag(HTML.Tag t,
MutableAttributeSet a,
int pos)
Callback from the parser. |
void | handleText(char[] data,
int pos)
Called by the parser to indicate a block of text was encountered. |
protected void | popCharacterStyle()
Pop a previously pushed character style off the stack to return to a previous style. |
protected void | preContent(char[] data)
Add the given content that was encountered in a PRE element. |
protected void | pushCharacterStyle()
Push the current character style on a stack in preparation for forming a new nested character style. |
protected void | registerTag(HTML.Tag t,
HTMLDocument.HTMLReader.TagAction a)
Register a handler for the given tag. |
Methods inherited from class com.sun.java.swing.text.html.HTMLEditorKit.ParserCallback | |
handleComment , handleError |
Methods inherited from class java.lang.Object | |
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
Constructor Detail |
public HTMLDocument.HTMLReader(int offset)
Method Detail |
public void flush() throws BadLocationException
public void handleText(char[] data, int pos)
public void handleStartTag(HTML.Tag t, MutableAttributeSet a, int pos)
public void handleEndTag(HTML.Tag t, int pos)
public void handleSimpleTag(HTML.Tag t, MutableAttributeSet a, int pos)
protected void registerTag(HTML.Tag t, HTMLDocument.HTMLReader.TagAction a)
protected void pushCharacterStyle()
protected void popCharacterStyle()
protected void preContent(char[] data)
protected void blockOpen(HTML.Tag t, MutableAttributeSet attr)
protected void blockClose(HTML.Tag t)
protected void addContent(char[] data, int offs, int length)
embedded
- the attributes of an embedded object.protected void addSpecialElement(HTML.Tag t, MutableAttributeSet a)
|
Java Platform 1.2 Beta 4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |