com.bluemarsh.jswat.breakpoint.ui
Class CommandMonitorUI
java.lang.Object
|
+--com.bluemarsh.jswat.breakpoint.ui.CommandMonitorUI
- All Implemented Interfaces:
- MonitorUI, UIAdapter
- public class CommandMonitorUI
- extends java.lang.Object
- implements MonitorUI
Class CommandMonitorUI provides the interface adapter for the
CommandMonitor.
- Author:
- Nathan Fiedler
Method Summary |
void |
commit()
Commit the values stored in the user interface elements to the
object this adapter is representing (breakpoint, condition, or
monitor). |
java.lang.String |
descriptor()
Generates a string descriptor of this monitor. |
Monitor |
getMonitor()
Returns the Monitor object this ui adapter represents. |
java.awt.Component |
getUI()
Return a reference to the user interface element that this
adapter uses to graphically represent the breakpoint, condition,
or monitor. |
java.lang.String |
toString()
Returns a description of the command 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, wait, wait, wait |
commandMon
protected CommandMonitor commandMon
- The command monitor.
CommandMonitorUI
public CommandMonitorUI(CommandMonitor cmdmon)
- Constructs a CommandMonitorUI with the given monitor.
- Parameters:
cmdmon
- CommandMonitor object.
commit
public void commit()
- Commit the values stored in the user interface elements to the
object this adapter is representing (breakpoint, condition, or
monitor).
- Specified by:
commit
in interface UIAdapter
descriptor
public java.lang.String descriptor()
- Generates a string descriptor of this monitor.
- Specified by:
descriptor
in interface MonitorUI
- Returns:
- description.
getMonitor
public Monitor getMonitor()
- Returns the Monitor object this ui adapter represents.
- Specified by:
getMonitor
in interface MonitorUI
- Returns:
- Monitor object.
getUI
public java.awt.Component getUI()
- Return a reference to the user interface element that this
adapter uses to graphically represent the breakpoint, condition,
or monitor. This may be a container that has several user
interface elements inside it.
- Specified by:
getUI
in interface UIAdapter
- Returns:
- user interface ocmponent.
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.
- Specified by:
undo
in interface UIAdapter
- Throws:
UnsupportedOperationException
- Thrown if this operation is not supported.
toString
public java.lang.String toString()
- Returns a description of the command monitor.
- Overrides:
toString
in class java.lang.Object
- Returns:
- Command monitor descriptor.