org.apache.jetspeed.rewriter.html
Class SwingParserAdaptor.Callback
java.lang.Object
javax.swing.text.html.HTMLEditorKit.ParserCallback
org.apache.jetspeed.rewriter.html.SwingParserAdaptor.Callback
- Enclosing class:
- SwingParserAdaptor
class SwingParserAdaptor.Callback
- extends HTMLEditorKit.ParserCallback
Method Summary |
private SwingParserAdaptor.Callback |
addToResult(char[] txt)
|
private SwingParserAdaptor.Callback |
addToResult(Object txt)
|
private void |
appendTagToResult(HTML.Tag tag,
MutableAttributeSet attrs)
|
private void |
convertURLS(HTML.Tag tag,
MutableAttributeSet attrs)
|
void |
flush()
|
private void |
formatLine(HTML.Tag tag)
|
void |
getResult()
|
void |
handleComment(char[] values,
int param)
|
void |
handleEndOfLineString(String str)
|
void |
handleEndTag(HTML.Tag htmlTag,
int position)
|
void |
handleError(String str,
int param)
|
void |
handleSimpleTag(HTML.Tag htmlTag,
MutableAttributeSet attrs,
int param)
|
void |
handleStartTag(HTML.Tag htmlTag,
MutableAttributeSet attrs,
int position)
|
void |
handleText(char[] values,
int param)
|
private void |
write(String text)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
inForm
private boolean inForm
inScript
private boolean inScript
strip
private boolean strip
simpleTag
private boolean simpleTag
stripTag
private String stripTag
writer
private Writer writer
SwingParserAdaptor.Callback
private SwingParserAdaptor.Callback(Writer writer)
handleText
public void handleText(char[] values,
int param)
- Overrides:
handleText
in class HTMLEditorKit.ParserCallback
write
private void write(String text)
throws IOException
- Throws:
IOException
handleSimpleTag
public void handleSimpleTag(HTML.Tag htmlTag,
MutableAttributeSet attrs,
int param)
- Overrides:
handleSimpleTag
in class HTMLEditorKit.ParserCallback
handleStartTag
public void handleStartTag(HTML.Tag htmlTag,
MutableAttributeSet attrs,
int position)
- Overrides:
handleStartTag
in class HTMLEditorKit.ParserCallback
handleEndTag
public void handleEndTag(HTML.Tag htmlTag,
int position)
- Overrides:
handleEndTag
in class HTMLEditorKit.ParserCallback
handleError
public void handleError(String str,
int param)
- Overrides:
handleError
in class HTMLEditorKit.ParserCallback
handleComment
public void handleComment(char[] values,
int param)
- Overrides:
handleComment
in class HTMLEditorKit.ParserCallback
handleEndOfLineString
public void handleEndOfLineString(String str)
- Overrides:
handleEndOfLineString
in class HTMLEditorKit.ParserCallback
formatLine
private void formatLine(HTML.Tag tag)
addToResult
private SwingParserAdaptor.Callback addToResult(Object txt)
addToResult
private SwingParserAdaptor.Callback addToResult(char[] txt)
getResult
public void getResult()
flush
public void flush()
throws BadLocationException
- Overrides:
flush
in class HTMLEditorKit.ParserCallback
- Throws:
BadLocationException
appendTagToResult
private void appendTagToResult(HTML.Tag tag,
MutableAttributeSet attrs)
convertURLS
private void convertURLS(HTML.Tag tag,
MutableAttributeSet attrs)
Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.