|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FieldTypeHandler
Handles an assortment of field types.
Method Summary | |
---|---|
java.lang.Object |
convertType(java.lang.Object value,
java.lang.Class valueType,
java.lang.Class returnType)
Should cast the parameter to type T. |
java.lang.Class |
getAsSupportedType(java.lang.Class rawType)
This function should convert a given type to a compatible type that is supported by this FieldTypeHandler. |
ValueComponent |
getValueComponentFor(java.lang.Class supportedType,
FieldInstance f,
boolean allowEdit)
This function should return a new object derived from ValueComponent, which can handle fields of the type given as parameter. |
Method Detail |
---|
java.lang.Class getAsSupportedType(java.lang.Class rawType)
null
value should be returned.
rawType
- type to convert to a supported type (if any)
java.lang.Object convertType(java.lang.Object value, java.lang.Class valueType, java.lang.Class returnType)
T
- value
-
ValueComponent getValueComponentFor(java.lang.Class supportedType, FieldInstance f, boolean allowEdit)
T
- supportedType
- some type this handler supportsallowEdit
- whether ValueComponent should allow editing of the field
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |