net.sf.swan.xml.input.traceview
Class JTreeTraceHandler
java.lang.Object
|
+--net.sf.swan.xml.input.event.TraceHandler
|
+--net.sf.swan.xml.input.traceview.JTreeTraceHandler
- All Implemented Interfaces:
- ErrorHandler
- public class JTreeTraceHandler
- extends TraceHandler
- implements ErrorHandler
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WARNING
public static final int WARNING
ERROR
public static final int ERROR
FATAL_ERROR
public static final int FATAL_ERROR
JTreeTraceHandler
public JTreeTraceHandler()
JTreeTraceHandler
public JTreeTraceHandler(int errorLevel)
getErrorLevel
public int getErrorLevel()
warning
public void warning(EventContextException ex)
throws EventContextException
- Specified by:
warning
in interface ErrorHandler
error
public void error(EventContextException ex)
throws EventContextException
- Specified by:
error
in interface ErrorHandler
fatalError
public void fatalError(EventContextException ex)
throws EventContextException
- Specified by:
fatalError
in interface ErrorHandler
setErrorLevel
public void setErrorLevel(int errorLevel)
- Sets the threshold for throwing exceptions rather than simply
printing them. The value should be one of
WARNING
, ERROR
, or FATAL_ERROR
.
startTrace
public void startTrace(DocumentContext context)
- Overrides:
startTrace
in class TraceHandler
showFrame
public javax.swing.JFrame showFrame()
createView
public javax.swing.JComponent createView()
startContext
public void startContext(java.lang.Object context)
- Overrides:
startContext
in class TraceHandler
startTrace
public void startTrace(ContextEvent event,
java.lang.Object subject)
- Overrides:
startTrace
in class TraceHandler
endTrace
public void endTrace(ContextEvent event,
java.lang.Object subject)
- Overrides:
endTrace
in class TraceHandler
trace
public void trace(java.lang.Object subject)
- Overrides:
trace
in class TraceHandler
endContext
public void endContext(java.lang.Object context)
- Overrides:
endContext
in class TraceHandler
startContextRef
public void startContextRef(java.lang.Object contextRef,
java.lang.Object message)
- Overrides:
startContextRef
in class TraceHandler
endContextRef
public void endContextRef(java.lang.Object contextRef,
java.lang.Object message)
- Overrides:
endContextRef
in class TraceHandler
traceClientState
public void traceClientState(EventContext context)
- Overrides:
traceClientState
in class TraceHandler
traceProperty
public void traceProperty(EventContext context,
java.lang.Object key,
java.lang.Object value)
- Overrides:
traceProperty
in class TraceHandler
traceContextProperty
public void traceContextProperty(EventContext context,
java.lang.Object key,
java.lang.Object value)
- Overrides:
traceContextProperty
in class TraceHandler
getRoot
public javax.swing.tree.TreeNode getRoot()