|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bluemarsh.jswat.breakpoint.ui.BasicBreakpointUI
Class BasicBreakpointUI is an adapter for building the user interface components to represent a the common properties of all breakpoints.
Inner Class Summary | |
protected static class |
BasicBreakpointUI.GroupNamePair
Class GroupNamePair represents a breakpoint group/composite name pair. |
protected class |
BasicBreakpointUI.NumericDocument
Implements a text document that only accepts digits. |
Field Summary | |
protected javax.swing.JTextField |
classFiltersTextfield
Breakpoint's class filters text field. |
protected javax.swing.JCheckBox |
enabledCheckbox
Checkbox for the breakpoint's enabledness. |
protected javax.swing.JTextField |
expirecountTextfield
Breakpoint's expire count text field. |
protected java.awt.GridBagConstraints |
gbc
Contraints object for the panel layout. |
protected java.awt.GridBagLayout |
gbl
Layout for the properties panel. |
protected javax.swing.JComboBox |
groupCombo
Combo box showing the available breakpoint groups. |
protected java.lang.String |
originalClassFilters
Original list of class filters. |
protected boolean |
originalEnabled
Original enabled value. |
protected int |
originalExpirecount
Original expire count value. |
protected BreakpointGroup |
originalGroup
Original group the breakpoint belonged to. |
protected int |
originalSkipcount
Original skip count value. |
protected int |
originalSuspendPolicy
Original suspend policy value. |
protected java.lang.String |
originalThreadFilters
Original list of thread filters. |
protected javax.swing.JPanel |
propertiesPanel
Panel that contains all of our properties, in a gridbag layout. |
protected javax.swing.JTextField |
skipcountTextfield
Breakpoint's skip count text field. |
protected javax.swing.ButtonGroup |
suspendGroup
Radio button group for the suspend policy. |
protected Breakpoint |
targetBreakpoint
Breakpoint that we are working against. |
protected javax.swing.JTextField |
threadFiltersTextfield
Breakpoint's thread filters text field. |
Constructor Summary | |
BasicBreakpointUI(Breakpoint bp)
Create a BasicBreakpointUI that will operate on the given breakpoint. |
Method Summary | |
void |
addClassFilter()
Add the text input field for setting the class filters. |
void |
addThreadFilter()
Add the text input field for setting the thread filters. |
static javax.swing.JComboBox |
buildGroupList(BreakpointGroup defaultGroup)
Builds a combo box to display all the available breakpoint groups. |
void |
commit()
Commit the values stored in the user interface elements to the object this adapter is representing (breakpoint, condition, or monitor). |
static void |
findAndSelectGroup(javax.swing.JComboBox box,
Breakpoint bp)
Using the given combo box, previously built using buildGroupList() , set one of the breakpoint groups
in the combo box as selected according to the parent group of
the given breakpoint. |
static BreakpointGroup |
getSelectedGroup(javax.swing.JComboBox box)
Retrieves the selected BreakpointGroup from the given combo box. |
java.awt.Component |
getUI()
Return a reference to the user interface element that this adapter uses to graphically represent the 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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Breakpoint targetBreakpoint
protected javax.swing.JPanel propertiesPanel
protected java.awt.GridBagLayout gbl
protected java.awt.GridBagConstraints gbc
protected boolean originalEnabled
protected javax.swing.JCheckBox enabledCheckbox
protected int originalSkipcount
protected javax.swing.JTextField skipcountTextfield
protected int originalExpirecount
protected javax.swing.JTextField expirecountTextfield
protected BreakpointGroup originalGroup
protected javax.swing.JComboBox groupCombo
protected int originalSuspendPolicy
protected javax.swing.ButtonGroup suspendGroup
protected java.lang.String originalClassFilters
protected javax.swing.JTextField classFiltersTextfield
protected java.lang.String originalThreadFilters
protected javax.swing.JTextField threadFiltersTextfield
Constructor Detail |
public BasicBreakpointUI(Breakpoint bp)
bp
- breakpoint to be edited.Method Detail |
public void addClassFilter()
public void addThreadFilter()
public static javax.swing.JComboBox buildGroupList(BreakpointGroup defaultGroup)
To retrieve the selected breakpoint group from the combo box,
pass the combo box to the getSelectedGroup()
method.
defaultGroup
- the "default" breakpoint group, usually
retrieved from the breakpoint manager.public void commit()
commit
in interface UIAdapter
public static void findAndSelectGroup(javax.swing.JComboBox box, Breakpoint bp)
buildGroupList()
, set one of the breakpoint groups
in the combo box as selected according to the parent group of
the given breakpoint.box
- combo box in which to select a group.bp
- breakpoint whose parent group should be selected.public static BreakpointGroup getSelectedGroup(javax.swing.JComboBox box)
buildGroupList()
method.box
- combo box that lists breakpoint groups.public java.awt.Component getUI()
getUI
in interface UIAdapter
public void undo()
undo
in interface UIAdapter
com.bluemarsh.jswat.breakpoint.ui.UIAdapter
UnsupportedOperationException
- Thrown if this operation is not supported.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |