net.xoetrope.optional.data
Class XOptionalBindingFactory

java.lang.Object
  extended by net.xoetrope.xui.data.XDataBindingFactory
      extended by net.xoetrope.optional.data.XOptionalBindingFactory

public class XOptionalBindingFactory
extends XDataBindingFactory

A factory for bindings from this package. This binding factory is implicitly registered as part of loading the XOptionalDataSource. The XuiBuilder class then uses the factory to create bindings for the supported component types.

Copyright Xoetrope Ltd. 2003-2004

$Revision: 2.8 $ License: see license.txt


Field Summary
 
Fields inherited from class net.xoetrope.xui.data.XDataBindingFactory
currentProject, evaluator
 
Method Summary
 XDataBinding getBinding(PageSupport page, java.lang.Object comp, java.util.Hashtable instanceConfig)
          Try to get a binding factory to construct the binding
static void register(XProject project)
          Registe an instance of this binding factory.
 
Methods inherited from class net.xoetrope.xui.data.XDataBindingFactory
getEvaluatedAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

register

public static void register(XProject project)
Registe an instance of this binding factory.


getBinding

public XDataBinding getBinding(PageSupport page,
                               java.lang.Object comp,
                               java.util.Hashtable instanceConfig)
Try to get a binding factory to construct the binding

Specified by:
getBinding in class XDataBindingFactory
Parameters:
page - the page that will own the binding
comp - the target component
instanceConfig - the attributes of the binding instance
Returns:
the new binding if one could be constructed