public class BindingProxy
extends GroovyObjectSupport
implements BindingUpdatable
This class returns half bound FullBindings on the source half to the model object for every property reference (and I do mean every, valid or not, queried before or not). These returned half bindings are stored strongly in a list when generated. Changing the model will keep all existing bindings but change the source on all of the bindings. Formerly Known as Model Binding.
| Constructor and description |
|---|
BindingProxy(Object model)Creates a proxy for the supplied model object. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public void |
bind()Binds every generated full binding managed by this proxy. |
|
public Object |
getModel()Returns the current model object. |
|
public Object |
getProperty(String property)Lazily creates and returns a half binding for the requested model property. |
|
public void |
rebind()Rebinds every generated full binding while preserving the current bound state. |
|
public void |
reverseUpdate()Pushes reverse updates through every generated full binding. |
|
public void |
setModel(Object model)Replaces the proxied model and retargets all existing property bindings. |
|
public void |
setProperty(String property, Object value)Prevents direct writes to the proxy. |
|
public void |
unbind()Unbinds every generated full binding managed by this proxy. |
|
public void |
update()Pushes updates through every generated full binding. |
| Methods inherited from class | Name |
|---|---|
class GroovyObjectSupport |
getMetaClass, setMetaClass |
Creates a proxy for the supplied model object.
model - the model object to exposeBinds every generated full binding managed by this proxy.
Returns the current model object.
Lazily creates and returns a half binding for the requested model property.
property - the property name to bindRebinds every generated full binding while preserving the current bound state.
Pushes reverse updates through every generated full binding.
Replaces the proxied model and retargets all existing property bindings.
model - the new model objectPrevents direct writes to the proxy.
property - the property name being writtenvalue - the attempted valueUnbinds every generated full binding managed by this proxy.
Pushes updates through every generated full binding.
Copyright © 2003-2026 The Apache Software Foundation. All rights reserved.