|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.silvermindsoftware.hitch.binding.BindingFactory
public class BindingFactory
This class is used for creating bindings.
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 |
---|
protected BindingFactory()
Method Detail |
---|
public static BindingFactory getInstance()
public static DefaultProperties getDefaultProperties()
public void register(JComponent component, BindingCreator binding)
component
- the component to bindbinding
- the custom bindingpublic void registerValidationResponder(JComponent component, ValidationResponder responder)
component
- the bound componentresponder
- the custom validation responderpublic org.jdesktop.beansbinding.AutoBinding createBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy strategy, Object modelObject, String modelProperty, JComponent formComponent)
strategy
- the binding update strategymodelObject
- the instance of the modelmodelProperty
- the property of the model to boundformComponent
- the form component to bound to
public org.jdesktop.beansbinding.BindingListener createValidationListener(JComponent formComponent)
formComponent
- the GUI component
BindingListener
that performs the
validation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |