|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.uispec4j.AbstractUIComponent
org.uispec4j.AbstractSwingUIComponent
org.uispec4j.Spinner
public class Spinner
Wrapper for JSpinner components.
| Field Summary | |
|---|---|
protected javax.swing.JSpinner |
jSpinner
|
static java.lang.Class[] |
SWING_CLASSES
|
static java.lang.String |
TYPE_NAME
|
| Constructor Summary | |
|---|---|
Spinner(javax.swing.JSpinner jSpinner)
|
|
| Method Summary | |
|---|---|
void |
clickForNextValue()
Clicks on the button for next value |
void |
clickForPreviousValue()
Clicks on the button for previous value |
javax.swing.JSpinner |
getAwtComponent()
Returns the Java GUI component represented by this object. |
java.lang.String |
getDescriptionTypeName()
Returns the name of the component as it will appear in the XML representation returned by UIComponent.getDescription(). |
Assertion |
nextValueEquals(java.lang.Object expectedNextValue)
Checks that the next value is the given value |
Assertion |
previousValueEquals(java.lang.Object expectedPreviousValue)
Checks that the previous value is the given value |
void |
setValue(java.lang.Object value)
Changes the displayed text This method will throw an exception if the value is not allowed in the spinner. |
Assertion |
valueEquals(java.lang.Object expectedValue)
Checks that the spinner displays the given value |
| 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 |
| Field Detail |
|---|
public static final java.lang.String TYPE_NAME
public static final java.lang.Class[] SWING_CLASSES
protected javax.swing.JSpinner jSpinner
| Constructor Detail |
|---|
public Spinner(javax.swing.JSpinner jSpinner)
| Method Detail |
|---|
public javax.swing.JSpinner getAwtComponent()
UIComponent
getAwtComponent in interface UIComponentgetAwtComponent in class AbstractSwingUIComponentpublic java.lang.String getDescriptionTypeName()
UIComponentUIComponent.getDescription().
public Assertion valueEquals(java.lang.Object expectedValue)
public Assertion previousValueEquals(java.lang.Object expectedPreviousValue)
public Assertion nextValueEquals(java.lang.Object expectedNextValue)
public void setValue(java.lang.Object value)
throws ItemNotFoundException
ItemNotFoundExceptionpublic void clickForNextValue()
public void clickForPreviousValue()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||