|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.client.metadata.TypeDataStore
public class TypeDataStore
| Nested Class Summary | |
|---|---|
static class |
TypeDataStore.MethodAttribute
|
| Constructor Summary | |
|---|---|
TypeDataStore()
|
|
| Method Summary | |
|---|---|
void |
addOnStateChangeMethod(java.lang.Class<?> clazz,
OnStateChangeMethod method)
Adds data about a method annotated with OnStateChange for the
given connector type. |
FastStringSet |
findIdentifiersFor(java.lang.Class<?> type)
|
static JSONSerializer<?> |
findSerializer(Type type)
|
static TypeDataStore |
get()
|
static java.lang.Class<?> |
getClass(java.lang.String identifier)
|
static Invoker |
getConstructor(Type type)
|
static java.lang.String |
getDelegateToWidget(Property property)
|
static JsArrayString |
getDelegateToWidgetProperites(Type type)
|
static Invoker |
getInvoker(Method method)
|
static FastStringMap<JsArrayObject<OnStateChangeMethod>> |
getOnStateChangeMethods(java.lang.Class<?> type)
Gets data for all methods annotated with OnStateChange in the
given connector type. |
static Type[] |
getParamTypes(Method method)
|
static Type |
getPresentationType(java.lang.Class<?> type)
|
static java.util.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(java.lang.Class<?> clazz)
|
static Type |
getType(Property property)
|
static java.lang.Object |
getValue(Property property,
java.lang.Object target)
|
static boolean |
hasIdentifier(java.lang.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(java.lang.String identifier,
java.lang.Class<?> type)
|
void |
setConstructor(java.lang.Class<?> type,
Invoker constructor)
|
void |
setDelegateToWidget(java.lang.Class<?> clazz,
java.lang.String propertyName,
java.lang.String delegateValue)
|
void |
setInvoker(java.lang.Class<?> type,
java.lang.String methodName,
Invoker invoker)
|
void |
setMethodAttribute(java.lang.Class<?> type,
java.lang.String methodName,
TypeDataStore.MethodAttribute attribute)
|
void |
setParamTypes(java.lang.Class<?> type,
java.lang.String methodName,
Type[] paramTypes)
|
void |
setPresentationType(java.lang.Class<?> type,
java.lang.Class<?> presentationType)
|
void |
setPropertyData(java.lang.Class<?> type,
java.lang.String propertyName,
JavaScriptObject propertyData)
|
void |
setPropertyType(java.lang.Class<?> clazz,
java.lang.String propertyName,
Type type)
|
void |
setProxyHandler(java.lang.Class<?> type,
ProxyHandler proxyHandler)
|
void |
setReturnType(java.lang.Class<?> type,
java.lang.String methodName,
Type returnType)
|
void |
setSerializerFactory(java.lang.Class<?> clazz,
Invoker factory)
|
void |
setSuperClass(java.lang.Class<?> baseClass,
java.lang.Class<?> superClass)
|
static void |
setValue(Property property,
java.lang.Object target,
java.lang.Object value)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TypeDataStore()
| Method Detail |
|---|
public static TypeDataStore get()
public void setClass(java.lang.String identifier,
java.lang.Class<?> type)
public static java.lang.Class<?> getClass(java.lang.String identifier)
throws NoDataException
NoDataExceptionpublic FastStringSet findIdentifiersFor(java.lang.Class<?> type)
public static Type getType(java.lang.Class<?> clazz)
public static Type getReturnType(Method method)
throws NoDataException
NoDataException
public static Invoker getInvoker(Method method)
throws NoDataException
NoDataException
public static Invoker getConstructor(Type type)
throws NoDataException
NoDataException
public static java.lang.Object getValue(Property property,
java.lang.Object target)
throws NoDataException
NoDataExceptionpublic static java.lang.String getDelegateToWidget(Property property)
public static JsArrayString getDelegateToWidgetProperites(Type type)
public static Type getPresentationType(java.lang.Class<?> type)
public void setDelegateToWidget(java.lang.Class<?> clazz,
java.lang.String propertyName,
java.lang.String delegateValue)
public void setPresentationType(java.lang.Class<?> type,
java.lang.Class<?> presentationType)
public void setReturnType(java.lang.Class<?> type,
java.lang.String methodName,
Type returnType)
public void setConstructor(java.lang.Class<?> type,
Invoker constructor)
public void setInvoker(java.lang.Class<?> type,
java.lang.String methodName,
Invoker invoker)
public static Type[] getParamTypes(Method method)
throws NoDataException
NoDataException
public void setParamTypes(java.lang.Class<?> type,
java.lang.String methodName,
Type[] paramTypes)
public static boolean hasIdentifier(java.lang.String identifier)
public static ProxyHandler getProxyHandler(Type type)
throws NoDataException
NoDataException
public void setProxyHandler(java.lang.Class<?> type,
ProxyHandler proxyHandler)
public static boolean isDelayed(Method method)
public static boolean isNoLoadingIndicator(Method method)
public void setMethodAttribute(java.lang.Class<?> type,
java.lang.String methodName,
TypeDataStore.MethodAttribute attribute)
public static boolean isLastOnly(Method method)
@Deprecated
public static java.util.Collection<Property> getProperties(Type type)
throws NoDataException
getPropertiesAsArray(Type) instead
for improved performance
type -
NoDataException
public static JsArrayObject<Property> getPropertiesAsArray(Type type)
throws NoDataException
NoDataException
public static Type getType(Property property)
throws NoDataException
NoDataException
public void setPropertyType(java.lang.Class<?> clazz,
java.lang.String propertyName,
Type type)
public static void setValue(Property property,
java.lang.Object target,
java.lang.Object value)
public void setSerializerFactory(java.lang.Class<?> clazz,
Invoker factory)
public static JSONSerializer<?> findSerializer(Type type)
public static boolean hasProperties(Type type)
public void setSuperClass(java.lang.Class<?> baseClass,
java.lang.Class<?> superClass)
public void setPropertyData(java.lang.Class<?> type,
java.lang.String propertyName,
JavaScriptObject propertyData)
public static FastStringMap<JsArrayObject<OnStateChangeMethod>> getOnStateChangeMethods(java.lang.Class<?> type)
OnStateChange in the
given connector type.
type - the connector type
public void addOnStateChangeMethod(java.lang.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 check
true if the method has a NoLayout annotation;
otherwise falsepublic static boolean isNoLayoutProperty(Property property)
NoLayout.
property - the property to check
true if the property has a NoLayout annotation;
otherwise false
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||