com.bluemarsh.jswat.breakpoint.ui
Class LineBreakpointUI

java.lang.Object
  |
  +--com.bluemarsh.jswat.breakpoint.ui.BasicBreakpointUI
        |
        +--com.bluemarsh.jswat.breakpoint.ui.LineBreakpointUI
All Implemented Interfaces:
BreakpointUI, UIAdapter

public class LineBreakpointUI
extends BasicBreakpointUI

Class LineBreakpointUI is an adapter capable of building a user interface to represent a line breakpoint.

Author:
Nathan Fiedler

Inner classes inherited from class com.bluemarsh.jswat.breakpoint.ui.BasicBreakpointUI
BasicBreakpointUI.GroupNamePair, BasicBreakpointUI.NumericDocument
 
Field Summary
protected  javax.swing.JTextField linenumberTextfield
          Breakpoint's line number text field.
protected  int originalLinenumber
          Original line number.
protected  LineBreakpoint targetBreakpoint
          Breakpoint that we are working against.
 
Fields inherited from class com.bluemarsh.jswat.breakpoint.ui.BasicBreakpointUI
enabledCheckbox, expirecountTextfield, groupCombo, originalEnabled, originalExpirecount, originalGroup, originalSkipcount, originalSuspendPolicy, propertiesPanel, skipcountTextfield, suspendGroup
 
Constructor Summary
LineBreakpointUI(LineBreakpoint bp)
          Create a LineBreakpointUI that will operate on the given breakpoint.
 
Method Summary
 void commit()
          Commit the values stored in the user interface elements to the object this adapter is representing (breakpoint, condition, or monitor).
 void undo()
          Reverse the changes made to the object this adapter is representing (breakpoint, condition, or monitor).
 
Methods inherited from class com.bluemarsh.jswat.breakpoint.ui.BasicBreakpointUI
buildGroupList, findAndSelectGroup, getSelectedGroup, getUI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

targetBreakpoint

protected LineBreakpoint targetBreakpoint
Breakpoint that we are working against.

originalLinenumber

protected int originalLinenumber
Original line number.

linenumberTextfield

protected javax.swing.JTextField linenumberTextfield
Breakpoint's line number text field.
Constructor Detail

LineBreakpointUI

public LineBreakpointUI(LineBreakpoint bp)
Create a LineBreakpointUI that will operate on the given breakpoint.
Parameters:
bp - breakpoint to be edited.
Method Detail

commit

public void commit()
Commit the values stored in the user interface elements to the object this adapter is representing (breakpoint, condition, or monitor).
Overrides:
commit in class BasicBreakpointUI

undo

public void undo()
Reverse the changes made to the object this adapter is representing (breakpoint, condition, or monitor). This must not modify the user interface widgets.
Overrides:
undo in class BasicBreakpointUI
Following copied from interface: com.bluemarsh.jswat.breakpoint.ui.UIAdapter
Throws:
UnsupportedOperationException - Thrown if this operation is not supported.