|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bluemarsh.jswat.panel.JSwatPanel | +--com.bluemarsh.jswat.panel.StackPanel
Class StackPanel is responsible for displaying a list of stack frames in the debuggee VM's current thread.
Field Summary | |
protected ContextManager |
contextManager
Handy reference to the Session's ContextManager. |
protected Session |
owningSession
Handy reference to the Session that owns us. |
protected com.bluemarsh.jswat.panel.StackPanel.StackRenderer |
stackRenderer
Thing that renders the rows of our table. |
protected javax.swing.JTable |
table
Our table component - displays the stack frames |
protected javax.swing.JScrollPane |
uicomp
Our UI component - scrollable panel |
Fields inherited from class com.bluemarsh.jswat.panel.JSwatPanel |
swat |
Constructor Summary | |
StackPanel()
Constructs a new StackPanel with the default table. |
Method Summary | |
void |
activate(Session session)
Called when the Session is about to begin an active debugging session. |
void |
close(Session session)
Called when the Session is closing down this panel, generally just after the panel has been removed from the Session. |
void |
contextChanged(ContextChangeEvent cce)
Invoked when the current context has changed. |
void |
deactivate(Session session)
Called when the Session is about to end an active debugging session. |
protected void |
describeFrame(com.sun.jdi.StackFrame frame,
com.bluemarsh.jswat.panel.ViewTableModel model,
int row)
Describes the given stack frame into the table. |
protected void |
describeStack(com.sun.jdi.ThreadReference thread,
com.bluemarsh.jswat.panel.ViewTableModel model)
Describes the given thread stack, placing the results in the given table model. |
javax.swing.JComponent |
getPeer()
Returns a reference to the peer UI component. |
javax.swing.JComponent |
getUI()
Returns a reference to the UI component. |
void |
init(Session session)
Called when the Session is ready to initialize this panel, generally just after the panel has been added to the Session. |
void |
mouseClicked(java.awt.event.MouseEvent e)
Invoked when the mouse has been clicked on a component. |
void |
mouseEntered(java.awt.event.MouseEvent e)
Invoked when the mouse enters a component. |
void |
mouseExited(java.awt.event.MouseEvent e)
Invoked when the mouse exits a component. |
void |
mousePressed(java.awt.event.MouseEvent e)
Invoked when a mouse button has been pressed on a component. |
void |
mouseReleased(java.awt.event.MouseEvent e)
Invoked when a mouse button has been released on a component. |
void |
refresh(Session session)
Update the display on the screen. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected javax.swing.JTable table
protected javax.swing.JScrollPane uicomp
protected Session owningSession
protected com.bluemarsh.jswat.panel.StackPanel.StackRenderer stackRenderer
protected ContextManager contextManager
Constructor Detail |
public StackPanel()
Method Detail |
public void activate(Session session)
activate
in class JSwatPanel
session
- Session being activated.public void close(Session session)
close
in class JSwatPanel
session
- Session closing the panel.public void contextChanged(ContextChangeEvent cce)
contextChanged
in interface ContextListener
cce
- context change eventpublic void deactivate(Session session)
deactivate
in class JSwatPanel
session
- Session being deactivated.protected void describeFrame(com.sun.jdi.StackFrame frame, com.bluemarsh.jswat.panel.ViewTableModel model, int row)
frame
- StackFrame to describe.model
- Table model to describe frame into.row
- Row of table to describe to.protected void describeStack(com.sun.jdi.ThreadReference thread, com.bluemarsh.jswat.panel.ViewTableModel model)
thread
- Thread to describe.model
- Table model for stack description.public javax.swing.JComponent getPeer()
public javax.swing.JComponent getUI()
getUI
in class JSwatPanel
public void init(Session session)
init
in class JSwatPanel
session
- Session initializing this panel.public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
e
- Mouse event.public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
e
- Mouse event.public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
e
- Mouse event.public void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered
in interface java.awt.event.MouseListener
e
- Mouse event.public void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.MouseListener
e
- Mouse event.public void refresh(Session session)
refresh
in class JSwatPanel
session
- Debugging Session object.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |