T - the type of the managed fieldE - the type of event emitted on field updatesR - the type of reflection form builder to useC - the type of component to producepublic interface FieldHandler<T,E extends FieldUpdateEvent<T>,R extends ReflectionFormBuilder,C extends Component> extends ComponentHandler<C>
#handle(java.lang.reflect.Field, java.lang.Object, java.lang.String, java.lang.Class, richtercloud.reflection.form.builder.FieldUpdateListener, richtercloud.reflection.form.builder.ReflectionFormBuilder) provides information about the handled field you can retrieve information as good and as easily as the Java Reflection API allows you.| Modifier and Type | Method and Description |
|---|---|
JComponent |
handle(Field field,
Object instance,
FieldUpdateListener<E> updateListener,
R reflectionFormBuilder)
Information about the field value can be retrieved with
Field.get(java.lang.Object) and instance, about the
field name with Field.getName() and about the declaring class
with Field.getDeclaringClass(). |
resetJComponent handle(Field field, Object instance, FieldUpdateListener<E> updateListener, R reflectionFormBuilder) throws FieldHandlingException, ResetException
Field.get(java.lang.Object) and instance, about the
field name with Field.getName() and about the declaring class
with Field.getDeclaringClass().field - the Field to be handledinstance - the instance to handleupdateListener - an FieldUpdateListener to notify on updatesreflectionFormBuilder - a ReflectionFormBuilder used for
recursionFieldHandlingException - wraps all exceptions occuring during read
or write access to fieldsResetException - if an exception during resetting the field occursCopyright © 2018. All rights reserved.