net.sourceforge.jfacefactories.binders
Class TextBinder

java.lang.Object
  extended by net.sourceforge.jfacefactories.binders.TextBinder

public final class TextBinder
extends java.lang.Object

Methods for databinding Text controls.

Since:
0.1
Author:
MikeE

Method Summary
 void bind(java.lang.Object bean, java.lang.String propertyName, org.eclipse.swt.widgets.Text control)
          Binds the passed Text control to the passed String property on the passed bean.
protected  org.eclipse.core.databinding.DataBindingContext getContext()
          Accessor to context.
protected  IExceptionHandler getExceptionHandler()
          Accessor to exception handler.
protected  org.eclipse.core.databinding.observable.Realm getRealm()
          Accessor to validation realm.
protected  void runInRealm(java.lang.Runnable runnable)
          Runs the passed runnable in the current validation realm
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

bind

public final void bind(java.lang.Object bean,
                       java.lang.String propertyName,
                       org.eclipse.swt.widgets.Text control)
Binds the passed Text control to the passed String property on the passed bean.
Listens for change events on any modification of the control and applies neither converters nor validators.

Parameters:
bean - - cannot be null
propertyName - - cannot be null and must represent a String property
control - - cannot be null

getContext

protected org.eclipse.core.databinding.DataBindingContext getContext()
Accessor to context.

Returns:

getRealm

protected org.eclipse.core.databinding.observable.Realm getRealm()
Accessor to validation realm.

Returns:

runInRealm

protected void runInRealm(java.lang.Runnable runnable)
Runs the passed runnable in the current validation realm

Parameters:
runnable -

getExceptionHandler

protected IExceptionHandler getExceptionHandler()
Accessor to exception handler.

Returns: