| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.openide.debugger.Watch
Represents one debugger watch. It contains only basic information that can be used by the core of the IDE. For example, the editor can use this object to display tooltips above variable names in the edited text.
It is likely that the real implementation of the watch can offer more functionality to the user--in which case it should expose properties as a JavaBean.
| Field Summary | |
static String | 
PROP_AS_TEXT
Name of the property for the value of the watched expression as a string.  | 
static String | 
PROP_TYPE
Name of the property for the type of the watch value.  | 
static String | 
PROP_VARIABLE_NAME
Name of the property for the watched variable name.  | 
| Constructor Summary | |
Watch()
 | 
|
| Method Summary | |
abstract  void | 
addPropertyChangeListener(PropertyChangeListener l)
Add a property change listener.  | 
abstract  String | 
getAsText()
Get a textual representation of the value.  | 
abstract  String | 
getType()
Get the string representation of the type of the variable.  | 
abstract  String | 
getVariableName()
Get the name of the variable to watch.  | 
abstract  boolean | 
isHidden()
Test whether the watch is hidden.  | 
abstract  void | 
remove()
Remove the watch from the list of all watches in the system.  | 
abstract  void | 
removePropertyChangeListener(PropertyChangeListener l)
Remove a property change listener.  | 
abstract  void | 
setAsText(String value)
Set the value of the watched variable (as text).  | 
abstract  void | 
setVariableName(String name)
Set the variable name to watch.  | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
public static final String PROP_VARIABLE_NAME
public static final String PROP_AS_TEXT
public static final String PROP_TYPE
| Constructor Detail | 
public Watch()
| Method Detail | 
public abstract void remove()
public abstract String getVariableName()
public abstract void setVariableName(String name)
name - string name of the variable to watchpublic abstract String getAsText()
null reference, the returned string will be for example "null".null if the watch is not in scope
public abstract void setAsText(String value)
                        throws DebuggerException
value - text representation of the new valueDebuggerException - if the value cannot be changed, or the
    string does not represent valid value, or the value type cannot reasonably be set as textpublic abstract String getType()
"int")public abstract boolean isHidden()
true if the watch is hiddenDebugger.createWatch(String, boolean)public abstract void addPropertyChangeListener(PropertyChangeListener l)
PROP_VARIABLE_NAME, PROP_AS_TEXT, and PROP_TYPE.l - the listener to addpublic abstract void removePropertyChangeListener(PropertyChangeListener l)
l - the listener to remove
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||