public class AmountMoneyFieldHandler extends Object implements FieldHandler<org.jscience.physics.amount.Amount<org.jscience.economics.money.Money>,FieldUpdateEvent<org.jscience.physics.amount.Amount<org.jscience.economics.money.Money>>,ReflectionFormBuilder,AmountMoneyPanel>
| Constructor and Description |
|---|
AmountMoneyFieldHandler(AmountMoneyExchangeRateRetriever amountMoneyConversionRateRetriever,
AmountMoneyCurrencyStorage amountMoneyCurrencyStorage,
de.richtercloud.message.handler.MessageHandler messageHandler) |
| Modifier and Type | Method and Description |
|---|---|
JComponent |
handle(Field field,
Object instance,
FieldUpdateListener<FieldUpdateEvent<org.jscience.physics.amount.Amount<org.jscience.economics.money.Money>>> updateListener,
ReflectionFormBuilder 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(AmountMoneyPanel component) |
public AmountMoneyFieldHandler(AmountMoneyExchangeRateRetriever amountMoneyConversionRateRetriever, AmountMoneyCurrencyStorage amountMoneyCurrencyStorage, de.richtercloud.message.handler.MessageHandler messageHandler)
public JComponent handle(Field field, Object instance, FieldUpdateListener<FieldUpdateEvent<org.jscience.physics.amount.Amount<org.jscience.economics.money.Money>>> updateListener, ReflectionFormBuilder reflectionFormBuilder) throws FieldHandlingException
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<org.jscience.physics.amount.Amount<org.jscience.economics.money.Money>,FieldUpdateEvent<org.jscience.physics.amount.Amount<org.jscience.economics.money.Money>>,ReflectionFormBuilder,AmountMoneyPanel>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 fieldspublic void reset(AmountMoneyPanel component)
reset in interface ComponentHandler<AmountMoneyPanel>Copyright © 2018. All rights reserved.