net.sourceforge.jfacefactories.binders
Class ButtonBinder

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

public final class ButtonBinder
extends java.lang.Object

Methods for databinding Button controls.

Since:
0.1
Author:
MikeE

Method Summary
<T extends java.lang.Enum<?>>
void
bind(java.lang.Object bean, java.lang.String propertyName, T enumValue, org.eclipse.swt.widgets.Button control)
          Binds the passed control to a specific enum value so that the button is selected when the passed property of the passed bean matches this enum value.
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 <T extends java.lang.Enum<?>> void bind(java.lang.Object bean,
                                               java.lang.String propertyName,
                                               T enumValue,
                                               org.eclipse.swt.widgets.Button control)
Binds the passed control to a specific enum value so that the button is selected when the passed property of the passed bean matches this enum value.
The button must have style SWT.CHECK or SWT.RADIO and the passed property must match the passed enum value.

Type Parameters:
T -
Parameters:
bean -
propertyName -
enumValue -
control -

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: