Errai 3.0.1-SNAPSHOT

org.jboss.errai.databinding.client
Interface BindableProxy<T>

All Superinterfaces:
HasProperties, WrappedPortable

public interface BindableProxy<T>
extends WrappedPortable, HasProperties

This interface is implemented by the generated proxies for Bindable types.

Author:
Christian Sadilek

Method Summary
 T deepUnwrap()
          Returns a new non-proxied instance with state copied recursively from this target.
 BindableProxyAgent<T> getAgent()
          Returns the BindableProxyAgent of this proxy.
 void updateWidgets()
          Updates all widgets bound to the model instance associated with this proxy (see BindableProxyAgent.bind(Widget, String, Converter)).
 
Methods inherited from interface org.jboss.errai.common.client.api.WrappedPortable
unwrap
 
Methods inherited from interface org.jboss.errai.databinding.client.HasProperties
get, set
 

Method Detail

getAgent

BindableProxyAgent<T> getAgent()
Returns the BindableProxyAgent of this proxy.

Returns:
the proxy's agent, never null.

updateWidgets

void updateWidgets()
Updates all widgets bound to the model instance associated with this proxy (see BindableProxyAgent.bind(Widget, String, Converter)). This method is only useful if the model instance has undergone changes that were not caused by calls to methods on this proxy and were therefore not visible to this proxy (e.g direct field access by JPA).


deepUnwrap

T deepUnwrap()
Returns a new non-proxied instance with state copied recursively from this target.

Returns:
A recursively unwrapped (i.e. non-proxied) instance with state copied from the proxy target.

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.