public class Spinner extends AbstractSwingUIComponent
| Modifier and Type | Field and Description |
|---|---|
protected JSpinner |
jSpinner |
static Class[] |
SWING_CLASSES |
static String |
TYPE_NAME |
| Modifier and Type | Method and Description |
|---|---|
void |
clickForNextValue()
Clicks on the button for next value
|
void |
clickForPreviousValue()
Clicks on the button for previous value
|
JSpinner |
getAwtComponent()
Returns the Java GUI component represented by this object.
|
String |
getDescriptionTypeName()
Returns the name of the component as it will appear in the XML representation
returned by
UIComponent.getDescription(). |
Assertion |
nextValueEquals(Object expectedNextValue)
Checks that the next value is the given value
|
Assertion |
previousValueEquals(Object expectedPreviousValue)
Checks that the previous value is the given value
|
void |
setValue(Object value)
Changes the displayed text
|
Assertion |
valueEquals(Object expectedValue)
Checks that the spinner displays the given value
|
tooltipContains, tooltipEqualsaddAttributes, backgroundEquals, backgroundNear, foregroundEquals, foregroundNear, getContainer, getContainer, getDescription, getDescription, getLabel, getName, getSubDescription, isEnabled, isVisible, pressKey, releaseKey, typeKeypublic static final String TYPE_NAME
public static final Class[] SWING_CLASSES
protected JSpinner jSpinner
public Spinner(JSpinner jSpinner)
public JSpinner getAwtComponent()
UIComponentgetAwtComponent in interface UIComponentgetAwtComponent in class AbstractSwingUIComponentpublic String getDescriptionTypeName()
UIComponentUIComponent.getDescription().public Assertion valueEquals(Object expectedValue)
public Assertion previousValueEquals(Object expectedPreviousValue)
public Assertion nextValueEquals(Object expectedNextValue)
public void setValue(Object value) throws ItemNotFoundException
Changes the displayed text
This method will throw an exception if the value is not allowed in the spinner.
ItemNotFoundExceptionpublic void clickForNextValue()
public void clickForPreviousValue()
Copyright © 2004–2016. All rights reserved.