// only interested in ComfortTemperature
if (evt.getPropertyName().equals("ComfortTemperature"))
{
// get the proposed temperature
Double d = (Double)evt.getNewValue();
// veto a temperature under 0 degrees Celsius
if (d.doubleValue() < 0.0)
{
throw new PropertyVetoException("Invalid Comfort Temperature", evt);
}
}