T - the type of field to handleE - the type of field update eventsR - the type of reflection form builder to usepublic abstract class AbstractListFieldHandler<T,E extends FieldUpdateEvent<T>,R extends ReflectionFormBuilder> extends Object implements FieldHandler<T,E,R,AbstractListPanel>
| Constructor and Description |
|---|
AbstractListFieldHandler(de.richtercloud.message.handler.MessageHandler messageHandler,
TypeHandler<T,E,R,AbstractListPanel> typeHandler) |
| Modifier and Type | Method and Description |
|---|---|
de.richtercloud.message.handler.MessageHandler |
getMessageHandler() |
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(). |
void |
reset(AbstractListPanel component) |
public AbstractListFieldHandler(de.richtercloud.message.handler.MessageHandler messageHandler,
TypeHandler<T,E,R,AbstractListPanel> typeHandler)
public de.richtercloud.message.handler.MessageHandler getMessageHandler()
public JComponent handle(Field field, Object instance, FieldUpdateListener<E> updateListener, R reflectionFormBuilder) throws FieldHandlingException, ResetException
FieldHandlerField.get(java.lang.Object) and instance, about the
field name with Field.getName() and about the declaring class
with Field.getDeclaringClass().handle in interface FieldHandler<T,E extends FieldUpdateEvent<T>,R extends ReflectionFormBuilder,AbstractListPanel>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 occurspublic void reset(AbstractListPanel component) throws ResetException
reset in interface ComponentHandler<AbstractListPanel>ResetExceptionCopyright © 2018. All rights reserved.