public class MonitoredStatus extends java.lang.Object
Any object interesting in being notified about changes in these properties
should register itself as a PropertyChangeListener
.
Modifier and Type | Class and Description |
---|---|
class |
MonitoredStatus.PropertyTimer
For automatic update of a property in this status object.
|
static class |
MonitoredStatus.State
Convenience attributes for a "state" property
|
Constructor and Description |
---|
MonitoredStatus() |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds a property change listener to this monitored status.
|
java.lang.Object |
getProperty(java.lang.String propName)
Gets the current value of a monitored property.
|
java.util.Set<java.lang.String> |
getPropertyNames()
Gets the names of the properties of this monitored object.
|
MonitoredStatus.PropertyTimer |
getPropertyTimer()
Gets the property timer.
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes a property change listener from this monitored status.
|
void |
setProperty(java.lang.String propName,
java.lang.Object propValue)
Sets the value of a monitored property.
|
public MonitoredStatus()
public java.util.Set<java.lang.String> getPropertyNames()
public void setProperty(java.lang.String propName, java.lang.Object propValue)
propName
- property namepropValue
- the valuepublic java.lang.Object getProperty(java.lang.String propName)
propName
- public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
public MonitoredStatus.PropertyTimer getPropertyTimer()