com.bluemarsh.jswat.breakpoint.ui
Class ValueConditionUI

java.lang.Object
  |
  +--com.bluemarsh.jswat.breakpoint.ui.ValueConditionUI
All Implemented Interfaces:
ConditionUI, UIAdapter

public class ValueConditionUI
extends java.lang.Object
implements ConditionUI

Class ValueConditionUI provides the interface adapter for the ValueCondition.

Author:
Nathan Fiedler

Field Summary
protected  ValueCondition valueCond
          The value condition.
 
Constructor Summary
ValueConditionUI(ValueCondition cond)
          Constructs a ValueConditionUI with the given condition.
 
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 condition.
 Condition getCondition()
          Returns the Condition 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 value condition.
 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
 

Field Detail

valueCond

protected ValueCondition valueCond
The value condition.
Constructor Detail

ValueConditionUI

public ValueConditionUI(ValueCondition cond)
Constructs a ValueConditionUI with the given condition.
Parameters:
cond - ValueCondition object.
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).
Specified by:
commit in interface UIAdapter

descriptor

public java.lang.String descriptor()
Generates a string descriptor of this condition.
Specified by:
descriptor in interface ConditionUI
Returns:
description.

getCondition

public Condition getCondition()
Returns the Condition object this ui adapter represents.
Specified by:
getCondition in interface ConditionUI
Returns:
Condition 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 value condition.
Overrides:
toString in class java.lang.Object
Returns:
Value condition descriptor.