|
|||||||||
| 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.ScrollPaneOperator
public class ScrollPaneOperator
Timeouts used:
ScrollbarOperator.WholeScrollTimeout - time for one scroll click
ComponentOperator.WaitComponentTimeout - time to wait component displayed
.
Timeouts| Nested Class Summary | |
|---|---|
static class |
ScrollPaneOperator.ScrollPaneFinder
Checks component type. |
| 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 |
|---|
| 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 | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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 |
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). |
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. |
| 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 |
| Constructor Detail |
|---|
public 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.
TimeoutExpiredException| Method Detail |
|---|
public 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.
TimeoutExpiredException
public static java.awt.ScrollPane waitScrollPane(java.awt.Container cont,
ComponentChooser chooser)
cont - Container to search component in.chooser - org.netbeans.jemmy.ComponentChooser implementation.
TimeoutExpiredException
public 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)
Timeoutable
setTimeouts in interface TimeoutablesetTimeouts in class ContainerOperatortimeouts - A collection of timeout assignments.Timeoutable.getTimeouts()public Timeouts getTimeouts()
Timeoutable
getTimeouts in interface TimeoutablegetTimeouts in class ContainerOperatorTimeoutable.setTimeouts(org.netbeans.jemmy.Timeouts)public void setOutput(TestOut out)
Outputable
setOutput in interface OutputablesetOutput in class ContainerOperatorout - Identify the streams or writers used for print output.Outputable.getOutput()public TestOut getOutput()
Outputable
getOutput in interface OutputablegetOutput in class ContainerOperatorOutputable.setOutput(org.netbeans.jemmy.TestOut)public void copyEnvironment(Operator anotherOperator)
Operator
copyEnvironment 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.
TimeoutExpiredException
public void scrollToValues(int valueX,
int valueY)
valueX - Value to scroll horizontal scroll bar to.valueY - Value to scroll vertical scroll bar to.
TimeoutExpiredException
public 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()
TimeoutExpiredException
public 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 height
TimeoutExpiredException
public void scrollToComponentPoint(java.awt.Component comp,
int x,
int y)
comp - a subcomponent defining coordinate system.x - coordinatey - coordinate
TimeoutExpiredExceptionpublic void scrollToComponent(java.awt.Component comp)
comp - Component to scroll to.
TimeoutExpiredException
public 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 height
public boolean checkInside(java.awt.Component comp)
comp - a subcomponent defining coordinate system.
public boolean isScrollbarVisible(int orientation)
orientation - Adjustable.HORIZONTAL or Adjustable.VERTICAL
public java.awt.Adjustable getHAdjustable()
ScrollPane.getHAdjustable() through queue
public int getHScrollbarHeight()
ScrollPane.getHScrollbarHeight() through queue
public java.awt.Point getScrollPosition()
ScrollPane.getScrollPosition() through queue
public int getScrollbarDisplayPolicy()
ScrollPane.getScrollbarDisplayPolicy() through queue
public java.awt.Adjustable getVAdjustable()
ScrollPane.getVAdjustable() through queue
public int getVScrollbarWidth()
ScrollPane.getVScrollbarWidth() through queue
public java.awt.Dimension getViewportSize()
ScrollPane.getViewportSize() through queue
public java.lang.String paramString()
ScrollPane.paramString() through queue
public void setScrollPosition(int i,
int i1)
ScrollPane.setScrollPosition(int, int) through queue
public void setScrollPosition(java.awt.Point point)
ScrollPane.setScrollPosition(Point) through queue
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||