com.japisoft.xmlpad
Interface DocumentStateListener

All Superinterfaces:
java.util.EventListener

public interface DocumentStateListener
extends java.util.EventListener

This listener gives information to document parsing state : Error, ok

Version:
1.0
Author:
(c) 2003 JAPISOFT / Alexandre Brillant

Method Summary
 void documentModified()
          Notify the first time the original document is modified
 void errorFound(java.lang.String errorMessage, int line, boolean temporary)
          Notify that an error has been found with this message.
 void newDocument()
          Notify a new document
 void noErrorFound(boolean temporary)
          Notify that the current document has no error.
 

Method Detail

errorFound

public void errorFound(java.lang.String errorMessage,
                       int line,
                       boolean temporary)
Notify that an error has been found with this message. The temporary argument is for the parsing type : true the error is produced while the user inserts its text, so it may be a temporary error, false for a true error, the user has terminated to insert his text

Parameters:
errorMessage - Syntax error messag
line - Error line
temporary - true when provided by the real time parser

noErrorFound

public void noErrorFound(boolean temporary)
Notify that the current document has no error. The temporary is for real time user input meaning validation error can exist again if true


documentModified

public void documentModified()
Notify the first time the original document is modified


newDocument

public void newDocument()
Notify a new document