|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EnvironmentObject
An object in an environment. Should conform to JavaBean conventions, to permit listener GUIs or debuggers to trace events. i.e.
The easiest way to support listeners is via the PropertyChangeSupport class from the java.beans package. Or, just subclass the SimpleEnvironmentObject class
The environment should take care of adding property change listeners for you, so when creating new objects, the only thing you need to worry about is properly sending a notification via the changeSupport.
Method Summary | |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener theListener)
Registers a property change listener to monitor this object. |
java.lang.Boolean |
isAlive()
Indicates whether this object is still active in the environment. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener theListener)
Unregisters a property change listener from monitoring this object. |
void |
setAlive(java.lang.Boolean isAlive)
Setter for isAlive |
Method Detail |
---|
void addPropertyChangeListener(java.beans.PropertyChangeListener theListener)
theListener
- the listener to registervoid removePropertyChangeListener(java.beans.PropertyChangeListener theListener)
theListener
- the listener to removejava.lang.Boolean isAlive()
void setAlive(java.lang.Boolean isAlive)
isAlive
- whether the object is still active
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |