net.sourceforge.jfacefactories.binders
Class DateTimeBinder

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

public final class DateTimeBinder
extends java.lang.Object

Methods for databinding DateTime controls.

Since:
0.1
Author:
MikeE

Method Summary
 void bind(java.lang.Object bean, java.lang.String propertyName, org.eclipse.swt.widgets.DateTime control)
          Binds the passed DateTime control to the passed Date 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.DateTime control)
Binds the passed DateTime control to the passed Date property on the passed bean.
Listens for change events on any modification of the control and applies neither converters nor validators.
Notes: the binding picks up whether this is for dates or times from the DateTime's style

Parameters:
bean - - cannot be null
propertyName - - cannot be null and must represent a Date 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: