use of org.eclipse.scout.rt.client.ui.form.IForm in project scout.rt by eclipse.
the class AbstractFormField method calculateVisibleInternal.
/**
* Do not use this internal method
*/
protected void calculateVisibleInternal() {
boolean changed = propertySupport.setPropertyBool(PROP_VISIBLE, NamedBitMaskHelper.allBitsSet(m_visible) && interceptCalculateVisible());
if (!changed) {
return;
}
IForm form = getForm();
if (form != null) {
form.structureChanged(this);
}
}
use of org.eclipse.scout.rt.client.ui.form.IForm in project scout.rt by eclipse.
the class AbstractFormTableControl method disposeInternal.
@Override
public void disposeInternal() {
super.disposeInternal();
IForm form = getForm();
if (form != null && !form.isFormClosed()) {
form.doClose();
}
}
use of org.eclipse.scout.rt.client.ui.form.IForm in project scout.rt by eclipse.
the class AbstractFormTableControl method ensureFormCreated.
public void ensureFormCreated() {
if (getForm() != null) {
return;
}
IForm form = createForm();
if (form != null) {
form.addFormListener(new FormListener() {
@Override
public void formChanged(FormEvent e) {
if (e.getType() == FormEvent.TYPE_CLOSED) {
setSelected(false);
setForm(null);
}
}
});
setForm(form);
decorateForm();
interceptInitForm();
}
}
use of org.eclipse.scout.rt.client.ui.form.IForm in project scout.rt by eclipse.
the class JsonWrappedFormField method attachModel.
@Override
protected void attachModel() {
super.attachModel();
final IForm innerForm = getModel().getInnerForm();
if (innerForm != null) {
innerForm.addFormListener(m_innerFormListener);
}
}
use of org.eclipse.scout.rt.client.ui.form.IForm in project scout.rt by eclipse.
the class JsonWrappedFormField method detachModel.
@Override
protected void detachModel() {
final IForm innerForm = getModel().getInnerForm();
if (innerForm != null) {
innerForm.removeFormListener(m_innerFormListener);
}
super.detachModel();
}
Aggregations