com.silvermindsoftware.hitch.binding
Class BindingFactory

java.lang.Object
  extended by com.silvermindsoftware.hitch.binding.BindingFactory

public class BindingFactory
extends Object

This class is used for creating bindings.

Author:
Stefan Wismer (SWI)
File-location:
BindingFactory
Last check-in date:
2009-08-04 13:59:45 +0200 (Di, 04. Aug 2009) by swismer for revision 3873

Constructor Summary
protected BindingFactory()
          The hidden constructor.
 
Method Summary
 org.jdesktop.beansbinding.AutoBinding createBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy strategy, Object modelObject, String modelProperty, JComponent formComponent)
           
 org.jdesktop.beansbinding.BindingListener createValidationListener(JComponent formComponent)
           
static DefaultProperties getDefaultProperties()
           
static BindingFactory getInstance()
           
 void register(JComponent component, BindingCreator binding)
          Registers a custom binding strategy.
 void registerValidationResponder(JComponent component, ValidationResponder responder)
          Registers a custom validation responder.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BindingFactory

protected BindingFactory()
The hidden constructor.

Method Detail

getInstance

public static BindingFactory getInstance()
Returns:
an instance of this class

getDefaultProperties

public static DefaultProperties getDefaultProperties()
Returns:
the default properties

register

public void register(JComponent component,
                     BindingCreator binding)
Registers a custom binding strategy.

Parameters:
component - the component to bind
binding - the custom binding

registerValidationResponder

public void registerValidationResponder(JComponent component,
                                        ValidationResponder responder)
Registers a custom validation responder.

Parameters:
component - the bound component
responder - the custom validation responder

createBinding

public org.jdesktop.beansbinding.AutoBinding createBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy strategy,
                                                           Object modelObject,
                                                           String modelProperty,
                                                           JComponent formComponent)
Parameters:
strategy - the binding update strategy
modelObject - the instance of the model
modelProperty - the property of the model to bound
formComponent - the form component to bound to
Returns:
a AutoBinding object representing the binding

createValidationListener

public org.jdesktop.beansbinding.BindingListener createValidationListener(JComponent formComponent)
Parameters:
formComponent - the GUI component
Returns:
a BindingListener that performs the validation


Copyright © 2005-2011 ELCA. All Rights Reserved.