|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.uispec4j.AbstractUIComponent
org.uispec4j.ProgressBar
public class ProgressBar
Wrapper for JProgressBar components.
| Field Summary | |
|---|---|
static int |
DEFAULT_PRECISION
|
static java.lang.Class[] |
SWING_CLASSES
|
static java.lang.String |
TYPE_NAME
|
| Constructor Summary | |
|---|---|
ProgressBar(javax.swing.JProgressBar progressBar)
|
|
| Method Summary | |
|---|---|
Assertion |
completionEquals(int expectedValue)
Checks the completion value as a percentage (0-100) of the available range. |
Assertion |
displayedValueEquals(java.lang.String expectedProgressString)
|
javax.swing.JProgressBar |
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 |
isCompleted()
Checks the completion of the progress bar. |
void |
setPrecision(int value)
Sets the precision for the completion check. |
| 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
public static final int DEFAULT_PRECISION
| Constructor Detail |
|---|
public ProgressBar(javax.swing.JProgressBar progressBar)
| Method Detail |
|---|
public java.lang.String getDescriptionTypeName()
UIComponentUIComponent.getDescription().
public javax.swing.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 Assertion displayedValueEquals(java.lang.String expectedProgressString)
public void setPrecision(int value)
completionEquals(int)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||