blob: b69f7f8551fe0e33eb8d9e2ff52cc85586432007 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2006, 2010 Soyatec (http://www.soyatec.com) and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Soyatec - initial API and implementation
*******************************************************************************/
package org.eclipse.xwt.core;
import org.eclipse.xwt.databinding.IBindingContext;
/**
*
* @author yyang (yves.yang@soyatec.com)
*/
public interface IDynamicBinding extends IBinding {
Object createBoundSource();
void setControl(Object control);
Object getControl();
String getName();
void setHost(Object control);
Object getHost();
void setType(String type);
String getType();
boolean isSourceControl();
/**
* Returns the {@link BindingContext} associated with this binding
*
* @return the {@link BindingContext}
*/
IBindingContext getBindingContext();
/**
* Sets the {@link BindingContext} this binding is associated with
*
* @param dataBindingContext
*/
void setBindingContext(IBindingContext dataBindingContext);
}