public class JScrollBarOperator extends JComponentOperator implements Timeoutable, Outputable
Timeouts
Modifier and Type | Class and Description |
---|---|
static class |
JScrollBarOperator.JScrollBarFinder
Checks component type.
|
static interface |
JScrollBarOperator.ScrollChecker
Interface can be used to define some kind of complicated
scrolling rules.
|
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 |
HORIZONTAL_ORIENTATION_DPROP_VALUE
Identifier for a "HORIZONTAL" value of "orientation" property.
|
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 |
ORIENTATION_DPROP
Identifier for a "orientation" property.
|
static java.lang.String |
VALUE_DPROP
Identifier for a "value" property.
|
static java.lang.String |
VERTICAL_ORIENTATION_DPROP_VALUE
Identifier for a "VERTICAL" value of "orientation" 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 |
---|
JScrollBarOperator(ContainerOperator cont)
Constructor.
|
JScrollBarOperator(ContainerOperator cont,
ComponentChooser chooser)
Constructs a JScrollBarOperator object.
|
JScrollBarOperator(ContainerOperator cont,
ComponentChooser chooser,
int index)
Constructs a JScrollBarOperator object.
|
JScrollBarOperator(ContainerOperator cont,
int index)
Constructor.
|
JScrollBarOperator(javax.swing.JScrollBar b)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addAdjustmentListener(java.awt.event.AdjustmentListener adjustmentListener)
Maps
JScrollBar.addAdjustmentListener(AdjustmentListener) through queue |
void |
copyEnvironment(Operator anotherOperator)
Copies all environment (output, timeouts,
visualizer) from another operator.
|
static javax.swing.JScrollBar |
findJScrollBar(java.awt.Container cont)
Searches 0'th JScrollBar in container.
|
static javax.swing.JScrollBar |
findJScrollBar(java.awt.Container cont,
ComponentChooser chooser)
Searches 0'th JScrollBar in container.
|
static javax.swing.JScrollBar |
findJScrollBar(java.awt.Container cont,
ComponentChooser chooser,
int index)
Searches JScrollBar in container.
|
static javax.swing.JScrollBar |
findJScrollBar(java.awt.Container cont,
int index)
Searches JScrollBar in container.
|
int |
getBlockIncrement()
Maps
JScrollBar.getBlockIncrement() through queue |
int |
getBlockIncrement(int i)
Maps
JScrollBar.getBlockIncrement(int) through queue |
JButtonOperator |
getDecreaseButton()
Returns a button responsible for value decreasing.
|
java.util.Hashtable |
getDump()
Returns information about component.
|
JButtonOperator |
getIncreaseButton()
Returns a button responsible for value increasing.
|
int |
getMaximum()
Maps
JScrollBar.getMaximum() through queue |
int |
getMinimum()
Maps
JScrollBar.getMinimum() through queue |
javax.swing.BoundedRangeModel |
getModel()
Maps
JScrollBar.getModel() through queue |
int |
getOrientation()
Maps
JScrollBar.getOrientation() through queue |
TestOut |
getOutput()
Returns print output streams or writers.
|
Timeouts |
getTimeouts()
Return current timeouts.
|
javax.swing.plaf.ScrollBarUI |
getUI()
Maps
JScrollBar.getUI() through queue |
int |
getUnitIncrement()
Maps
JScrollBar.getUnitIncrement() through queue |
int |
getUnitIncrement(int i)
Maps
JScrollBar.getUnitIncrement(int) through queue |
int |
getValue()
Maps
JScrollBar.getValue() through queue |
boolean |
getValueIsAdjusting()
Maps
JScrollBar.getValueIsAdjusting() through queue |
int |
getVisibleAmount()
Maps
JScrollBar.getVisibleAmount() through queue |
void |
removeAdjustmentListener(java.awt.event.AdjustmentListener adjustmentListener)
Maps
JScrollBar.removeAdjustmentListener(AdjustmentListener) through queue |
void |
scroll(boolean increase)
Deprecated.
All scrolling is done through a ScrollDriver registered to this operator type.
|
void |
scrollTo(JScrollBarOperator.ScrollChecker checker)
Scrolls scrollbar to the position defined by a ScrollChecker implementation.
|
void |
scrollTo(ScrollAdjuster adj)
Scrolls scrollbar to the position defined by a ScrollAdjuster implementation.
|
void |
scrollTo(Waitable w,
java.lang.Object waiterParam,
boolean increase)
Scrolls scrollbar to the position defined by w parameter.
|
void |
scrollToMaximum()
Scrolls to maximum value.
|
void |
scrollToMinimum()
Scrolls to minimum value.
|
void |
scrollToValue(double proportionalValue)
Scrolls scroll bar to necessary proportional value.
|
void |
scrollToValue(int value)
Scrolls scroll bar to necessary value.
|
void |
setBlockIncrement(int i)
Maps
JScrollBar.setBlockIncrement(int) through queue |
void |
setMaximum(int i)
Maps
JScrollBar.setMaximum(int) through queue |
void |
setMinimum(int i)
Maps
JScrollBar.setMinimum(int) through queue |
void |
setModel(javax.swing.BoundedRangeModel boundedRangeModel)
Maps
JScrollBar.setModel(BoundedRangeModel) through queue |
void |
setOrientation(int i)
Maps
JScrollBar.setOrientation(int) through queue |
void |
setOutput(TestOut out)
Defines print output streams or writers.
|
void |
setTimeouts(Timeouts timeouts)
Defines current timeouts.
|
void |
setUnitIncrement(int i)
Maps
JScrollBar.setUnitIncrement(int) through queue |
void |
setValue(int i)
Maps
JScrollBar.setValue(int) through queue |
void |
setValueIsAdjusting(boolean b)
Maps
JScrollBar.setValueIsAdjusting(boolean) through queue |
void |
setValues(int i,
int i1,
int i2,
int i3)
Maps
JScrollBar.setValues(int, int, int, int) through queue |
void |
setVisibleAmount(int i)
Maps
JScrollBar.setVisibleAmount(int) through queue |
static javax.swing.JScrollBar |
waitJScrollBar(java.awt.Container cont)
Waits 0'th JScrollBar in container.
|
static javax.swing.JScrollBar |
waitJScrollBar(java.awt.Container cont,
ComponentChooser chooser)
Waits 0'th JScrollBar in container.
|
static javax.swing.JScrollBar |
waitJScrollBar(java.awt.Container cont,
ComponentChooser chooser,
int index)
Waits JScrollBar in container.
|
static javax.swing.JScrollBar |
waitJScrollBar(java.awt.Container cont,
int index)
Waits JScrollBar in container.
|
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, 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 static final java.lang.String ORIENTATION_DPROP
getDump()
,
Constant Field Valuespublic static final java.lang.String HORIZONTAL_ORIENTATION_DPROP_VALUE
getDump()
,
Constant Field Valuespublic static final java.lang.String VERTICAL_ORIENTATION_DPROP_VALUE
getDump()
,
Constant Field Valuespublic JScrollBarOperator(javax.swing.JScrollBar b)
b
- JScrollBar component.public JScrollBarOperator(ContainerOperator cont, ComponentChooser chooser, int index)
cont
- a containerchooser
- a component chooser specifying searching criteria.index
- an index between appropriate ones.public JScrollBarOperator(ContainerOperator cont, ComponentChooser chooser)
cont
- a containerchooser
- a component chooser specifying searching criteria.public JScrollBarOperator(ContainerOperator cont, int index)
cont
- Operator pointing a container to search component in.index
- Ordinal component index.TimeoutExpiredException
public JScrollBarOperator(ContainerOperator cont)
cont
- Operator pointing a container to search component in.TimeoutExpiredException
public static javax.swing.JScrollBar findJScrollBar(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.JScrollBar findJScrollBar(java.awt.Container cont, ComponentChooser chooser)
cont
- Container to search component in.chooser
- org.netbeans.jemmy.ComponentChooser implementation.public static javax.swing.JScrollBar findJScrollBar(java.awt.Container cont, int index)
cont
- Container to search component in.index
- Ordinal component index.public static javax.swing.JScrollBar findJScrollBar(java.awt.Container cont)
cont
- Container to search component in.public static javax.swing.JScrollBar waitJScrollBar(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.JScrollBar waitJScrollBar(java.awt.Container cont, ComponentChooser chooser)
cont
- Container to search component in.chooser
- org.netbeans.jemmy.ComponentChooser implementation.TimeoutExpiredException
public static javax.swing.JScrollBar waitJScrollBar(java.awt.Container cont, int index)
cont
- Container to search component in.index
- Ordinal component index.TimeoutExpiredException
public static javax.swing.JScrollBar waitJScrollBar(java.awt.Container cont)
cont
- Container to search component in.TimeoutExpiredException
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 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 copyEnvironment(Operator anotherOperator)
Operator
copyEnvironment
in class ComponentOperator
anotherOperator
- an operator to copy the environment to.public void scroll(boolean increase)
increase
- a scrolling direction.TimeoutExpiredException
public void scrollTo(Waitable w, java.lang.Object waiterParam, boolean increase)
w
- Scrolling is stopped when w.actionProduced(waiterParam) != nullwaiterParam
- a waiting parameter.increase
- a scrolling direction.TimeoutExpiredException
scrollTo(JScrollBarOperator.ScrollChecker)
public void scrollTo(JScrollBarOperator.ScrollChecker checker)
checker
- ScrollChecker implementation defining scrolling direction, and so on.TimeoutExpiredException
JScrollBarOperator.ScrollChecker
public void scrollTo(ScrollAdjuster adj)
adj
- defines scrolling direction, and so on.TimeoutExpiredException
public void scrollToValue(int value)
value
- Scroll bar value to scroll to.TimeoutExpiredException
public void scrollToValue(double proportionalValue)
proportionalValue
- Proportional scroll to. Must be >= 0 and <= 1.TimeoutExpiredException
public void scrollToMinimum()
TimeoutExpiredException
public void scrollToMaximum()
TimeoutExpiredException
public JButtonOperator getDecreaseButton()
public JButtonOperator getIncreaseButton()
public java.util.Hashtable getDump()
ComponentOperator
getDump
in class JComponentOperator
public void addAdjustmentListener(java.awt.event.AdjustmentListener adjustmentListener)
JScrollBar.addAdjustmentListener(AdjustmentListener)
through queuepublic int getBlockIncrement()
JScrollBar.getBlockIncrement()
through queuepublic int getBlockIncrement(int i)
JScrollBar.getBlockIncrement(int)
through queuepublic int getMaximum()
JScrollBar.getMaximum()
through queuepublic int getMinimum()
JScrollBar.getMinimum()
through queuepublic javax.swing.BoundedRangeModel getModel()
JScrollBar.getModel()
through queuepublic int getOrientation()
JScrollBar.getOrientation()
through queuepublic javax.swing.plaf.ScrollBarUI getUI()
JScrollBar.getUI()
through queuepublic int getUnitIncrement()
JScrollBar.getUnitIncrement()
through queuepublic int getUnitIncrement(int i)
JScrollBar.getUnitIncrement(int)
through queuepublic int getValue()
JScrollBar.getValue()
through queuepublic boolean getValueIsAdjusting()
JScrollBar.getValueIsAdjusting()
through queuepublic int getVisibleAmount()
JScrollBar.getVisibleAmount()
through queuepublic void removeAdjustmentListener(java.awt.event.AdjustmentListener adjustmentListener)
JScrollBar.removeAdjustmentListener(AdjustmentListener)
through queuepublic void setBlockIncrement(int i)
JScrollBar.setBlockIncrement(int)
through queuepublic void setMaximum(int i)
JScrollBar.setMaximum(int)
through queuepublic void setMinimum(int i)
JScrollBar.setMinimum(int)
through queuepublic void setModel(javax.swing.BoundedRangeModel boundedRangeModel)
JScrollBar.setModel(BoundedRangeModel)
through queuepublic void setOrientation(int i)
JScrollBar.setOrientation(int)
through queuepublic void setUnitIncrement(int i)
JScrollBar.setUnitIncrement(int)
through queuepublic void setValue(int i)
JScrollBar.setValue(int)
through queuepublic void setValueIsAdjusting(boolean b)
JScrollBar.setValueIsAdjusting(boolean)
through queuepublic void setValues(int i, int i1, int i2, int i3)
JScrollBar.setValues(int, int, int, int)
through queuepublic void setVisibleAmount(int i)
JScrollBar.setVisibleAmount(int)
through queue