T - the type to handleE - the field update eventR - the reflection for builder to usepublic abstract class AbstractListTypeHandler<T,E extends FieldUpdateEvent<T>,R extends ReflectionFormBuilder> extends Object implements TypeHandler<T,E,R,AbstractListPanel>
| Constructor and Description |
|---|
AbstractListTypeHandler(de.richtercloud.message.handler.IssueHandler issueHandler) |
| Modifier and Type | Method and Description |
|---|---|
de.richtercloud.message.handler.IssueHandler |
getIssueHandler() |
org.apache.commons.lang3.tuple.Pair<JComponent,ComponentHandler<?>> |
handle(Type type,
T fieldValue,
String fieldName,
Class<?> declaringClass,
FieldUpdateListener<E> updateListener,
R reflectionFormBuilder) |
protected abstract org.apache.commons.lang3.tuple.Pair<JComponent,ComponentHandler<?>> |
handle0(Type type,
T fieldValue,
FieldUpdateListener<E> updateListener,
ReflectionFormBuilder reflectionFormBuilder) |
void |
reset(AbstractListPanel component) |
public AbstractListTypeHandler(de.richtercloud.message.handler.IssueHandler issueHandler)
public de.richtercloud.message.handler.IssueHandler getIssueHandler()
public org.apache.commons.lang3.tuple.Pair<JComponent,ComponentHandler<?>> handle(Type type, T fieldValue, String fieldName, Class<?> declaringClass, FieldUpdateListener<E> updateListener, R reflectionFormBuilder) throws FieldHandlingException, ResetException
handle in interface TypeHandler<T,E extends FieldUpdateEvent<T>,R extends ReflectionFormBuilder,AbstractListPanel>type - the Type to be handledfieldValue - the value of the field or the nested generic propertyfieldName - the name of the field (the same for nested generics)declaringClass - the class declaring the fieldupdateListener - an FieldUpdateListener to notify on updatesreflectionFormBuilder - a ReflectionFormBuilder used for
recursionPair of the handling result and the generating
ComponentResettable. The latter reference can be used to
easily keep track of the actual generating handler in a long line of
delegations of handlers which avoids ClassCastExceptions at
runtime as long as ComponentResettables implemented correctlyFieldHandlingException - wraps all exceptions occuring during read
or write access to fieldsResetException - if an exception during resetting the field occursprotected abstract org.apache.commons.lang3.tuple.Pair<JComponent,ComponentHandler<?>> handle0(Type type, T fieldValue, FieldUpdateListener<E> updateListener, ReflectionFormBuilder reflectionFormBuilder) throws FieldHandlingException, ResetException
FieldHandlingExceptionResetExceptionpublic void reset(AbstractListPanel component)
reset in interface ComponentHandler<AbstractListPanel>Copyright © 2018. All rights reserved.