use of org.eclipse.scout.rt.ui.html.json.JsonResponse in project scout.rt by eclipse.
the class JsonFormField method handleModelPropertyChange.
@Override
protected void handleModelPropertyChange(PropertyChangeEvent event) {
// [Similar code exist in JsonAction]
if (IFormField.PROP_VISIBLE.equals(event.getPropertyName()) && !getModel().isVisibleGranted()) {
JsonResponse response = getUiSession().currentJsonResponse();
if (response.containsAdapter(this) && response.isWritable()) {
dispose();
return;
}
LOG.warn("Setting visibleGranted=false has no effect, because JsonAdapter {} ({}) is already sent to the UI.", getId(), getModel());
}
super.handleModelPropertyChange(event);
}
Aggregations