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