Search in sources :

Example 26 with IForm

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);
    }
}
Also used : IForm(org.eclipse.scout.rt.client.ui.form.IForm)

Example 27 with IForm

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();
    }
}
Also used : IForm(org.eclipse.scout.rt.client.ui.form.IForm)

Example 28 with IForm

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();
    }
}
Also used : FormListener(org.eclipse.scout.rt.client.ui.form.FormListener) FormEvent(org.eclipse.scout.rt.client.ui.form.FormEvent) IForm(org.eclipse.scout.rt.client.ui.form.IForm)

Example 29 with IForm

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);
    }
}
Also used : IForm(org.eclipse.scout.rt.client.ui.form.IForm)

Example 30 with IForm

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();
}
Also used : IForm(org.eclipse.scout.rt.client.ui.form.IForm)

Aggregations

IForm (org.eclipse.scout.rt.client.ui.form.IForm)38 Test (org.junit.Test)8 ArrayList (java.util.ArrayList)7 IOutline (org.eclipse.scout.rt.client.ui.desktop.outline.IOutline)5 PlatformError (org.eclipse.scout.rt.platform.exception.PlatformError)4 IDisplayParent (org.eclipse.scout.rt.client.ui.IDisplayParent)3 IMenu (org.eclipse.scout.rt.client.ui.action.menu.IMenu)3 ITable (org.eclipse.scout.rt.client.ui.basic.table.ITable)3 IDesktop (org.eclipse.scout.rt.client.ui.desktop.IDesktop)3 JSONObject (org.json.JSONObject)3 List (java.util.List)2 ModelContext (org.eclipse.scout.rt.client.ModelContextProxy.ModelContext)2 DeepLinkException (org.eclipse.scout.rt.client.deeplink.DeepLinkException)2 IFileChooser (org.eclipse.scout.rt.client.ui.basic.filechooser.IFileChooser)2 ISearchForm (org.eclipse.scout.rt.client.ui.desktop.outline.pages.ISearchForm)2 IGroupBox (org.eclipse.scout.rt.client.ui.form.fields.groupbox.IGroupBox)2 ITabBox (org.eclipse.scout.rt.client.ui.form.fields.tabbox.ITabBox)2 ProcessingException (org.eclipse.scout.rt.platform.exception.ProcessingException)2 IRunnable (org.eclipse.scout.rt.platform.util.concurrent.IRunnable)2 PropertyChangeEvent (java.beans.PropertyChangeEvent)1