FileDocCategorySizeDatePackage
RolloverSpinnerListModel.javaAPI DocExample720Thu Oct 24 20:14:22 BST 2002None

RolloverSpinnerListModel

public class RolloverSpinnerListModel extends SpinnerListModel

Fields Summary
Constructors Summary
public RolloverSpinnerListModel(Object[] items)

 super(items); 
public RolloverSpinnerListModel(List items)

 super(items); 
Methods Summary
public java.lang.ObjectgetNextValue()

    Object nv = super.getNextValue();
    if (nv != null) {
      return nv;
    }
    return getList().get(0);
  
public java.lang.ObjectgetPreviousValue()

    Object pv = super.getPreviousValue();
    if (pv != null) {
      return pv;
    }
    List l = getList();
    return l.get(l.size() - 1);