net.xoetrope.xui.data
Class XDataBindingFactory

java.lang.Object
  extended by net.xoetrope.xui.data.XDataBindingFactory
Direct Known Subclasses:
SwtDataBindingFactory, XBasicDataBindingFactory, XOptionalBindingFactory, XRegisteredDataBindingFactory

public abstract class XDataBindingFactory
extends java.lang.Object

A factory for construction of data bindings

Copyright (c) Xoetrope Ltd., 1998-2003

$Revision: 2.3 $


Field Summary
protected  XProject currentProject
           
protected  XAttributeEvaluator evaluator
           
 
Constructor Summary
protected XDataBindingFactory(XProject project)
           
 
Method Summary
abstract  XDataBinding getBinding(PageSupport page, java.lang.Object comp, java.util.Hashtable instanceConfig)
          Try to get a binding factory to construct the binding
protected  java.lang.String getEvaluatedAttribute(PageSupport page, java.lang.String attributeValue)
          Returns evaluated attribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

evaluator

protected XAttributeEvaluator evaluator

currentProject

protected XProject currentProject
Constructor Detail

XDataBindingFactory

protected XDataBindingFactory(XProject project)
Method Detail

getEvaluatedAttribute

protected java.lang.String getEvaluatedAttribute(PageSupport page,
                                                 java.lang.String attributeValue)
Returns evaluated attribute

Parameters:
page - the page that owns the binding and supplies the methods referenced in the evaluated attributes
attributeValue - name of the attribute to retrieve and evaluate
Returns:
evaluated attribute

getBinding

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

Parameters:
page - the page that will own the binding
model - the source data model
instanceConfig - the XML element defining the binding
Returns:
the new binding if one could be constructed