if (this != activeInstance.get()) {
throw new IllegalStateException(
"Attempt to update state of application user interface outside of user interface thread.");
}
ServerUpdateManager serverUpdateManager = updateManager.getServerUpdateManager();
if (Component.CHILDREN_CHANGED_PROPERTY.equals(propertyName)) {
if (newValue == null) {
serverUpdateManager.processComponentRemove(parent, (Component) oldValue);
} else {
serverUpdateManager.processComponentAdd(parent, (Component) newValue);
}
} else if (Component.PROPERTY_LAYOUT_DATA.equals(propertyName)) {
serverUpdateManager.processComponentLayoutDataUpdate(parent);
} else if (Component.VISIBLE_CHANGED_PROPERTY.equals(propertyName)) {
if (oldValue != null && newValue != null && oldValue.equals(newValue)) {
return;
}
serverUpdateManager.processComponentVisibilityUpdate(parent);
} else {
if (oldValue != null && newValue != null && oldValue.equals(newValue)) {
return;
}
if (parent instanceof ModalSupport && ModalSupport.MODAL_CHANGED_PROPERTY.equals(propertyName)) {
setModal(parent, ((Boolean) newValue).booleanValue());
}
serverUpdateManager.processComponentPropertyUpdate(parent, propertyName, oldValue, newValue);
}
}