Constructor and Description |
---|
BindableProxyFactory() |
Modifier and Type | Method and Description |
---|---|
static void |
addBindableProxy(Class<?> proxyType,
BindableProxyProvider proxyProvider)
Registers a generated bindable proxy.
|
static <T> T |
getBindableProxy(Class<T> bindableType,
InitialState state)
Returns a proxy for a newly created model instance of the provided type.
|
static <T> T |
getBindableProxy(T model,
InitialState state)
Returns a new proxy for the provided model instance.
|
static <T> boolean |
isBindableType(T model)
Checks if the type of the provided model is bindable.
|
static <T> void |
removeCachedProxyForModel(T model)
Remove the cached proxy for the provided model instance.
|
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.Copyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.