|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Binder
Interface for convenience beans binding support between model and GUI.
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 group)
Remove a binding group. |
void |
removeAll()
Remove all bindings. |
void |
unbindAll()
Unbind all managed bindings. |
Method Detail |
---|
org.jdesktop.beansbinding.BindingGroup addAutoBinding(Container container, String... modelId)
container
- the GUI component container to bind tomodelId
- the optional model identifiers
(to select models to bind)
org.jdesktop.beansbinding.BindingGroup addAutoBinding(Container container, boolean performValidate, String... modelId)
container
- the GUI component container to bind toperformValidate
- validate user inputmodelId
- the optional model identifiers
(to select models to bind)
org.jdesktop.beansbinding.AutoBinding addAutoBinding(Container container, JComponent component, BindingCreator creator, boolean performValidate)
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
org.jdesktop.beansbinding.AutoBinding addManualBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy strategy, Object model, String property, JComponent component, boolean performValidate)
model
- the model to bindproperty
- the property of the model to bindcomponent
- the form component to bindperformValidate
- determines if a validation should be performed
org.jdesktop.beansbinding.AutoBinding addManualBinding(Object model, String property, JComponent component, BindingCreator creator, boolean performValidate)
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
org.jdesktop.beansbinding.AutoBinding addManualBinding(org.jdesktop.beansbinding.AutoBinding binding)
binding
- the binding to add
org.jdesktop.beansbinding.AutoBinding addManualBinding(org.jdesktop.beansbinding.AutoBinding binding, boolean performValidate)
binding
- the binding to addperformValidate
- determines if a validation should be performed
void remove(org.jdesktop.beansbinding.BindingGroup group)
group
- the binding group to removevoid remove(org.jdesktop.beansbinding.AutoBinding binding)
binding
- the binding to removevoid removeAll()
org.jdesktop.beansbinding.BindingGroup find(Object model, String property, JComponent component)
null
mean "don't care".
model
- the model to bindproperty
- the property of the model to bind tocomponent
- the form component to bind to
null
if nonevoid addValidationResponder(org.jdesktop.beansbinding.AutoBinding binding, ValidationResponder responder)
binding
- the bindingresponder
- the validation respondervoid addValidationResponder(org.jdesktop.beansbinding.BindingGroup group, ValidationResponder responder)
group
- the binding groupresponder
- the validation respondervoid bindAll()
void unbindAll()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |