org.uispec4j
Class NumberSpinner

java.lang.Object
  extended by org.uispec4j.AbstractUIComponent
      extended by org.uispec4j.AbstractSwingUIComponent
          extended by org.uispec4j.Spinner
              extended by org.uispec4j.NumberSpinner
All Implemented Interfaces:
TooltipComponent, UIComponent

public class NumberSpinner
extends Spinner

Wrapper for JSpinner components implementing a SpinnerNumberModel.


Field Summary
 
Fields inherited from class org.uispec4j.Spinner
jSpinner, SWING_CLASSES, TYPE_NAME
 
Constructor Summary
NumberSpinner(javax.swing.JSpinner jSpinner)
           
 
Method Summary
 Assertion maxEquals(int expectedMax)
          Checks that the list spinner displays starts with the given value
 Assertion minEquals(int expectedMin)
          Checks that the list spinner displays starts with the given value
 Assertion stepSizeEquals(int expectedStepSize)
          Checks that the list spinner computes previous and next value with the given value.
 
Methods inherited from class org.uispec4j.Spinner
clickForNextValue, clickForPreviousValue, getAwtComponent, getDescriptionTypeName, nextValueEquals, previousValueEquals, setValue, valueEquals
 
Methods inherited from class org.uispec4j.AbstractSwingUIComponent
tooltipContains, tooltipEquals
 
Methods inherited from class org.uispec4j.AbstractUIComponent
addAttributes, backgroundEquals, backgroundNear, foregroundEquals, foregroundNear, getContainer, getContainer, getDescription, getDescription, getLabel, getName, getSubDescription, isEnabled, isVisible, pressKey, releaseKey, typeKey
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumberSpinner

public NumberSpinner(javax.swing.JSpinner jSpinner)
Method Detail

minEquals

public Assertion minEquals(int expectedMin)
Checks that the list spinner displays starts with the given value


maxEquals

public Assertion maxEquals(int expectedMax)
Checks that the list spinner displays starts with the given value


stepSizeEquals

public Assertion stepSizeEquals(int expectedStepSize)
Checks that the list spinner computes previous and next value with the given value.



Copyright © 2004-2010. All Rights Reserved.