org.formaria.aria.data
Class DataBindingFactory

java.lang.Object
  extended by org.formaria.aria.data.DataBindingFactory
Direct Known Subclasses:
BasicDataBindingFactory, OptionalBindingFactory, RegisteredDataBindingFactory, SwtDataBindingFactory

public abstract class DataBindingFactory
extends java.lang.Object

A factory for construction of data bindings

Copyright (c) Formaria Ltd., 2008

$Revision: 2.3 $


Field Summary
protected  Project currentProject
           
protected  AttributeEvaluator evaluator
           
 
Constructor Summary
protected DataBindingFactory(Project project)
           
 
Method Summary
abstract  DataBinding 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 AttributeEvaluator evaluator

currentProject

protected Project currentProject
Constructor Detail

DataBindingFactory

protected DataBindingFactory(Project 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 DataBinding 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