Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.jgoodies.binding.value
Class ConverterFactory.IntegerConverter

    java.lang.Object
      com.jgoodies.common.bean.AbstractBean
          com.jgoodies.binding.beans.Model
              com.jgoodies.binding.value.AbstractValueModel
                  com.jgoodies.binding.value.AbstractWrappedValueModel
                      com.jgoodies.binding.value.AbstractConverter
                          com.jgoodies.binding.value.ConverterFactory.IntegerConverter

All Implemented Interfaces:
  ComponentModel, ComponentValueModel, ValueModel, com.jgoodies.common.bean.ObservableBean, com.jgoodies.common.bean.ObservableBean2, Serializable

Enclosing class:
  ConverterFactory

    public static final class ConverterFactory.IntegerConverter

extends AbstractConverter

Converts Integers using a given multiplier.

See Also:
  Serialized Form

Field Summary

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

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

Fields inherited from class com.jgoodies.common.bean.AbstractBean
`changeSupport`

Fields inherited from interface com.jgoodies.binding.value.ComponentValueModel
`PROPERTYNAME_EDITABLE, PROPERTYNAME_ENABLED, PROPERTYNAME_VISIBLE`

Fields inherited from interface com.jgoodies.binding.value.ComponentModel
`PROPERTY_EDITABLE, PROPERTY_ENABLED, PROPERTY_VISIBLE`

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

Methods inherited from class com.jgoodies.binding.value.AbstractConverter
`createValueChangeHandler, getValue`

Methods inherited from class com.jgoodies.binding.value.AbstractWrappedValueModel
`getWrappee, isEditable, isEnabled, isVisible, release, setEditable, setEnabled, setVisible`

Methods inherited from class com.jgoodies.binding.value.AbstractValueModel
`addValueChangeListener, booleanValue, doubleValue, fireValueChange, fireValueChange, fireValueChange, fireValueChange, fireValueChange, fireValueChange, fireValueChange, floatValue, getString, intValue, longValue, paramString, removeValueChangeListener, setValue, setValue, setValue, setValue, setValue, toString, valueString`

Methods inherited from class com.jgoodies.binding.beans.Model
`createPropertyChangeSupport, firePropertyChange`

Methods inherited from class com.jgoodies.common.bean.AbstractBean
`addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, fireMultiplePropertiesChanged, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Methods inherited from interface com.jgoodies.binding.value.ValueModel
`addValueChangeListener, removeValueChangeListener`

Methods inherited from interface com.jgoodies.common.bean.ObservableBean2
`addPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, removePropertyChangeListener`

Methods inherited from interface com.jgoodies.common.bean.ObservableBean
`addPropertyChangeListener, removePropertyChangeListener`

Method Detail

### convertFromSubject

    public Object convertFromSubject(Object subjectValue)

  Converts the subject's value and returns a corresponding `Integer` using the multiplier.

  Specified by:
    `convertFromSubject` in class `AbstractConverter`
  Parameters:
    `subjectValue` - the subject's value
  Returns:
    the converted subjectValue
  Throws:
    `ClassCastException` - if the subject value is not of type `Integer`

### setValue

    public void setValue(Object newValue)

  Converts a `Integer` using the multiplier and sets it as new value.

  Parameters:
    `newValue` - the `Integer` object that shall be converted
  Throws:
    `ClassCastException` - if the new value is not of type `Integer`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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