Examples of Binder


Examples of org.springframework.richclient.form.binding.Binder

            }
        }
        else if (binder.containsKey("binderRef"))
        {
            String binderID = (String) binder.get("binderRef");
            Binder binderBean = (Binder) getApplicationContext().getBean(binderID);
            registerBinderForPropertyName(objectClass, propertyName, binderBean);
        }
        else
            throw new IllegalArgumentException("binder or binderRef is required");
    }
View Full Code Here

Examples of org.springframework.richclient.form.binding.Binder

        return bindControl(control, formPropertyPath, Collections.EMPTY_MAP);
    }
   
    public Binding createBinding(String formPropertyPath, Map context) {
        Assert.notNull(context, "Context must not be null");
        Binder binder = getBinderSelectionStrategy().selectBinder(formModel, formPropertyPath);
        Binding binding = binder.bind(formModel, formPropertyPath, context);
        interceptBinding(binding);
        return binding;
    }
View Full Code Here

Examples of org.springframework.richclient.form.binding.Binder

        return binding;
    }

    public Binding createBinding(Class controlType, String formPropertyPath, Map context) {
        Assert.notNull(context, "Context must not be null");
        Binder binder = getBinderSelectionStrategy().selectBinder(controlType, formModel, formPropertyPath);
        Binding binding =  binder.bind(formModel, formPropertyPath, context);
        interceptBinding(binding);
        return binding;
    }
View Full Code Here

Examples of org.springframework.richclient.form.binding.Binder

        return binding;
    }

    public Binding bindControl(JComponent control, String formPropertyPath, Map context) {
        Assert.notNull(context, "Context must not be null");
        Binder binder = getBinderSelectionStrategy().selectBinder(control.getClass(), formModel, formPropertyPath);
        Binding binding =  binder.bind(control, formModel, formPropertyPath, context);
        interceptBinding(binding);
        return binding;
    }
View Full Code Here

Examples of org.springframework.richclient.form.binding.Binder

     * @return Specific binding
     */
    public Binding createBinding(String propertyPath, String binderId, Map context)
    {
        Assert.notNull(context, "Context must not be null");
        Binder binder = ((SwingBinderSelectionStrategy)getBinderSelectionStrategy()).getIdBoundBinder(binderId);
        Binding binding = binder.bind(getFormModel(), propertyPath, context);
        interceptBinding(binding);
        return binding;
    }
View Full Code Here

Examples of org.vaadin.teemu.clara.binder.Binder

     * @throws BinderException
     *             if an error is encountered during the binding.
     */
    public static Component create(InputStream xml, Object controller,
            AttributeFilter... attributeFilters) {
        Binder binder = new Binder();

        // Inflate the XML to a component (tree).
        LayoutInflater inflater = new LayoutInflater();
        if (attributeFilters != null) {
            for (AttributeFilter filter : attributeFilters) {
                inflater.addAttributeFilter(filter);
            }
        }
        Component result = inflater.inflate(xml,
                binder.getAlreadyAssignedFields(controller));

        // Bind to controller.
        binder.bind(result, controller);
        return result;
    }
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.