Package com.vaadin.client.metadata
Class TypeDataStore
- java.lang.Object
-
- com.vaadin.client.metadata.TypeDataStore
-
public class TypeDataStore extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTypeDataStore.MethodAttribute
-
Constructor Summary
Constructors Constructor Description TypeDataStore()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddOnStateChangeMethod(Class<?> clazz, OnStateChangeMethod method)Adds data about a method annotated withOnStateChangefor the given connector type.FastStringSetfindIdentifiersFor(Class<?> type)static JSONSerializer<?>findSerializer(Type type)static TypeDataStoreget()static Class<?>getClass(String identifier)static InvokergetConstructor(Type type)static StringgetDelegateToWidget(Property property)static com.google.gwt.core.client.JsArrayStringgetDelegateToWidgetProperites(Type type)static InvokergetInvoker(Method method)static FastStringMap<JsArrayObject<OnStateChangeMethod>>getOnStateChangeMethods(Class<?> type)Gets data for all methods annotated withOnStateChangein the given connector type.static Type[]getParamTypes(Method method)static TypegetPresentationType(Class<?> type)static Collection<Property>getProperties(Type type)Deprecated.As of 7.0.1, usegetPropertiesAsArray(Type)instead for improved performancestatic JsArrayObject<Property>getPropertiesAsArray(Type type)static ProxyHandlergetProxyHandler(Type type)static TypegetReturnType(Method method)static TypegetType(Property property)static TypegetType(Class<?> clazz)static ObjectgetValue(Property property, Object target)static booleanhasIdentifier(String identifier)static booleanhasProperties(Type type)static booleanisDelayed(Method method)static booleanisLastOnly(Method method)static booleanisNoLayoutProperty(Property property)Checks whether the provided property is annotated withNoLayout.static booleanisNoLayoutRpcMethod(Method method)Checks whether the provided method is annotated withNoLayout.static booleanisNoLoadingIndicator(Method method)voidsetClass(String identifier, Class<?> type)voidsetConstructor(Class<?> type, Invoker constructor)voidsetDelegateToWidget(Class<?> clazz, String propertyName, String delegateValue)voidsetInvoker(Class<?> type, String methodName, Invoker invoker)voidsetMethodAttribute(Class<?> type, String methodName, TypeDataStore.MethodAttribute attribute)voidsetParamTypes(Class<?> type, String methodName, Type[] paramTypes)voidsetPresentationType(Class<?> type, Class<?> presentationType)voidsetPropertyData(Class<?> type, String propertyName, com.google.gwt.core.client.JavaScriptObject propertyData)voidsetPropertyType(Class<?> clazz, String propertyName, Type type)voidsetProxyHandler(Class<?> type, ProxyHandler proxyHandler)voidsetReturnType(Class<?> type, String methodName, Type returnType)voidsetSerializerFactory(Class<?> clazz, Invoker factory)voidsetSuperClass(Class<?> baseClass, Class<?> superClass)static voidsetValue(Property property, Object target, Object value)
-
-
-
Method Detail
-
get
public static TypeDataStore get()
-
getClass
public static Class<?> getClass(String identifier) throws NoDataException
- Throws:
NoDataException
-
findIdentifiersFor
public FastStringSet findIdentifiersFor(Class<?> type)
-
getReturnType
public static Type getReturnType(Method method) throws NoDataException
- Throws:
NoDataException
-
getInvoker
public static Invoker getInvoker(Method method) throws NoDataException
- Throws:
NoDataException
-
getConstructor
public static Invoker getConstructor(Type type) throws NoDataException
- Throws:
NoDataException
-
getValue
public static Object getValue(Property property, Object target) throws NoDataException
- Throws:
NoDataException
-
getDelegateToWidgetProperites
public static com.google.gwt.core.client.JsArrayString getDelegateToWidgetProperites(Type type)
-
setDelegateToWidget
public void setDelegateToWidget(Class<?> clazz, String propertyName, String delegateValue)
-
getParamTypes
public static Type[] getParamTypes(Method method) throws NoDataException
- Throws:
NoDataException
-
hasIdentifier
public static boolean hasIdentifier(String identifier)
-
getProxyHandler
public static ProxyHandler getProxyHandler(Type type) throws NoDataException
- Throws:
NoDataException
-
setProxyHandler
public void setProxyHandler(Class<?> type, ProxyHandler proxyHandler)
-
isDelayed
public static boolean isDelayed(Method method)
-
isNoLoadingIndicator
public static boolean isNoLoadingIndicator(Method method)
-
setMethodAttribute
public void setMethodAttribute(Class<?> type, String methodName, TypeDataStore.MethodAttribute attribute)
-
isLastOnly
public static boolean isLastOnly(Method method)
-
getProperties
@Deprecated public static Collection<Property> getProperties(Type type) throws NoDataException
Deprecated.As of 7.0.1, usegetPropertiesAsArray(Type)instead for improved performance- Parameters:
type-- Returns:
- Throws:
NoDataException
-
getPropertiesAsArray
public static JsArrayObject<Property> getPropertiesAsArray(Type type) throws NoDataException
- Throws:
NoDataException
-
getType
public static Type getType(Property property) throws NoDataException
- Throws:
NoDataException
-
findSerializer
public static JSONSerializer<?> findSerializer(Type type)
-
hasProperties
public static boolean hasProperties(Type type)
-
setPropertyData
public void setPropertyData(Class<?> type, String propertyName, com.google.gwt.core.client.JavaScriptObject propertyData)
-
getOnStateChangeMethods
public static FastStringMap<JsArrayObject<OnStateChangeMethod>> getOnStateChangeMethods(Class<?> type)
Gets data for all methods annotated withOnStateChangein the given connector type.- Parameters:
type- the connector type- Returns:
- a map of state property names to handler method data
- Since:
- 7.2
-
addOnStateChangeMethod
public void addOnStateChangeMethod(Class<?> clazz, OnStateChangeMethod method)
Adds data about a method annotated withOnStateChangefor the given connector type.- Parameters:
clazz- the connector typemethod- the state change method data- Since:
- 7.2
-
isNoLayoutRpcMethod
public static boolean isNoLayoutRpcMethod(Method method)
Checks whether the provided method is annotated withNoLayout.- Parameters:
method- the rpc method to check- Returns:
trueif the method has a NoLayout annotation; otherwisefalse- Since:
- 7.4
-
-