| |
|
| java.lang.Object org.uispec4j.AbstractUIComponent org.uispec4j.Slider
Slider | public class Slider extends AbstractUIComponent (Code) | | Wrapper for JSlider components.
This class provides means for checking the contents and the current position of the knob,
changing the position, etc.
|
SWING_CLASSES | final public static Class[] SWING_CLASSES(Code) | | |
getDescriptionTypeName | public String getDescriptionTypeName()(Code) | | |
positionEquals | public Assertion positionEquals(String expectedLabel)(Code) | | Checks that the current position corresponds to the specified label
|
relativePositionEquals | public Assertion relativePositionEquals(int expectedValue)(Code) | | Checks the knob position as a percentage (0-100) of the available range.
The actual completion must be equal to the given value plus or minus the slider precision.
Parameters: expectedValue - an int between 0 and 100, or -1 if the status is undeterminate See Also: Slider.setPrecision(int) |
setPrecision | public void setPrecision(int value)(Code) | | Sets the precision for the relative position check. This precision is the greatest difference
allowed between the actual and expected position values (both are integers between 0
and 100).
The default precision is 2.
See Also: Slider.relativePositionEquals(int) |
|
|
|