KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jface > internal > databinding > provisional > factories > IBindingFactory


1 /*******************************************************************************
2  * Copyright (c) 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  ******************************************************************************/

11
12 package org.eclipse.jface.internal.databinding.provisional.factories;
13
14 import org.eclipse.jface.internal.databinding.provisional.BindSpec;
15 import org.eclipse.jface.internal.databinding.provisional.Binding;
16 import org.eclipse.jface.internal.databinding.provisional.DataBindingContext;
17 import org.eclipse.jface.internal.databinding.provisional.observable.IObservable;
18
19 /**
20  * @since 1.0
21  *
22  */

23 public interface IBindingFactory {
24
25     /**
26      * Creates a new binding between the given observable objects, using
27      * additional information given in the bind spec. Returns null if this
28      * factory cannot create bindings between the given observables.
29      * @param dataBindingContext TODO
30      * @param target
31      * @param model
32      * @param bindSpec the bind spec, or null
33      *
34      * @return a new binding, or null
35      */

36     public Binding createBinding(DataBindingContext dataBindingContext, IObservable target,
37             IObservable model, BindSpec bindSpec);
38
39 }
40
Popular Tags