MDateSelector

mseries.ui
Class DefaultSpinnerModel

java.lang.Object
  extended by mseries.ui.DefaultSpinnerModel
All Implemented Interfaces:
SpinnerModel
Direct Known Subclasses:
MDateSpinnerModel

public class DefaultSpinnerModel
extends Object
implements SpinnerModel


Constructor Summary
DefaultSpinnerModel()
           
 
Method Summary
 void addChangeListener(ChangeListener l)
          ChangeEvents are fired to registered listeners when the current value is changed
 Object getNextValue()
          Advances to and returns the next value in the sequence depending on the step size
 Object getPreviousValue()
          Advances to and returns the previous value in the sequence depending on the step size
 Object getValue()
          Returns the current value
protected  void notifyListeners()
           
 void removeChangeListener(ChangeListener l)
           
 void setStep(int step)
          Sets the step size to indicate how far getNextValue and getPreviousValue should move in the set.
 void setValue(Object v)
          Sets a value in the model which may or may not be in the sequence
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSpinnerModel

public DefaultSpinnerModel()
Method Detail

getValue

public Object getValue()
Description copied from interface: SpinnerModel
Returns the current value

Specified by:
getValue in interface SpinnerModel

setValue

public void setValue(Object v)
Description copied from interface: SpinnerModel
Sets a value in the model which may or may not be in the sequence

Specified by:
setValue in interface SpinnerModel

setStep

public void setStep(int step)
Description copied from interface: SpinnerModel
Sets the step size to indicate how far getNextValue and getPreviousValue should move in the set.

Specified by:
setStep in interface SpinnerModel

getNextValue

public Object getNextValue()
Description copied from interface: SpinnerModel
Advances to and returns the next value in the sequence depending on the step size

Specified by:
getNextValue in interface SpinnerModel

getPreviousValue

public Object getPreviousValue()
Description copied from interface: SpinnerModel
Advances to and returns the previous value in the sequence depending on the step size

Specified by:
getPreviousValue in interface SpinnerModel

addChangeListener

public void addChangeListener(ChangeListener l)
Description copied from interface: SpinnerModel
ChangeEvents are fired to registered listeners when the current value is changed

Specified by:
addChangeListener in interface SpinnerModel

removeChangeListener

public void removeChangeListener(ChangeListener l)
Specified by:
removeChangeListener in interface SpinnerModel

notifyListeners

protected void notifyListeners()

MDateSelector

Copyright © 2001-2007 M Newstead. All Rights Reserved.