org.springframework.binding.value.swing
Class SpinnerAdapter

java.lang.Object
  extended by org.springframework.binding.value.support.AbstractValueModelAdapter
      extended by org.springframework.binding.value.swing.SpinnerAdapter

public class SpinnerAdapter
extends AbstractValueModelAdapter

Adapts a value model to a JSpinner control.

Author:
Oliver Hutchison

Field Summary
 
Fields inherited from class org.springframework.binding.value.support.AbstractValueModelAdapter
logger
 
Constructor Summary
SpinnerAdapter(JSpinner spinner, ValueModel valueModel)
           
 
Method Summary
protected  void valueModelValueChanged(Object newValue)
          Called when the value held by the value model has changes
 
Methods inherited from class org.springframework.binding.value.support.AbstractValueModelAdapter
adaptedValueChanged, getValueModel, initalizeAdaptedValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpinnerAdapter

public SpinnerAdapter(JSpinner spinner,
                      ValueModel valueModel)
Method Detail

valueModelValueChanged

protected void valueModelValueChanged(Object newValue)
Description copied from class: AbstractValueModelAdapter
Called when the value held by the value model has changes

Specified by:
valueModelValueChanged in class AbstractValueModelAdapter
Parameters:
newValue - the new value held by the value model


Copyright © 2004-2008 The Spring Framework. All Rights Reserved.