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.JComponentFinderContainerOperator.ContainerFinderOperator.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 String |
HORIZONTAL_ORIENTATION_DPROP_VALUE
Identifier for a "HORIZONTAL" value of "orientation" property.
|
static String |
MAXIMUM_DPROP
Identifier for a "maximum" property.
|
static String |
MINIMUM_DPROP
Identifier for a "minimum" property.
|
static String |
ORIENTATION_DPROP
Identifier for a "orientation" property.
|
static String |
VALUE_DPROP
Identifier for a "value" property.
|
static String |
VERTICAL_ORIENTATION_DPROP_VALUE
Identifier for a "VERTICAL" value of "orientation" property.
|
A11Y_DATA, A11Y_DESCRIPTION_DPROP, A11Y_NAME_DPROP, TOOLTIP_TEXT_DPROPHEIGHT_DPROP, IS_SHOWING_DPROP, IS_VISIBLE_DPROP, NAME_DPROP, WIDTH_DPROP, X_DPROP, Y_DPROPCLASS_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(JScrollBar b)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAdjustmentListener(AdjustmentListener adjustmentListener)
Maps
JScrollBar.addAdjustmentListener(AdjustmentListener) through queue |
void |
copyEnvironment(Operator anotherOperator)
Copies all environment (output, timeouts,
visualizer) from another operator.
|
static JScrollBar |
findJScrollBar(Container cont)
Searches 0'th JScrollBar in container.
|
static JScrollBar |
findJScrollBar(Container cont,
ComponentChooser chooser)
Searches 0'th JScrollBar in container.
|
static JScrollBar |
findJScrollBar(Container cont,
ComponentChooser chooser,
int index)
Searches JScrollBar in container.
|
static JScrollBar |
findJScrollBar(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.
|
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 |
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.
|
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(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,
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(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 JScrollBar |
waitJScrollBar(Container cont)
Waits 0'th JScrollBar in container.
|
static JScrollBar |
waitJScrollBar(Container cont,
ComponentChooser chooser)
Waits 0'th JScrollBar in container.
|
static JScrollBar |
waitJScrollBar(Container cont,
ComponentChooser chooser,
int index)
Waits JScrollBar in container.
|
static JScrollBar |
waitJScrollBar(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, waitToolTipadd, 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, waitSubComponentactivateWindow, 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, wtComponentEnabledaddOperatorPackage, 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, waitStatepublic static final String MINIMUM_DPROP
getDump(),
Constant Field Valuespublic static final String MAXIMUM_DPROP
getDump(),
Constant Field Valuespublic static final String VALUE_DPROP
getDump(),
Constant Field Valuespublic static final String ORIENTATION_DPROP
getDump(),
Constant Field Valuespublic static final String HORIZONTAL_ORIENTATION_DPROP_VALUE
getDump(),
Constant Field Valuespublic static final String VERTICAL_ORIENTATION_DPROP_VALUE
getDump(),
Constant Field Valuespublic JScrollBarOperator(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.TimeoutExpiredExceptionpublic JScrollBarOperator(ContainerOperator cont)
cont - Operator pointing a container to search component in.TimeoutExpiredExceptionpublic static JScrollBar findJScrollBar(Container cont, ComponentChooser chooser, int index)
cont - Container to search component in.chooser - org.netbeans.jemmy.ComponentChooser implementation.index - Ordinal component index.public static JScrollBar findJScrollBar(Container cont, ComponentChooser chooser)
cont - Container to search component in.chooser - org.netbeans.jemmy.ComponentChooser implementation.public static JScrollBar findJScrollBar(Container cont, int index)
cont - Container to search component in.index - Ordinal component index.public static JScrollBar findJScrollBar(Container cont)
cont - Container to search component in.public static JScrollBar waitJScrollBar(Container cont, ComponentChooser chooser, int index)
cont - Container to search component in.chooser - org.netbeans.jemmy.ComponentChooser implementation.index - Ordinal component index.TimeoutExpiredExceptionpublic static JScrollBar waitJScrollBar(Container cont, ComponentChooser chooser)
cont - Container to search component in.chooser - org.netbeans.jemmy.ComponentChooser implementation.TimeoutExpiredExceptionpublic static JScrollBar waitJScrollBar(Container cont, int index)
cont - Container to search component in.index - Ordinal component index.TimeoutExpiredExceptionpublic static JScrollBar waitJScrollBar(Container cont)
cont - Container to search component in.TimeoutExpiredExceptionpublic void setOutput(TestOut out)
OutputablesetOutput in interface OutputablesetOutput in class JComponentOperatorout - Identify the streams or writers used for print output.Outputable.getOutput()public TestOut getOutput()
OutputablegetOutput in interface OutputablegetOutput in class JComponentOperatorOutputable.setOutput(org.netbeans.jemmy.TestOut)public void setTimeouts(Timeouts timeouts)
TimeoutablesetTimeouts in interface TimeoutablesetTimeouts in class JComponentOperatortimeouts - A collection of timeout assignments.Timeoutable.getTimeouts()public Timeouts getTimeouts()
TimeoutablegetTimeouts in interface TimeoutablegetTimeouts in class JComponentOperatorTimeoutable.setTimeouts(org.netbeans.jemmy.Timeouts)public void copyEnvironment(Operator anotherOperator)
OperatorcopyEnvironment in class ComponentOperatoranotherOperator - an operator to copy the environment to.public void scroll(boolean increase)
increase - a scrolling direction.TimeoutExpiredExceptionpublic void scrollTo(Waitable w, Object waiterParam, boolean increase)
w - Scrolling is stopped when w.actionProduced(waiterParam) != nullwaiterParam - a waiting parameter.increase - a scrolling direction.TimeoutExpiredExceptionscrollTo(JScrollBarOperator.ScrollChecker)public void scrollTo(JScrollBarOperator.ScrollChecker checker)
checker - ScrollChecker implementation defining scrolling direction, and so on.TimeoutExpiredExceptionJScrollBarOperator.ScrollCheckerpublic void scrollTo(ScrollAdjuster adj)
adj - defines scrolling direction, and so on.TimeoutExpiredExceptionpublic void scrollToValue(int value)
value - Scroll bar value to scroll to.TimeoutExpiredExceptionpublic void scrollToValue(double proportionalValue)
proportionalValue - Proportional scroll to. Must be >= 0 and <= 1.TimeoutExpiredExceptionpublic void scrollToMinimum()
TimeoutExpiredExceptionpublic void scrollToMaximum()
TimeoutExpiredExceptionpublic JButtonOperator getDecreaseButton()
public JButtonOperator getIncreaseButton()
public Hashtable getDump()
ComponentOperatorgetDump in class JComponentOperatorpublic void addAdjustmentListener(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 BoundedRangeModel getModel()
JScrollBar.getModel() through queuepublic int getOrientation()
JScrollBar.getOrientation() through queuepublic 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(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(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