final MyDateBox dateBox = cast();
if (update.containsKey(PROPERTY.VALUE)) {
dateBox.getTextBox().setText(update.getString(PROPERTY.VALUE));
} else if (update.containsKey(PROPERTY.DATE_FORMAT)) {
final DefaultFormat format = new DefaultFormat(DateTimeFormat.getFormat(update.getString(PROPERTY.DATE_FORMAT)));
dateBox.setFormat(format);
} else if (update.containsKey(PROPERTY.DATE_FORMAT_PATTERN)) {
dateBox.setFormat(new DefaultFormat(DateTimeFormat.getFormat(update.getString(PROPERTY.DATE_FORMAT_PATTERN))));
} else if (update.containsKey(PROPERTY.ENABLED)) {
dateBox.setEnabled(update.getBoolean(PROPERTY.ENABLED));
} else if (update.containsKey(PROPERTY.MONTH)) {
dateBox.setDefaultMonth(update.getString(PROPERTY.MONTH));
} else {