|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.silvermindsoftware.hitch.BinderImpl
public class BinderImpl
This class is the default implementation of the binder.
Field Summary | |
---|---|
protected Set<org.jdesktop.beansbinding.BindingGroup> |
m_bindings
The managed bindings. |
Method Summary | |
---|---|
org.jdesktop.beansbinding.BindingGroup |
addAutoBinding(Container container,
boolean performValidate,
String... modelId)
|
org.jdesktop.beansbinding.AutoBinding |
addAutoBinding(Container container,
JComponent component,
BindingCreator creator,
boolean performValidate)
Bind a component to a model using a specific binding creator. |
org.jdesktop.beansbinding.BindingGroup |
addAutoBinding(Container container,
String... modelId)
Add all bindings that can be derived from the binding annotations. |
org.jdesktop.beansbinding.AutoBinding |
addManualBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy strategy,
Object model,
String property,
JComponent component,
boolean performValidate)
Bind a component to a model using the standard binding creator. |
org.jdesktop.beansbinding.AutoBinding |
addManualBinding(org.jdesktop.beansbinding.AutoBinding binding)
Bind a component to a model completely manually. |
org.jdesktop.beansbinding.AutoBinding |
addManualBinding(org.jdesktop.beansbinding.AutoBinding binding,
boolean performValidate)
Bind a component to a model completely manually. |
org.jdesktop.beansbinding.AutoBinding |
addManualBinding(Object model,
String property,
JComponent component,
BindingCreator creator,
boolean performValidate)
Bind a component to a model using a specific binding creator. |
void |
addValidationResponder(org.jdesktop.beansbinding.AutoBinding binding,
ValidationResponder responder)
Add a custom validation responder to a binding. |
void |
addValidationResponder(org.jdesktop.beansbinding.BindingGroup group,
ValidationResponder responder)
Add a custom validation responder to a binding group. |
void |
bindAll()
Bind all managed bindings. |
org.jdesktop.beansbinding.BindingGroup |
find(Object model,
String property,
JComponent component)
Find a specific binding. |
void |
remove(org.jdesktop.beansbinding.AutoBinding binding)
Remove a binding. |
void |
remove(org.jdesktop.beansbinding.BindingGroup binding)
Remove a binding group. |
void |
removeAll()
Remove all bindings. |
protected boolean |
skipModel(String modelId,
String[] modelIdList)
Check if update should occur for particular model objects. |
void |
unbindAll()
Unbind all managed bindings. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Set<org.jdesktop.beansbinding.BindingGroup> m_bindings
Method Detail |
---|
public org.jdesktop.beansbinding.BindingGroup addAutoBinding(Container container, String... modelId)
addAutoBinding
in interface Binder
container
- the GUI component container to bind tomodelId
- the optional model identifiers
(to select models to bind)
public org.jdesktop.beansbinding.BindingGroup addAutoBinding(Container container, boolean performValidate, String... modelId)
addAutoBinding
in interface Binder
container
- the GUI component container to bind toperformValidate
- validate user inputmodelId
- the optional model identifiers
(to select models to bind)
public org.jdesktop.beansbinding.AutoBinding addAutoBinding(Container container, JComponent component, BindingCreator creator, boolean performValidate)
addAutoBinding
in interface Binder
container
- the GUI component container to bind tocomponent
- the form component to bind tocreator
- the specific binding creatorperformValidate
- determines if a validation should be performed
public org.jdesktop.beansbinding.AutoBinding addManualBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy strategy, Object model, String property, JComponent component, boolean performValidate)
addManualBinding
in interface Binder
model
- the model to bindproperty
- the property of the model to bindcomponent
- the form component to bindperformValidate
- determines if a validation should be performed
public org.jdesktop.beansbinding.AutoBinding addManualBinding(Object model, String property, JComponent component, BindingCreator creator, boolean performValidate)
addManualBinding
in interface Binder
model
- the model to bindproperty
- the property of the model to bindcomponent
- the form component to bind tocreator
- the specific binding creatorperformValidate
- determines if a validation should be performed
public org.jdesktop.beansbinding.AutoBinding addManualBinding(org.jdesktop.beansbinding.AutoBinding binding, boolean performValidate)
addManualBinding
in interface Binder
binding
- the binding to addperformValidate
- determines if a validation should be performed
public org.jdesktop.beansbinding.AutoBinding addManualBinding(org.jdesktop.beansbinding.AutoBinding binding)
addManualBinding
in interface Binder
binding
- the binding to add
public void addValidationResponder(org.jdesktop.beansbinding.BindingGroup group, ValidationResponder responder)
addValidationResponder
in interface Binder
group
- the binding groupresponder
- the validation responderpublic void addValidationResponder(org.jdesktop.beansbinding.AutoBinding binding, ValidationResponder responder)
addValidationResponder
in interface Binder
binding
- the bindingresponder
- the validation responderpublic void bindAll()
bindAll
in interface Binder
public void unbindAll()
unbindAll
in interface Binder
public void removeAll()
removeAll
in interface Binder
public org.jdesktop.beansbinding.BindingGroup find(Object model, String property, JComponent component)
null
mean "don't care".
find
in interface Binder
model
- the model to bindproperty
- the property of the model to bind tocomponent
- the form component to bind to
null
if nonepublic void remove(org.jdesktop.beansbinding.BindingGroup binding)
remove
in interface Binder
binding
- the binding group to removepublic void remove(org.jdesktop.beansbinding.AutoBinding binding)
remove
in interface Binder
binding
- the binding to removeprotected boolean skipModel(String modelId, String[] modelIdList)
modelId
- the model id given by the annotationmodelIdList
- list of available models
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |