java.lang.Object
org.proto4j.swing.core.handler.AbstractSwingHandler<Margin>
org.proto4j.swing.core.handler.MarginHandler
- All Implemented Interfaces:
SwingHandler
public class MarginHandler extends AbstractSwingHandler<Margin>
The basic implementation for the
Margin
annotation.- Since:
- 1.0
-
Field Summary
-
Constructor Summary
Constructors Constructor Description MarginHandler()
-
Method Summary
Modifier and Type Method Description java.lang.Class<? extends java.lang.annotation.Annotation>
annotationType()
protected GenericDesc<Margin>
getDesc(FieldReference<?> reference, Margin value)
Tries to create theGenericDesc
object from the given reference and annotation value.
-
Constructor Details
-
MarginHandler
public MarginHandler()
-
-
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<Margin>
- Parameters:
reference
- theFieldReference
objectvalue
- the annotation value- Returns:
- a qualified
GenericDesc
that can read an annotation of type<A>
-