EGF Engine
Release 0.1.0

org.eclipse.egf.common.ui.helper
Class DataBindingHelper

java.lang.Object
  extended by org.eclipse.egf.common.ui.helper.DataBindingHelper

public class DataBindingHelper
extends Object

Data binding helper.


Constructor Summary
DataBindingHelper()
           
 
Method Summary
static void bindControlSelectionToProperty(Control control_p, String propertyName_p, Object propertyHolder_p, IValueChangeListener listener_p)
          Create data binding between given control selection state and named property of given object (referred to as the property holder).
static void bindTextToProperty(Control control_p, String propertyName_p, Object propertyHolder_p, IValueChangeListener listener_p)
          Create data binding between given control text attribute and named property of given object (referred to as the property holder).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataBindingHelper

public DataBindingHelper()
Method Detail

bindTextToProperty

public static void bindTextToProperty(Control control_p,
                                      String propertyName_p,
                                      Object propertyHolder_p,
                                      IValueChangeListener listener_p)
Create data binding between given control text attribute and named property of given object (referred to as the property holder).
Also register given value change listener for changes on named property.

Parameters:
control_p -
propertyName_p -
propertyHolder_p -
listener_p -

bindControlSelectionToProperty

public static void bindControlSelectionToProperty(Control control_p,
                                                  String propertyName_p,
                                                  Object propertyHolder_p,
                                                  IValueChangeListener listener_p)
Create data binding between given control selection state and named property of given object (referred to as the property holder).
Also register given value change listener for changes on named property.

Parameters:
control_p -
propertyName_p -
propertyHolder_p -
listener_p -

EGF Engine
Release 0.1.0

Copyright (c) Thales Corporate Services S.A.S, 2009.

This page is made available under license. For full details see the LEGAL in the documentation book that contains this page.