public class ScrollPaneOperator extends ContainerOperator implements Timeoutable, Outputable
Timeouts| Modifier and Type | Class and Description |
|---|---|
static class |
ScrollPaneOperator.ScrollPaneFinder
Checks component type.
|
ContainerOperator.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.StringComparatorHEIGHT_DPROP, IS_SHOWING_DPROP, IS_VISIBLE_DPROP, NAME_DPROP, WIDTH_DPROP, X_DPROP, Y_DPROPCLASS_DPROP, TO_STRING_DPROP| Constructor and Description |
|---|
ScrollPaneOperator(ContainerOperator cont)
Constructor.
|
ScrollPaneOperator(ContainerOperator cont,
ComponentChooser chooser)
Constructs a ScrollPaneOperator object.
|
ScrollPaneOperator(ContainerOperator cont,
ComponentChooser chooser,
int index)
Constructs a ScrollPaneOperator object.
|
ScrollPaneOperator(ContainerOperator cont,
int index)
Constructor.
|
ScrollPaneOperator(java.awt.ScrollPane b)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkInside(java.awt.Component comp)
Checks if component is inside view port (no scrolling necessary).
|
boolean |
checkInside(java.awt.Component comp,
int x,
int y,
int width,
int height)
Checks if component's rectangle is inside view port (no scrolling necessary).
|
void |
copyEnvironment(Operator anotherOperator)
Copies all environment (output, timeouts,
visualizer) from another operator.
|
static java.awt.ScrollPane |
findScrollPane(java.awt.Container cont)
Searches 0'th ScrollPane in container.
|
static java.awt.ScrollPane |
findScrollPane(java.awt.Container cont,
ComponentChooser chooser)
Searches 0'th ScrollPane in container.
|
static java.awt.ScrollPane |
findScrollPane(java.awt.Container cont,
ComponentChooser chooser,
int index)
Searches ScrollPane in container.
|
static java.awt.ScrollPane |
findScrollPane(java.awt.Container cont,
int index)
Searches ScrollPane in container.
|
static java.awt.ScrollPane |
findScrollPaneUnder(java.awt.Component comp)
Searches ScrollPane object which component lies on.
|
static java.awt.ScrollPane |
findScrollPaneUnder(java.awt.Component comp,
ComponentChooser chooser)
Searches ScrollPane object which component lies on.
|
java.awt.Adjustable |
getHAdjustable()
Maps
ScrollPane.getHAdjustable() through queue |
int |
getHScrollbarHeight()
Maps
ScrollPane.getHScrollbarHeight() through queue |
TestOut |
getOutput()
Returns print output streams or writers.
|
int |
getScrollbarDisplayPolicy()
Maps
ScrollPane.getScrollbarDisplayPolicy() through queue |
java.awt.Point |
getScrollPosition()
Maps
ScrollPane.getScrollPosition() through queue |
Timeouts |
getTimeouts()
Return current timeouts.
|
java.awt.Adjustable |
getVAdjustable()
Maps
ScrollPane.getVAdjustable() through queue |
java.awt.Dimension |
getViewportSize()
Maps
ScrollPane.getViewportSize() through queue |
int |
getVScrollbarWidth()
Maps
ScrollPane.getVScrollbarWidth() through queue |
boolean |
isScrollbarVisible(int orientation)
Tells if a scrollbar is visible.
|
java.lang.String |
paramString()
Maps
ScrollPane.paramString() through queue |
void |
scrollTo(ScrollAdjuster adj)
Scrools to the position defined by a ScrollAdjuster instance.
|
void |
scrollToBottom()
Scrolls pane to bottom.
|
void |
scrollToComponent(java.awt.Component comp)
Scrolls pane to component on this pane.
|
void |
scrollToComponentPoint(java.awt.Component comp,
int x,
int y)
Scrolls pane to point.
|
void |
scrollToComponentRectangle(java.awt.Component comp,
int x,
int y,
int width,
int height)
Scrolls pane to rectangle..
|
void |
scrollToHorizontalValue(double proportionalValue)
Scrolls horizontal scroll bar.
|
void |
scrollToHorizontalValue(int value)
Scrolls horizontal scroll bar.
|
void |
scrollToLeft()
Scrolls pane to left.
|
void |
scrollToRight()
Scrolls pane to right.
|
void |
scrollToTop()
Scrolls pane to top.
|
void |
scrollToValues(double proportionalValueX,
double proportionalValueY)
Scrolls both scroll bars.
|
void |
scrollToValues(int valueX,
int valueY)
Scrolls both scroll bars.
|
void |
scrollToVerticalValue(double proportionalValue)
Scrolls vertical scroll bar.
|
void |
scrollToVerticalValue(int value)
Scrolls vertical scroll bar.
|
void |
setOutput(TestOut out)
Defines print output streams or writers.
|
void |
setScrollPosition(int i,
int i1)
Maps
ScrollPane.setScrollPosition(int, int) through queue |
void |
setScrollPosition(java.awt.Point point)
Maps
ScrollPane.setScrollPosition(Point) through queue |
void |
setTimeouts(Timeouts timeouts)
Defines current timeouts.
|
void |
setValues(int x,
int y)
Sets both values.
|
static java.awt.ScrollPane |
waitScrollPane(java.awt.Container cont)
Waits 0'th ScrollPane in container.
|
static java.awt.ScrollPane |
waitScrollPane(java.awt.Container cont,
ComponentChooser chooser)
Waits 0'th ScrollPane in container.
|
static java.awt.ScrollPane |
waitScrollPane(java.awt.Container cont,
ComponentChooser chooser,
int index)
Waits ScrollPane in container.
|
static java.awt.ScrollPane |
waitScrollPane(java.awt.Container cont,
int index)
Waits ScrollPane in container.
|
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, 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, findComponents, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getCenterX, getCenterXForClick, getCenterY, getCenterYForClick, getColorModel, getComponentAt, getComponentAt, getComponentOrientation, getContainer, getContainers, getCursor, getDropTarget, getDump, 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, typedKey, 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 ScrollPaneOperator(java.awt.ScrollPane b)
b - The java.awt.ScrollPane managed by
this instance.public ScrollPaneOperator(ContainerOperator cont, ComponentChooser chooser, int index)
cont - a containerchooser - a component chooser specifying searching criteria.index - an index between appropriate ones.public ScrollPaneOperator(ContainerOperator cont, ComponentChooser chooser)
cont - a containerchooser - a component chooser specifying searching criteria.public ScrollPaneOperator(ContainerOperator cont, int index)
cont - Operator pointing a container to search component in.index - Ordinal component index.TimeoutExpiredExceptionpublic ScrollPaneOperator(ContainerOperator cont)
cont - Operator pointing a container to search component in.TimeoutExpiredExceptionpublic static java.awt.ScrollPane findScrollPane(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 java.awt.ScrollPane findScrollPane(java.awt.Container cont,
ComponentChooser chooser)
cont - Container to search component in.chooser - org.netbeans.jemmy.ComponentChooser implementation.public static java.awt.ScrollPane findScrollPane(java.awt.Container cont,
int index)
cont - Container to search component in.index - Ordinal component index.public static java.awt.ScrollPane findScrollPane(java.awt.Container cont)
cont - Container to search component in.public static java.awt.ScrollPane findScrollPaneUnder(java.awt.Component comp,
ComponentChooser chooser)
comp - Component to find ScrollPane under.chooser - org.netbeans.jemmy.ComponentChooser implementation.public static java.awt.ScrollPane findScrollPaneUnder(java.awt.Component comp)
comp - Component to find ScrollPane under.public static java.awt.ScrollPane waitScrollPane(java.awt.Container cont,
ComponentChooser chooser,
int index)
cont - Container to search component in.chooser - org.netbeans.jemmy.ComponentChooser implementation.index - Ordinal component index.TimeoutExpiredExceptionpublic static java.awt.ScrollPane waitScrollPane(java.awt.Container cont,
ComponentChooser chooser)
cont - Container to search component in.chooser - org.netbeans.jemmy.ComponentChooser implementation.TimeoutExpiredExceptionpublic static java.awt.ScrollPane waitScrollPane(java.awt.Container cont,
int index)
cont - Container to search component in.index - Ordinal component index.TimeoutExpiredExceptionpublic static java.awt.ScrollPane waitScrollPane(java.awt.Container cont)
cont - Container to search component in.TimeoutExpiredExceptionpublic void setTimeouts(Timeouts timeouts)
TimeoutablesetTimeouts in interface TimeoutablesetTimeouts in class ContainerOperatortimeouts - A collection of timeout assignments.Timeoutable.getTimeouts()public Timeouts getTimeouts()
TimeoutablegetTimeouts in interface TimeoutablegetTimeouts in class ContainerOperatorTimeoutable.setTimeouts(org.netbeans.jemmy.Timeouts)public void setOutput(TestOut out)
OutputablesetOutput in interface OutputablesetOutput in class ContainerOperatorout - Identify the streams or writers used for print output.Outputable.getOutput()public TestOut getOutput()
OutputablegetOutput in interface OutputablegetOutput in class ContainerOperatorOutputable.setOutput(org.netbeans.jemmy.TestOut)public void copyEnvironment(Operator anotherOperator)
OperatorcopyEnvironment in class ComponentOperatoranotherOperator - an operator to copy the environment to.public void setValues(int x,
int y)
x - a horizontal value.y - a vertical value.public void scrollTo(ScrollAdjuster adj)
adj - specifies the position.public void scrollToHorizontalValue(int value)
value - Value to scroll horizontal scroll bar to.TimeoutExpiredExceptionpublic void scrollToHorizontalValue(double proportionalValue)
proportionalValue - Proportional value to scroll horizontal scroll bar to.TimeoutExpiredExceptionpublic void scrollToVerticalValue(int value)
value - Value to scroll vertical scroll bar to.TimeoutExpiredExceptionpublic void scrollToVerticalValue(double proportionalValue)
proportionalValue - Value to scroll vertical scroll bar to.TimeoutExpiredExceptionpublic void scrollToValues(int valueX,
int valueY)
valueX - Value to scroll horizontal scroll bar to.valueY - Value to scroll vertical scroll bar to.TimeoutExpiredExceptionpublic void scrollToValues(double proportionalValueX,
double proportionalValueY)
proportionalValueX - Value to scroll horizontal scroll bar to.proportionalValueY - Value to scroll vertical scroll bar to.TimeoutExpiredExceptionpublic void scrollToTop()
TimeoutExpiredExceptionpublic void scrollToBottom()
TimeoutExpiredExceptionpublic void scrollToLeft()
TimeoutExpiredExceptionpublic void scrollToRight()
TimeoutExpiredExceptionpublic void scrollToComponentRectangle(java.awt.Component comp,
int x,
int y,
int width,
int height)
comp - a subcomponent defining coordinate system.x - coordinatey - coordinatewidth - rectangle widthheight - rectangle heightTimeoutExpiredExceptionpublic void scrollToComponentPoint(java.awt.Component comp,
int x,
int y)
comp - a subcomponent defining coordinate system.x - coordinatey - coordinateTimeoutExpiredExceptionpublic void scrollToComponent(java.awt.Component comp)
comp - Component to scroll to.TimeoutExpiredExceptionpublic boolean checkInside(java.awt.Component comp,
int x,
int y,
int width,
int height)
comp - a subcomponent defining coordinate system.x - coordinatey - coordinatewidth - rectangle widthheight - rectangle heightpublic boolean checkInside(java.awt.Component comp)
comp - a subcomponent defining coordinate system.public boolean isScrollbarVisible(int orientation)
orientation - Adjustable.HORIZONTAL or Adjustable.VERTICALpublic java.awt.Adjustable getHAdjustable()
ScrollPane.getHAdjustable() through queuepublic int getHScrollbarHeight()
ScrollPane.getHScrollbarHeight() through queuepublic java.awt.Point getScrollPosition()
ScrollPane.getScrollPosition() through queuepublic int getScrollbarDisplayPolicy()
ScrollPane.getScrollbarDisplayPolicy() through queuepublic java.awt.Adjustable getVAdjustable()
ScrollPane.getVAdjustable() through queuepublic int getVScrollbarWidth()
ScrollPane.getVScrollbarWidth() through queuepublic java.awt.Dimension getViewportSize()
ScrollPane.getViewportSize() through queuepublic java.lang.String paramString()
ScrollPane.paramString() through queuepublic void setScrollPosition(int i,
int i1)
ScrollPane.setScrollPosition(int, int) through queuepublic void setScrollPosition(java.awt.Point point)
ScrollPane.setScrollPosition(Point) through queue