com.jgoodies.binding.value

Class ConverterFactory.LongConverter

Enclosing Class:
ConverterFactory
Implemented Interfaces:
Observable, Serializable, ValueModel

public static final class ConverterFactory.LongConverter
extends AbstractConverter

Converts Longs using a given multiplier.

Field Summary

Fields inherited from class com.jgoodies.binding.value.AbstractConverter

subject

Fields inherited from class com.jgoodies.binding.value.AbstractValueModel

PROPERTYNAME_VALUE

Method Summary

Object
convertFromSubject(Object subjectValue)
Converts the subject's value and returns a corresponding Long using the multiplier.
void
setValue(Object newValue)
Converts a Long using the multiplier and sets it as new value.

Methods inherited from class com.jgoodies.binding.value.AbstractConverter

convertFromSubject, getValue, release

Methods inherited from class com.jgoodies.binding.value.AbstractValueModel

addValueChangeListener, booleanValue, doubleValue, fireValueChange, fireValueChange, fireValueChange, fireValueChange, fireValueChange, fireValueChange, fireValueChange, floatValue, getString, intValue, longValue, removeValueChangeListener, setValue, setValue, setValue, setValue, setValue, toString

Methods inherited from class com.jgoodies.binding.beans.Model

addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, equals, fireMultiplePropertiesChanged, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener

Method Details

convertFromSubject

public Object convertFromSubject(Object subjectValue)
Converts the subject's value and returns a corresponding Long using the multiplier.
Overrides:
convertFromSubject in interface AbstractConverter
Parameters:
subjectValue - the subject's value
Returns:
the converted subjectValue

setValue

public void setValue(Object newValue)
Converts a Long using the multiplier and sets it as new value.
Specified by:
setValue in interface ValueModel
Parameters:
newValue - the Long object that shall be converted

Copyright © 2002-2007 JGoodies Karsten Lentzsch. All Rights Reserved.