public class JProgressBarOperator extends JComponentOperator implements Timeoutable, Outputable
Timeouts
Modifier and Type | Class and Description |
---|---|
static class |
JProgressBarOperator.JProgressBarFinder
Checks component type.
|
static interface |
JProgressBarOperator.ValueChooser
Deprecated.
Use waitState(ComponentChooser) instead.
|
JComponentOperator.JComponentByTipFinder, JComponentOperator.JComponentFinder
ContainerOperator.ContainerFinder
Operator.ComponentVisualizer, Operator.DefaultPathParser, Operator.DefaultStringComparator, Operator.Finder, Operator.MapAction, Operator.MapBooleanAction, Operator.MapByteAction, Operator.MapCharacterAction, Operator.MapDoubleAction, Operator.MapFloatAction, Operator.MapIntegerAction, Operator.MapLongAction, Operator.MapVoidAction, Operator.NoBlockingAction, Operator.PathParser, Operator.StringComparator
Modifier and Type | Field and Description |
---|---|
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.
|
A11Y_DATA, A11Y_DESCRIPTION_DPROP, A11Y_NAME_DPROP, TOOLTIP_TEXT_DPROP
HEIGHT_DPROP, IS_SHOWING_DPROP, IS_VISIBLE_DPROP, NAME_DPROP, WIDTH_DPROP, X_DPROP, Y_DPROP
CLASS_DPROP, TO_STRING_DPROP
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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. |
addAncestorListener, addVetoableChangeListener, computeVisibleRect, createToolTip, findJComponent, findJComponent, findJComponent, findJComponent, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getActionForKeyStroke, getAutoscrolls, getBorder, getCenterXForClick, getCenterYForClick, getClientProperty, getConditionForKeyStroke, getDebugGraphicsOptions, getInsets, getNextFocusableComponent, getRegisteredKeyStrokes, getRootPane, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getUIClassID, getVisibleRect, getWindowContainerOperator, grabFocus, isFocusCycleRoot, isManagingFocus, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintImmediately, paintImmediately, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeVetoableChangeListener, repaint, requestDefaultFocus, resetKeyboardActions, revalidate, scrollRectToVisible, setAlignmentX, setAlignmentY, setAutoscrolls, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, showToolTip, unregisterKeyboardAction, updateUI, waitJComponent, waitJComponent, waitJComponent, waitJComponent, waitToolTip
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
activateWindow, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, checkImage, checkImage, clickForPopup, clickForPopup, clickForPopup, clickForPopup, clickMouse, clickMouse, clickMouse, clickMouse, clickMouse, clickMouse, clickMouse, contains, contains, copyEnvironment, createImage, createImage, dispatchEvent, doLayout, dragMouse, dragMouse, dragMouse, dragNDrop, dragNDrop, dragNDrop, enableInputMethods, enterMouse, exitMouse, findComponent, findComponent, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getCenterX, getCenterY, getColorModel, getComponentAt, getComponentAt, getComponentOrientation, getContainer, getContainers, getCursor, getDropTarget, getEventDispatcher, getFocus, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getName, getParent, getPreferredSize, getSize, getSize, getSource, getToolkit, getTreeLock, getWidth, getWindow, getX, getY, hasFocus, imageUpdate, invalidate, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, list, list, list, list, list, makeComponentVisible, moveMouse, paint, paintAll, prepareImage, prepareImage, pressKey, pressKey, pressMouse, pressMouse, print, printAll, pushKey, pushKey, releaseKey, releaseKey, releaseMouse, releaseMouse, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFont, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, transferFocus, typeKey, typeKey, typeKey, update, validate, waitComponent, waitComponent, waitComponent, waitComponent, waitComponentEnabled, waitComponentShowing, waitComponentVisible, waitHasFocus, wtComponentEnabled
addOperatorPackage, addToDump, addToDump, createOperator, getCharBindingMap, getCharKey, getCharModifiers, getCharsKeys, getCharsKeys, getCharsModifiers, getCharsModifiers, getComparator, getDefaultComponentVisualizer, getDefaultMouseButton, getDefaultPathParser, getDefaultStringComparator, getDefaultVerification, getEnvironmentOperator, getParentPath, getParentPath, getPathParser, getPopupMouseButton, getProperties, getQueueTool, getVerification, getVisualizer, isCaptionEqual, isCaptionEqual, isCaptionEqual, lockQueue, parseString, parseString, printDump, produceNoBlocking, produceNoBlocking, produceTimeRestricted, produceTimeRestricted, runMapping, runMapping, runMapping, runMapping, runMapping, runMapping, runMapping, runMapping, runMapping, setCharBindingMap, setComparator, setDefaultComponentVisualizer, setDefaultPathParser, setDefaultStringComparator, setDefaultVerification, setPathParser, setProperties, setVerification, setVisualizer, toStringSource, unlockAndThrow, unlockQueue, waitState
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 Valuespublic 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
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 queuepublic int getMaximum()
JProgressBar.getMaximum()
through queuepublic int getMinimum()
JProgressBar.getMinimum()
through queuepublic javax.swing.BoundedRangeModel getModel()
JProgressBar.getModel()
through queuepublic int getOrientation()
JProgressBar.getOrientation()
through queuepublic double getPercentComplete()
JProgressBar.getPercentComplete()
through queuepublic java.lang.String getString()
JProgressBar.getString()
through queuepublic javax.swing.plaf.ProgressBarUI getUI()
JProgressBar.getUI()
through queuepublic int getValue()
JProgressBar.getValue()
through queuepublic boolean isBorderPainted()
JProgressBar.isBorderPainted()
through queuepublic boolean isStringPainted()
JProgressBar.isStringPainted()
through queuepublic void removeChangeListener(javax.swing.event.ChangeListener changeListener)
JProgressBar.removeChangeListener(ChangeListener)
through queuepublic void setBorderPainted(boolean b)
JProgressBar.setBorderPainted(boolean)
through queuepublic void setMaximum(int i)
JProgressBar.setMaximum(int)
through queuepublic void setMinimum(int i)
JProgressBar.setMinimum(int)
through queuepublic void setModel(javax.swing.BoundedRangeModel boundedRangeModel)
JProgressBar.setModel(BoundedRangeModel)
through queuepublic void setOrientation(int i)
JProgressBar.setOrientation(int)
through queuepublic void setString(java.lang.String string)
JProgressBar.setString(String)
through queuepublic void setStringPainted(boolean b)
JProgressBar.setStringPainted(boolean)
through queuepublic void setUI(javax.swing.plaf.ProgressBarUI progressBarUI)
JProgressBar.setUI(ProgressBarUI)
through queuepublic void setValue(int i)
JProgressBar.setValue(int)
through queue