Examples of createForm()


Examples of org.apache.click.eclipse.ui.editor.attrs.IAttributeEditor.createForm()

        Object obj = selection.getFirstElement();
        if(obj != null){
          if(obj instanceof IDOMElement){
            IAttributeEditor editor = getAttributeEditor(((IDOMElement)obj).getNodeName());
            if(editor != null){
              currentEditor = editor.createForm(toolkit, right, (IDOMElement)obj);
            }
          }
        }
        right.layout();
      }
View Full Code Here

Examples of org.apache.cocoon.forms.FormManager.createForm()

        Source src = null;
        try {
            formMgr = (FormManager)getComponent(FormManager.ROLE);
            resolver = (SourceResolver)getComponent(SourceResolver.ROLE);
            src = resolver.resolveURI(uri);
            this.form = formMgr.createForm(src);
            this.binding = null;
            // this.validator = null;
            // TODO : do we keep this ?
            // this.formWidget = new Widget(this.form); could not create instance
        } catch (Exception e) {
View Full Code Here

Examples of org.apache.cocoon.forms.FormManager.createForm()

     */
    public FormInstance(Element formDefinition) {
        FormManager formMgr = null;
        try {
            formMgr = (FormManager)getComponent(FormManager.ROLE);
            this.form = formMgr.createForm(formDefinition);
            this.binding = null;
        } catch (Exception e) {
            throw new CascadingRuntimeException("Could not create form instance", e);
        } finally {
            releaseComponent(formMgr);
View Full Code Here

Examples of org.apache.cocoon.forms.FormManager.createForm()

        Document doc = parser.parse(obj.getClass().getResource(resource).toExternalForm());

        // Create the form
        FormManager formManager = (FormManager)manager.lookup(FormManager.ROLE);
        try {
            return formManager.createForm(doc.getDocumentElement());
        } finally {
            manager.release(formManager);
        }
    }
}
View Full Code Here

Examples of org.apache.cocoon.woody.FormManager.createForm()

            formManager = (FormManager) this.serviceManager.lookup(FormManager.ROLE);
            binderManager = (BindingManager) this.serviceManager.lookup(BindingManager.ROLE);
            resolver = (SourceResolver) this.serviceManager.lookup(SourceResolver.ROLE);

            formSource = resolver.resolveURI(formURI);
            this.form = formManager.createForm(formSource);

            bindSource = resolver.resolveURI(bindURI);
            this.binding = binderManager.createBinding(bindSource);

            documentSource = resolver.resolveURI(this.backendURI);
View Full Code Here

Examples of org.eclipse.ui.forms.widgets.FormToolkit.createForm()

        contentSection.setLayoutData(data);
    }

    private void createAssetSelectionCriteriaSection(Composite parent) {
        FormToolkit formToolkit =getFormToolkit(parent);
        Form form = formToolkit.createForm(parent);
        GridLayout layout = new GridLayout();
        form.getBody().setLayout(layout);

        GridData data = new GridData(GridData.FILL_HORIZONTAL);
        form.setLayoutData(data);
View Full Code Here

Examples of org.eclipse.ui.forms.widgets.FormToolkit.createForm()

        selectionCriteriaSection.setLayoutData(data);
    }

    private void createAlertsActionsSection(Composite parent) {
        FormToolkit formToolkit = getFormToolkit(parent);
        Form form = formToolkit.createForm(parent);
        GridLayout layout = new GridLayout();
        form.getBody().setLayout(layout);

        GridData data = new GridData(GridData.FILL_HORIZONTAL);
        form.setLayoutData(data);
View Full Code Here

Examples of org.eclipse.ui.forms.widgets.FormToolkit.createForm()

        alertsActionsSection.setLayoutData(data);
    }

    private void createAssetsSection(Composite parent) {
        FormToolkit formToolkit = getFormToolkit(parent);
        Form form = formToolkit.createForm(parent);
        GridLayout layout = new GridLayout();
        form.getBody().setLayout(layout);

        GridData data = new GridData(GridData.FILL_BOTH);
        form.setLayoutData(data);
View Full Code Here

Examples of org.eclipse.ui.forms.widgets.FormToolkit.createForm()

        assetsSection.setLayoutData(data);
    }

    private void createAssetAttributesSection(Composite parent) {
        FormToolkit formToolkit = getFormToolkit(parent);
        Form form = formToolkit.createForm(parent);
        GridLayout layout = new GridLayout();
        form.getBody().setLayout(layout);

        GridData data = new GridData(GridData.FILL_HORIZONTAL);
        form.setLayoutData(data);
View Full Code Here

Examples of org.eclipse.ui.forms.widgets.FormToolkit.createForm()

        }
    }

    private void createAssetSelectionCriteriaSection(Composite parent) {
        FormToolkit formToolkit = getFormToolkit(parent.getShell().getDisplay());
        Form form = formToolkit.createForm(parent);
        GridLayout layout = new GridLayout();
        form.getBody().setLayout(layout);

        GridData data = new GridData(GridData.FILL_HORIZONTAL);
        form.setLayoutData(data);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.