|
Errai 3.0.1-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.errai.databinding.client.BindableProxyFactory
public class BindableProxyFactory
Provides access to the generated proxies for Bindable
types.
Constructor Summary | |
---|---|
BindableProxyFactory()
|
Method Summary | ||
---|---|---|
static void |
addBindableProxy(Class<?> proxyType,
BindableProxyProvider proxyProvider)
Registers a generated bindable proxy. |
|
static
|
getBindableProxy(Class<T> bindableType,
InitialState state)
Returns a proxy for a newly created model instance of the provided type. |
|
static
|
getBindableProxy(T model,
InitialState state)
Returns a new proxy for the provided model instance. |
|
static
|
isBindableType(T model)
Checks if the type of the provided model is bindable. |
|
static
|
removeCachedProxyForModel(T model)
Remove the cached proxy for the provided model instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BindableProxyFactory()
Method Detail |
---|
public static <T> T getBindableProxy(T model, InitialState state)
BindableProxy#bind(String, com.google.gwt.user.client.ui.HasValue)
).
T
- the bindable typemodel
- The model instance to proxy.state
- Specifies the origin of the initial state of both model and UI widget.
public static <T> T getBindableProxy(Class<T> bindableType, InitialState state)
BindableProxy#bind(String, com.google.gwt.user.client.ui.HasValue)
).
bindableType
- the bindable typestate
- Specifies the origin of the initial state of both model and UI widget.
public static void addBindableProxy(Class<?> proxyType, BindableProxyProvider proxyProvider)
proxyType
- The bindable type, must not be null.proxyProvider
- The proxy provider for the generated bindable proxy, must not be null.public static <T> void removeCachedProxyForModel(T model)
T
- the bindable typemodel
- the model instancepublic static <T> boolean isBindableType(T model)
model
- the object to be checked.
|
Errai 3.0.1-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |