org.objectweb.cjdbc.console.gui.threads
Class GuiParsingThread

java.lang.Object
  extended byjava.lang.Thread
      extended byorg.objectweb.cjdbc.console.gui.threads.GuiParsingThread
All Implemented Interfaces:
javax.swing.event.CaretListener, java.util.EventListener, java.awt.event.KeyListener, java.lang.Runnable

public class GuiParsingThread
extends java.lang.Thread
implements java.awt.event.KeyListener, javax.swing.event.CaretListener

This class defines a GuiParsingThread

Version:
1.0
Author:
Nicolas Modrzyk

Field Summary
private  javax.swing.JTextPane outputPane
           
private  javax.swing.JTextPane xmlTextPane
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
GuiParsingThread(javax.swing.JTextPane xmlTextPane)
          Creates a new GuiParsingThread.java object
 
Method Summary
 void caretUpdate(javax.swing.event.CaretEvent e)
           
 void keyPressed(java.awt.event.KeyEvent e)
           
 void keyReleased(java.awt.event.KeyEvent e)
           
 void keyTyped(java.awt.event.KeyEvent e)
           
 void run()
           
 void setOutputPane(javax.swing.JTextPane rightPane)
          Set the output panel for this parsing thread
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

xmlTextPane

private javax.swing.JTextPane xmlTextPane

outputPane

private javax.swing.JTextPane outputPane
Constructor Detail

GuiParsingThread

public GuiParsingThread(javax.swing.JTextPane xmlTextPane)
Creates a new GuiParsingThread.java object

Parameters:
xmlTextPane - panel that contains the xml to parse
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable
See Also:
Runnable.run()

keyPressed

public void keyPressed(java.awt.event.KeyEvent e)
Specified by:
keyPressed in interface java.awt.event.KeyListener
See Also:
KeyListener.keyPressed(java.awt.event.KeyEvent)

keyReleased

public void keyReleased(java.awt.event.KeyEvent e)
Specified by:
keyReleased in interface java.awt.event.KeyListener
See Also:
KeyListener.keyReleased(java.awt.event.KeyEvent)

keyTyped

public void keyTyped(java.awt.event.KeyEvent e)
Specified by:
keyTyped in interface java.awt.event.KeyListener
See Also:
KeyListener.keyTyped(java.awt.event.KeyEvent)

setOutputPane

public void setOutputPane(javax.swing.JTextPane rightPane)
Set the output panel for this parsing thread

Parameters:
rightPane - the pane to display the output

caretUpdate

public void caretUpdate(javax.swing.event.CaretEvent e)
Specified by:
caretUpdate in interface javax.swing.event.CaretListener
See Also:
CaretListener.caretUpdate(javax.swing.event.CaretEvent)


Copyright © 2002, 2005 - ObjectWeb Consortium - All Rights Reserved.