org.anadix.swingparser
Class StatefulParserCallback

java.lang.Object
  extended by javax.swing.text.html.HTMLEditorKit.ParserCallback
      extended by org.anadix.swingparser.StatefulParserCallback

public class StatefulParserCallback
extends HTMLEditorKit.ParserCallback

Callback class that handles the events from swingparser

Version:
$Id: $
Author:
tomason

Field Summary
 
Fields inherited from class javax.swing.text.html.HTMLEditorKit.ParserCallback
IMPLIED
 
Constructor Summary
StatefulParserCallback(HTMLElementFactory factory)
          Constructor
StatefulParserCallback(HTMLElementFactory factory, String source)
          Constructor
 
Method Summary
 void handleEndTag(HTML.Tag t, int pos)
          
 void handleError(String errorMsg, int pos)
          
 void handleSimpleTag(HTML.Tag t, MutableAttributeSet a, int pos)
          
 void handleStartTag(HTML.Tag t, MutableAttributeSet a, int pos)
          
 void handleText(char[] data, int pos)
          
 
Methods inherited from class javax.swing.text.html.HTMLEditorKit.ParserCallback
flush, handleComment, handleEndOfLineString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatefulParserCallback

public StatefulParserCallback(HTMLElementFactory factory)
Constructor

Parameters:
factory - instance of HTMLElementFactory used for inserting events

StatefulParserCallback

public StatefulParserCallback(HTMLElementFactory factory,
                              String source)
Constructor

Parameters:
factory - instance of HTMLElementFactory used for inserting events
source - HTML source code
Method Detail

handleSimpleTag

public void handleSimpleTag(HTML.Tag t,
                            MutableAttributeSet a,
                            int pos)

Overrides:
handleSimpleTag in class HTMLEditorKit.ParserCallback

handleStartTag

public void handleStartTag(HTML.Tag t,
                           MutableAttributeSet a,
                           int pos)

Overrides:
handleStartTag in class HTMLEditorKit.ParserCallback

handleEndTag

public void handleEndTag(HTML.Tag t,
                         int pos)

Overrides:
handleEndTag in class HTMLEditorKit.ParserCallback

handleText

public void handleText(char[] data,
                       int pos)

Overrides:
handleText in class HTMLEditorKit.ParserCallback

handleError

public void handleError(String errorMsg,
                        int pos)

Overrides:
handleError in class HTMLEditorKit.ParserCallback


Copyright © 2011. All Rights Reserved.