de.pannenleiter.tbug.plain
Class DebugWindow

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Panel
                    |
                    +--de.pannenleiter.tbug.plain.DebugWindow
All Implemented Interfaces:
javax.accessibility.Accessible, DebuggerCallback, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable

public class DebugWindow
extends java.awt.Panel
implements DebuggerCallback

DebugWindow -- the main window of the plain gui

See Also:
Serialized Form

Inner classes inherited from class java.awt.Panel
java.awt.Panel.AccessibleAWTPanel
 
Inner classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Inner classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent
 
Field Summary
protected  XSLThread breakpoint
           
protected  java.awt.Button btnEnd
           
protected  java.awt.Button btnRun
           
protected  java.awt.Button btnSkip
           
protected  java.awt.Button btnStep
           
protected  Debugger debugger
           
protected  int displayedStyleFrame
           
protected  java.awt.Label lblStatus
           
protected  java.lang.Object lock
           
protected  java.awt.List sourceStack
           
protected  int state
           
protected  java.awt.List styleStack
           
protected  TextCollection text
           
protected  java.awt.List variableList
           
protected  VariablePanal variableText
           
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface de.pannenleiter.tbug.hook.DebuggerCallback
SINK_MESSAGE, SINK_OUTPUT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
DebugWindow(Debugger debugger)
           
 
Method Summary
 void breakpointEvent(XSLThread thread)
           
static DebuggerCallback create(Debugger debugger, boolean exitOnClose)
           
protected  void enterSource(XSLThread thread)
           
protected  void enterStyle(XSLThread thread)
           
protected  void leaveSource(XSLThread thread)
           
protected  void leaveStyle(XSLThread thread)
           
 void outputEvent(java.lang.String out, XSLThread thread, java.lang.String sinkName)
           
protected  void placeWidgets()
           
protected  void setState(int newState, Node current, boolean enter)
           
protected  void showSource(int idx, boolean enter, boolean leave)
           
protected  void showSourceStack(SourceFrame[] stack)
           
protected  void showStyle(int idx, boolean enter, boolean leave)
           
protected  void showStyleStack(StyleFrame[] stack)
           
 void threadDeadEvent(XSLThread thread)
           
protected  void userConfirmed()
           
 void waitForUser()
           
 
Methods inherited from class java.awt.Panel
addNotify, getAccessibleContext
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paint, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setFont, setLayout, update, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

debugger

protected Debugger debugger

breakpoint

protected XSLThread breakpoint

sourceStack

protected java.awt.List sourceStack

styleStack

protected java.awt.List styleStack

variableList

protected java.awt.List variableList

variableText

protected VariablePanal variableText

text

protected TextCollection text

btnStep

protected java.awt.Button btnStep

btnSkip

protected java.awt.Button btnSkip

btnEnd

protected java.awt.Button btnEnd

btnRun

protected java.awt.Button btnRun

lblStatus

protected java.awt.Label lblStatus

lock

protected java.lang.Object lock

state

protected int state

displayedStyleFrame

protected int displayedStyleFrame
Constructor Detail

DebugWindow

public DebugWindow(Debugger debugger)
Method Detail

create

public static DebuggerCallback create(Debugger debugger,
                                      boolean exitOnClose)

placeWidgets

protected void placeWidgets()

setState

protected void setState(int newState,
                        Node current,
                        boolean enter)

showSource

protected void showSource(int idx,
                          boolean enter,
                          boolean leave)
                   throws java.lang.Exception

showStyle

protected void showStyle(int idx,
                         boolean enter,
                         boolean leave)
                  throws java.lang.Exception

waitForUser

public void waitForUser()

userConfirmed

protected void userConfirmed()

showSourceStack

protected void showSourceStack(SourceFrame[] stack)
                        throws java.lang.Exception

showStyleStack

protected void showStyleStack(StyleFrame[] stack)
                       throws java.lang.Exception

enterSource

protected void enterSource(XSLThread thread)
                    throws java.lang.Exception

leaveSource

protected void leaveSource(XSLThread thread)
                    throws java.lang.Exception

enterStyle

protected void enterStyle(XSLThread thread)
                   throws java.lang.Exception

leaveStyle

protected void leaveStyle(XSLThread thread)
                   throws java.lang.Exception

breakpointEvent

public void breakpointEvent(XSLThread thread)
Specified by:
breakpointEvent in interface DebuggerCallback

outputEvent

public void outputEvent(java.lang.String out,
                        XSLThread thread,
                        java.lang.String sinkName)
Specified by:
outputEvent in interface DebuggerCallback

threadDeadEvent

public void threadDeadEvent(XSLThread thread)
Specified by:
threadDeadEvent in interface DebuggerCallback