net.sourceforge.jfacefactories.binders
Class Binders

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

public final class Binders
extends java.lang.Object

Creates factories for data bound controls.
All methods must be called in the UI thread.

Since:
0.1
Author:
MikeE

Method Summary
static org.eclipse.core.databinding.DataBindingContext createContext()
          Creates a new databinding context.
static ButtonBinder getButtonBinder()
          Creates a Button binder using the default databinding context
static ButtonBinder getButtonBinder(org.eclipse.core.databinding.DataBindingContext context)
          Creates a Button binder using the passed context.
static DateTimeBinder getDateTimeBinder()
          Creates a DateTime binder using the default databinding context
static DateTimeBinder getDateTimeBinder(org.eclipse.core.databinding.DataBindingContext context)
          Creates a DateTime binder using the passed context.
static org.eclipse.core.databinding.DataBindingContext getDefaultContext()
          Accessor to the default databinding context used by all methods where the client does not specify the context.
static EnableBinder getEnableBinder()
          Creates an enablement binder using the default databinding context
static EnableBinder getEnableBinder(org.eclipse.core.databinding.DataBindingContext context)
          Creates an enablement binder using the passed context.
static ListBinder getListBinder()
          Creates a list binder using the default databinding context
static ListBinder getListBinder(org.eclipse.core.databinding.DataBindingContext context)
          Creates a list binder using the passed context.
static TextBinder getTextBinder()
          Creates a Text binder using the default databinding context
static TextBinder getTextBinder(org.eclipse.core.databinding.DataBindingContext context)
          Creates a Text binder using the passed context.
static void setExceptionHandler(IExceptionHandler handler)
          Sets the exception handler for binding operations.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setExceptionHandler

public static final void setExceptionHandler(IExceptionHandler handler)
Sets the exception handler for binding operations.
If null is passed reset to the default exception handler that simply throws a runtime exception and/or assert out.
Note that this affects only subsequent calls to getXXXBinder()

Parameters:
handler -

createContext

public static final org.eclipse.core.databinding.DataBindingContext createContext()
Creates a new databinding context.
This must be called in the UI thread.

Returns:

getDefaultContext

public static final org.eclipse.core.databinding.DataBindingContext getDefaultContext()
Accessor to the default databinding context used by all methods where the client does not specify the context.

Returns:

getButtonBinder

public static final ButtonBinder getButtonBinder(org.eclipse.core.databinding.DataBindingContext context)
Creates a Button binder using the passed context.

Parameters:
context -
Returns:

getButtonBinder

public static final ButtonBinder getButtonBinder()
Creates a Button binder using the default databinding context

Returns:

getTextBinder

public static final TextBinder getTextBinder(org.eclipse.core.databinding.DataBindingContext context)
Creates a Text binder using the passed context.

Parameters:
context -
Returns:

getTextBinder

public static final TextBinder getTextBinder()
Creates a Text binder using the default databinding context

Returns:

getDateTimeBinder

public static final DateTimeBinder getDateTimeBinder(org.eclipse.core.databinding.DataBindingContext context)
Creates a DateTime binder using the passed context.

Parameters:
context -
Returns:

getDateTimeBinder

public static final DateTimeBinder getDateTimeBinder()
Creates a DateTime binder using the default databinding context

Returns:

getListBinder

public static final ListBinder getListBinder(org.eclipse.core.databinding.DataBindingContext context)
Creates a list binder using the passed context.

Parameters:
context -
Returns:

getListBinder

public static final ListBinder getListBinder()
Creates a list binder using the default databinding context

Returns:

getEnableBinder

public static final EnableBinder getEnableBinder(org.eclipse.core.databinding.DataBindingContext context)
Creates an enablement binder using the passed context.

Parameters:
context -
Returns:

getEnableBinder

public static final EnableBinder getEnableBinder()
Creates an enablement binder using the default databinding context

Returns: