public class TypeDataStore extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TypeDataStore.MethodAttribute |
| Constructor and Description |
|---|
TypeDataStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
addOnStateChangeMethod(Class<?> clazz,
OnStateChangeMethod method)
Adds data about a method annotated with
OnStateChange for the
given connector type. |
FastStringSet |
findIdentifiersFor(Class<?> type) |
static JSONSerializer<?> |
findSerializer(Type type) |
static TypeDataStore |
get() |
static Class<?> |
getClass(String identifier) |
static Invoker |
getConstructor(Type type) |
static String |
getDelegateToWidget(Property property) |
static com.google.gwt.core.client.JsArrayString |
getDelegateToWidgetProperites(Type type) |
static Invoker |
getInvoker(Method method) |
static FastStringMap<JsArrayObject<OnStateChangeMethod>> |
getOnStateChangeMethods(Class<?> type)
Gets data for all methods annotated with
OnStateChange in the
given connector type. |
static Type[] |
getParamTypes(Method method) |
static Type |
getPresentationType(Class<?> type) |
static Collection<Property> |
getProperties(Type type)
Deprecated.
As of 7.0.1, use
getPropertiesAsArray(Type) instead
for improved performance |
static JsArrayObject<Property> |
getPropertiesAsArray(Type type) |
static ProxyHandler |
getProxyHandler(Type type) |
static Type |
getReturnType(Method method) |
static Type |
getType(Class<?> clazz) |
static Type |
getType(Property property) |
static Object |
getValue(Property property,
Object target) |
static boolean |
hasIdentifier(String identifier) |
static boolean |
hasProperties(Type type) |
static boolean |
isDelayed(Method method) |
static boolean |
isLastOnly(Method method) |
static boolean |
isNoLayoutProperty(Property property)
Checks whether the provided property is annotated with
NoLayout. |
static boolean |
isNoLayoutRpcMethod(Method method)
Checks whether the provided method is annotated with
NoLayout. |
static boolean |
isNoLoadingIndicator(Method method) |
void |
setClass(String identifier,
Class<?> type) |
void |
setConstructor(Class<?> type,
Invoker constructor) |
void |
setDelegateToWidget(Class<?> clazz,
String propertyName,
String delegateValue) |
void |
setInvoker(Class<?> type,
String methodName,
Invoker invoker) |
void |
setMethodAttribute(Class<?> type,
String methodName,
TypeDataStore.MethodAttribute attribute) |
void |
setParamTypes(Class<?> type,
String methodName,
Type[] paramTypes) |
void |
setPresentationType(Class<?> type,
Class<?> presentationType) |
void |
setPropertyData(Class<?> type,
String propertyName,
com.google.gwt.core.client.JavaScriptObject propertyData) |
void |
setPropertyType(Class<?> clazz,
String propertyName,
Type type) |
void |
setProxyHandler(Class<?> type,
ProxyHandler proxyHandler) |
void |
setReturnType(Class<?> type,
String methodName,
Type returnType) |
void |
setSerializerFactory(Class<?> clazz,
Invoker factory) |
void |
setSuperClass(Class<?> baseClass,
Class<?> superClass) |
static void |
setValue(Property property,
Object target,
Object value) |
public static TypeDataStore get()
public static Class<?> getClass(String identifier) throws NoDataException
NoDataExceptionpublic FastStringSet findIdentifiersFor(Class<?> type)
public static Type getReturnType(Method method) throws NoDataException
NoDataExceptionpublic static Invoker getInvoker(Method method) throws NoDataException
NoDataExceptionpublic static Invoker getConstructor(Type type) throws NoDataException
NoDataExceptionpublic static Object getValue(Property property, Object target) throws NoDataException
NoDataExceptionpublic static com.google.gwt.core.client.JsArrayString getDelegateToWidgetProperites(Type type)
public void setDelegateToWidget(Class<?> clazz, String propertyName, String delegateValue)
public static Type[] getParamTypes(Method method) throws NoDataException
NoDataExceptionpublic static boolean hasIdentifier(String identifier)
public static ProxyHandler getProxyHandler(Type type) throws NoDataException
NoDataExceptionpublic void setProxyHandler(Class<?> type, ProxyHandler proxyHandler)
public static boolean isDelayed(Method method)
public static boolean isNoLoadingIndicator(Method method)
public void setMethodAttribute(Class<?> type, String methodName, TypeDataStore.MethodAttribute attribute)
public static boolean isLastOnly(Method method)
@Deprecated public static Collection<Property> getProperties(Type type) throws NoDataException
getPropertiesAsArray(Type) instead
for improved performancetype - NoDataExceptionpublic static JsArrayObject<Property> getPropertiesAsArray(Type type) throws NoDataException
NoDataExceptionpublic static Type getType(Property property) throws NoDataException
NoDataExceptionpublic static JSONSerializer<?> findSerializer(Type type)
public static boolean hasProperties(Type type)
public void setPropertyData(Class<?> type, String propertyName, com.google.gwt.core.client.JavaScriptObject propertyData)
public static FastStringMap<JsArrayObject<OnStateChangeMethod>> getOnStateChangeMethods(Class<?> type)
OnStateChange in the
given connector type.type - the connector typepublic void addOnStateChangeMethod(Class<?> clazz, OnStateChangeMethod method)
OnStateChange for the
given connector type.clazz - the connector typemethod - the state change method datapublic static boolean isNoLayoutRpcMethod(Method method)
NoLayout.method - the rpc method to checktrue if the method has a NoLayout annotation;
otherwise falseCopyright © 2023 Vaadin Ltd. All rights reserved.