|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.jemmy.operators.Operator
org.netbeans.jemmy.operators.ComponentOperator
org.netbeans.jemmy.operators.ContainerOperator
org.netbeans.jemmy.operators.JComponentOperator
org.netbeans.jemmy.operators.JProgressBarOperator
public class JProgressBarOperator
Operator is supposed to be used to operate with an instance of
javax.swing.JProgressBar class.
Timeouts used:
JProgressBarOperator.WaitValueTimeout - used from waitValue() method
.
Timeouts
Nested Class Summary | |
---|---|
static class |
JProgressBarOperator.JProgressBarFinder
Checks component type. |
static interface |
JProgressBarOperator.ValueChooser
Deprecated. Use waitState(ComponentChooser) instead. |
Nested classes/interfaces inherited from class org.netbeans.jemmy.operators.JComponentOperator |
---|
JComponentOperator.JComponentByTipFinder, JComponentOperator.JComponentFinder |
Nested classes/interfaces inherited from class org.netbeans.jemmy.operators.ContainerOperator |
---|
ContainerOperator.ContainerFinder |
Nested classes/interfaces inherited from class org.netbeans.jemmy.operators.Operator |
---|
Operator.ComponentVisualizer, Operator.DefaultPathParser, Operator.DefaultStringComparator, Operator.Finder, Operator.MapAction, Operator.MapBooleanAction, Operator.MapByteAction, Operator.MapDoubleAction, Operator.MapFloatAction, Operator.MapCharacterAction, Operator.MapIntegerAction, Operator.MapLongAction, Operator.MapVoidAction, Operator.NoBlockingAction, Operator.PathParser, Operator.StringComparator |
Field Summary | |
---|---|
static java.lang.String |
MAXIMUM_DPROP
Identifier for a "maximum" property. |
static java.lang.String |
MINIMUM_DPROP
Identifier for a "minimum" property. |
static java.lang.String |
VALUE_DPROP
Identifier for a "value" property. |
Fields inherited from class org.netbeans.jemmy.operators.JComponentOperator |
---|
A11Y_DATA, A11Y_DESCRIPTION_DPROP, A11Y_NAME_DPROP, TOOLTIP_TEXT_DPROP |
Fields inherited from class org.netbeans.jemmy.operators.ComponentOperator |
---|
HEIGHT_DPROP, IS_SHOWING_DPROP, IS_VISIBLE_DPROP, NAME_DPROP, WIDTH_DPROP, X_DPROP, Y_DPROP |
Fields inherited from class org.netbeans.jemmy.operators.Operator |
---|
CLASS_DPROP, TO_STRING_DPROP |
Constructor Summary | |
---|---|
JProgressBarOperator(ContainerOperator cont)
Constructor. |
|
JProgressBarOperator(ContainerOperator cont,
ComponentChooser chooser)
Constructs a JProgressBarOperator object. |
|
JProgressBarOperator(ContainerOperator cont,
ComponentChooser chooser,
int index)
Constructs a JProgressBarOperator object. |
|
JProgressBarOperator(ContainerOperator cont,
int index)
Constructor. |
|
JProgressBarOperator(javax.swing.JProgressBar b)
Constructor. |
Method Summary | |
---|---|
void |
addChangeListener(javax.swing.event.ChangeListener changeListener)
Maps JProgressBar.addChangeListener(ChangeListener) through queue |
static javax.swing.JProgressBar |
findJProgressBar(java.awt.Container cont)
Searches 0'th JProgressBar in container. |
static javax.swing.JProgressBar |
findJProgressBar(java.awt.Container cont,
ComponentChooser chooser)
Searches 0'th JProgressBar in container. |
static javax.swing.JProgressBar |
findJProgressBar(java.awt.Container cont,
ComponentChooser chooser,
int index)
Searches JProgressBar in container. |
static javax.swing.JProgressBar |
findJProgressBar(java.awt.Container cont,
int index)
Searches JProgressBar in container. |
java.util.Hashtable |
getDump()
Returns information about component. |
int |
getMaximum()
Maps JProgressBar.getMaximum() through queue |
int |
getMinimum()
Maps JProgressBar.getMinimum() through queue |
javax.swing.BoundedRangeModel |
getModel()
Maps JProgressBar.getModel() through queue |
int |
getOrientation()
Maps JProgressBar.getOrientation() through queue |
TestOut |
getOutput()
Returns print output streams or writers. |
double |
getPercentComplete()
Maps JProgressBar.getPercentComplete() through queue |
java.lang.String |
getString()
Maps JProgressBar.getString() through queue |
Timeouts |
getTimeouts()
Return current timeouts. |
javax.swing.plaf.ProgressBarUI |
getUI()
Maps JProgressBar.getUI() through queue |
int |
getValue()
Maps JProgressBar.getValue() through queue |
boolean |
isBorderPainted()
Maps JProgressBar.isBorderPainted() through queue |
boolean |
isStringPainted()
Maps JProgressBar.isStringPainted() through queue |
void |
removeChangeListener(javax.swing.event.ChangeListener changeListener)
Maps JProgressBar.removeChangeListener(ChangeListener) through queue |
void |
setBorderPainted(boolean b)
Maps JProgressBar.setBorderPainted(boolean) through queue |
void |
setMaximum(int i)
Maps JProgressBar.setMaximum(int) through queue |
void |
setMinimum(int i)
Maps JProgressBar.setMinimum(int) through queue |
void |
setModel(javax.swing.BoundedRangeModel boundedRangeModel)
Maps JProgressBar.setModel(BoundedRangeModel) through queue |
void |
setOrientation(int i)
Maps JProgressBar.setOrientation(int) through queue |
void |
setOutput(TestOut out)
Defines print output streams or writers. |
void |
setString(java.lang.String string)
Maps JProgressBar.setString(String) through queue |
void |
setStringPainted(boolean b)
Maps JProgressBar.setStringPainted(boolean) through queue |
void |
setTimeouts(Timeouts timeouts)
Defines current timeouts. |
void |
setUI(javax.swing.plaf.ProgressBarUI progressBarUI)
Maps JProgressBar.setUI(ProgressBarUI) through queue |
void |
setValue(int i)
Maps JProgressBar.setValue(int) through queue |
static javax.swing.JProgressBar |
waitJProgressBar(java.awt.Container cont)
Waits 0'th JProgressBar in container. |
static javax.swing.JProgressBar |
waitJProgressBar(java.awt.Container cont,
ComponentChooser chooser)
Waits 0'th JProgressBar in container. |
static javax.swing.JProgressBar |
waitJProgressBar(java.awt.Container cont,
ComponentChooser chooser,
int index)
Waits JProgressBar in container. |
static javax.swing.JProgressBar |
waitJProgressBar(java.awt.Container cont,
int index)
Waits JProgressBar in container. |
void |
waitValue(int value)
Waits progress bar value to be less or equal to value parameter. |
void |
waitValue(JProgressBarOperator.ValueChooser chooser)
Deprecated. Use waitState(ComponentChooser) instead. |
void |
waitValue(java.lang.String value)
Waits progress bar string to match value parameter. |
Methods inherited from class org.netbeans.jemmy.operators.ContainerOperator |
---|
add, add, add, add, add, addContainerListener, createSubOperator, createSubOperator, findComponentAt, findComponentAt, findContainer, findContainer, findContainer, findContainer, findContainerUnder, findContainerUnder, findSubComponent, findSubComponent, getComponent, getComponentCount, getComponents, getInsets, getLayout, isAncestorOf, paintComponents, printComponents, remove, remove, removeAll, removeContainerListener, setLayout, waitContainer, waitContainer, waitContainer, waitContainer, waitSubComponent, waitSubComponent |
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 MINIMUM_DPROP
getDump()
,
Constant Field Valuespublic static final java.lang.String MAXIMUM_DPROP
getDump()
,
Constant Field Valuespublic static final java.lang.String VALUE_DPROP
getDump()
,
Constant Field ValuesConstructor Detail |
---|
public JProgressBarOperator(javax.swing.JProgressBar b)
b
- JProgressBar component.public JProgressBarOperator(ContainerOperator cont, ComponentChooser chooser, int index)
cont
- a containerchooser
- a component chooser specifying searching criteria.index
- an index between appropriate ones.public JProgressBarOperator(ContainerOperator cont, ComponentChooser chooser)
cont
- a containerchooser
- a component chooser specifying searching criteria.public JProgressBarOperator(ContainerOperator cont, int index)
cont
- Operator pointing a container to search component in.index
- Ordinal component index.
TimeoutExpiredException
public JProgressBarOperator(ContainerOperator cont)
cont
- Operator pointing a container to search component in.
TimeoutExpiredException
Method Detail |
---|
public static javax.swing.JProgressBar findJProgressBar(java.awt.Container cont, ComponentChooser chooser, int index)
cont
- Container to search component in.chooser
- org.netbeans.jemmy.ComponentChooser implementation.index
- Ordinal component index.
public static javax.swing.JProgressBar findJProgressBar(java.awt.Container cont, ComponentChooser chooser)
cont
- Container to search component in.chooser
- org.netbeans.jemmy.ComponentChooser implementation.
public static javax.swing.JProgressBar findJProgressBar(java.awt.Container cont, int index)
cont
- Container to search component in.index
- Ordinal component index.
public static javax.swing.JProgressBar findJProgressBar(java.awt.Container cont)
cont
- Container to search component in.
public static javax.swing.JProgressBar waitJProgressBar(java.awt.Container cont, ComponentChooser chooser, int index)
cont
- Container to search component in.chooser
- org.netbeans.jemmy.ComponentChooser implementation.index
- Ordinal component index.
TimeoutExpiredException
public static javax.swing.JProgressBar waitJProgressBar(java.awt.Container cont, ComponentChooser chooser)
cont
- Container to search component in.chooser
- org.netbeans.jemmy.ComponentChooser implementation.
TimeoutExpiredException
public static javax.swing.JProgressBar waitJProgressBar(java.awt.Container cont, int index)
cont
- Container to search component in.index
- Ordinal component index.
TimeoutExpiredException
public static javax.swing.JProgressBar waitJProgressBar(java.awt.Container cont)
cont
- Container to search component in.
TimeoutExpiredException
public void setTimeouts(Timeouts timeouts)
Timeoutable
setTimeouts
in interface Timeoutable
setTimeouts
in class JComponentOperator
timeouts
- A collection of timeout assignments.Timeoutable.getTimeouts()
public Timeouts getTimeouts()
Timeoutable
getTimeouts
in interface Timeoutable
getTimeouts
in class JComponentOperator
Timeoutable.setTimeouts(org.netbeans.jemmy.Timeouts)
public void setOutput(TestOut out)
Outputable
setOutput
in interface Outputable
setOutput
in class JComponentOperator
out
- Identify the streams or writers used for print output.Outputable.getOutput()
public TestOut getOutput()
Outputable
getOutput
in interface Outputable
getOutput
in class JComponentOperator
Outputable.setOutput(org.netbeans.jemmy.TestOut)
public void waitValue(JProgressBarOperator.ValueChooser chooser)
chooser
to be reached.
chooser
- an object specifying waiting criteria.waitValue(int)
public void waitValue(int value)
value
parameter.
Can be used for typical progress bar (when value is increasing).
value
- a value to reach.Operator.waitState(ComponentChooser)
public void waitValue(java.lang.String value)
value
parameter.
value
- a string value.Operator.waitState(ComponentChooser)
public java.util.Hashtable getDump()
ComponentOperator
getDump
in class JComponentOperator
public void addChangeListener(javax.swing.event.ChangeListener changeListener)
JProgressBar.addChangeListener(ChangeListener)
through queue
public int getMaximum()
JProgressBar.getMaximum()
through queue
public int getMinimum()
JProgressBar.getMinimum()
through queue
public javax.swing.BoundedRangeModel getModel()
JProgressBar.getModel()
through queue
public int getOrientation()
JProgressBar.getOrientation()
through queue
public double getPercentComplete()
JProgressBar.getPercentComplete()
through queue
public java.lang.String getString()
JProgressBar.getString()
through queue
public javax.swing.plaf.ProgressBarUI getUI()
JProgressBar.getUI()
through queue
public int getValue()
JProgressBar.getValue()
through queue
public boolean isBorderPainted()
JProgressBar.isBorderPainted()
through queue
public boolean isStringPainted()
JProgressBar.isStringPainted()
through queue
public void removeChangeListener(javax.swing.event.ChangeListener changeListener)
JProgressBar.removeChangeListener(ChangeListener)
through queue
public void setBorderPainted(boolean b)
JProgressBar.setBorderPainted(boolean)
through queue
public void setMaximum(int i)
JProgressBar.setMaximum(int)
through queue
public void setMinimum(int i)
JProgressBar.setMinimum(int)
through queue
public void setModel(javax.swing.BoundedRangeModel boundedRangeModel)
JProgressBar.setModel(BoundedRangeModel)
through queue
public void setOrientation(int i)
JProgressBar.setOrientation(int)
through queue
public void setString(java.lang.String string)
JProgressBar.setString(String)
through queue
public void setStringPainted(boolean b)
JProgressBar.setStringPainted(boolean)
through queue
public void setUI(javax.swing.plaf.ProgressBarUI progressBarUI)
JProgressBar.setUI(ProgressBarUI)
through queue
public void setValue(int i)
JProgressBar.setValue(int)
through queue
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |