Hermes.class);
for (Iterator iter = config.getWatch().iterator(); iter.hasNext();)
{
final WatchConfig wConfig = (WatchConfig) iter.next();
final Property watchIdProperty = new PropertyImpl(wConfig.getId(), WATCH_INFO + " for " + wConfig.getId());
final Property watchFrequenceProperty = new PropertyImpl(WATCH_UPDATE_FREQUENCY, new Long(wConfig.getUpdateFrequency()), WATCH_UPDATE_FREQUENCY_INFO,
Long.class);
final Property watchAgeAlertProperty = new PropertyImpl(WATCH_AGE_ALERT, new Long(wConfig.getDefaultAgeAlertThreshold()), WATCH_AGE_ALERT_INFO,
Long.class);
final Property watchDepthAlertProperty = new PropertyImpl(WATCH_DEPTH_ALERT, new Integer(wConfig.getDefaultDepthAlertThreshold()),
WATCH_DEPTH_ALERT_INFO, Integer.class);
final Property showAgeProperty = new PropertyImpl(SHOW_AGE, new Boolean(wConfig.isShowAge()), SHOW_AGE_INFO, Boolean.class);
watchIdProperty.addChild(watchFrequenceProperty);
watchIdProperty.addChild(watchAgeAlertProperty);
watchIdProperty.addChild(watchDepthAlertProperty);
watchIdProperty.addChild(showAgeProperty);
watchProperty.addChild(watchIdProperty);
//
// Much easier to create an object here to set the values into the
// model.
watchSetters.add(new Runnable()
{
public void run()
{
if (showAgeProperty.getValue() != null)
{
wConfig.setShowAge(((Boolean) showAgeProperty.getValue()).booleanValue());
}
if (watchAgeAlertProperty.getValue() != null)
{
if (watchAgeAlertProperty.getValue() instanceof Long)