public class ProgressBar extends AbstractUIComponent
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_PRECISION |
static Class[] |
SWING_CLASSES |
static String |
TYPE_NAME |
Constructor and Description |
---|
ProgressBar(JProgressBar progressBar) |
Modifier and Type | Method and Description |
---|---|
Assertion |
completionEquals(int expectedValue)
Checks the completion value as a percentage (0-100) of the available range.
|
Assertion |
displayedValueEquals(String expectedProgressString) |
JProgressBar |
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 |
isCompleted()
Checks the completion of the progress bar.
|
void |
setPrecision(int value)
Sets the precision for the completion check.
|
addAttributes, backgroundEquals, backgroundNear, foregroundEquals, foregroundNear, getContainer, getContainer, getDescription, getDescription, getLabel, getName, getSubDescription, isEnabled, isVisible, pressKey, releaseKey, typeKey
public static final String TYPE_NAME
public static final Class[] SWING_CLASSES
public static final int DEFAULT_PRECISION
public ProgressBar(JProgressBar progressBar)
public String getDescriptionTypeName()
UIComponent
UIComponent.getDescription()
.public JProgressBar getAwtComponent()
UIComponent
public Assertion completionEquals(int expectedValue)
expectedValue
- an int between 0 and 100, or -1 if the status is undeterminatesetPrecision(int)
public Assertion isCompleted()
public void setPrecision(int value)
Sets the precision for the completion check. This precision is the greatest difference allowed between the actual and expected completion values (both are integers between 0 and 100).
The default precision is 2.completionEquals(int)
Copyright © 2004–2016. All rights reserved.