net.sourceforge.jfacefactories.binders
Class EnableBinder

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

public final class EnableBinder
extends java.lang.Object

Methods for binding enablement of controls to bean properties and other controls.

Since:
0.1
Author:
MikeE

Method Summary
 void bind(org.eclipse.swt.widgets.Control master, org.eclipse.swt.widgets.Control... slaves)
          Ensures the enablement of the passed 'slaves' equals that of the passed 'master'.
 void bind(java.lang.Object bean, java.lang.String propertyName, org.eclipse.swt.widgets.Control... controls)
          Sets the enablement of the passed control(s) based on the value of the passed boolean 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(org.eclipse.swt.widgets.Control master,
                       org.eclipse.swt.widgets.Control... slaves)
Ensures the enablement of the passed 'slaves' equals that of the passed 'master'.

Parameters:
master -
slaves -

bind

public final void bind(java.lang.Object bean,
                       java.lang.String propertyName,
                       org.eclipse.swt.widgets.Control... controls)
Sets the enablement of the passed control(s) based on the value of the passed boolean property on the passed bean.

Parameters:
bean - - cannot be null
propertyName - - must refer to a boolean property.
controls - - 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: