java.lang.Object
org.proto4j.swing.core.handler.AbstractSwingHandler<Model>
org.proto4j.swing.core.handler.ModelHandler
- All Implemented Interfaces:
SwingHandler
public class ModelHandler extends AbstractSwingHandler<Model>
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ModelHandler()
-
Method Summary
Modifier and Type Method Description java.lang.Class<? extends java.lang.annotation.Annotation>
annotationType()
protected GenericDesc<Model>
getDesc(FieldReference<?> reference, Model value)
Tries to create theGenericDesc
object from the given reference and annotation value.
-
Constructor Details
-
ModelHandler
public ModelHandler()
-
-
Method Details
-
annotationType
public java.lang.Class<? extends java.lang.annotation.Annotation> annotationType()- Returns:
- the annotation type that can be handled
-
getDesc
Tries to create theGenericDesc
object from the given reference and annotation value.- Specified by:
getDesc
in classAbstractSwingHandler<Model>
- Parameters:
reference
- theFieldReference
objectvalue
- the annotation value- Returns:
- a qualified
GenericDesc
that can read an annotation of type<A>
-