org.uispec4j
Class DateSpinner

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

public class DateSpinner
extends Spinner

Wrapper for JSpinner components implementing a SpinnerDateModel.


Field Summary
 
Fields inherited from class org.uispec4j.Spinner
jSpinner, SWING_CLASSES, TYPE_NAME
 
Constructor Summary
DateSpinner(javax.swing.JSpinner jSpinner)
           
 
Method Summary
 Assertion calendarFieldsEquals(int expectedCalendarFields)
          Checks that the date spinner computes previous and next value with the given value.
 Assertion endDateEquals(java.lang.String expectedEndDate)
          Checks that the date spinner displays ends with the given value
 Assertion startDateEquals(java.lang.String expectedStartDate)
          Checks that the date spinner displays starts 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

DateSpinner

public DateSpinner(javax.swing.JSpinner jSpinner)
            throws ItemNotFoundException
Throws:
ItemNotFoundException
Method Detail

startDateEquals

public Assertion startDateEquals(java.lang.String expectedStartDate)
Checks that the date spinner displays starts with the given value

See Also:
to format the date as String

endDateEquals

public Assertion endDateEquals(java.lang.String expectedEndDate)
Checks that the date spinner displays ends with the given value

See Also:
to format the date as String

calendarFieldsEquals

public Assertion calendarFieldsEquals(int expectedCalendarFields)
Checks that the date spinner computes previous and next value with the given value. Calendar constants



Copyright © 2004-2010. All Rights Reserved.