IBM Rational Functional Tester
Version 6.1
IBM Rational Functional Tester API Reference

Project Version 2.0

com.rational.test.ft.object.interfaces
Interface IScrollable

All Known Implementing Classes:
ScrollGuiSubitemTestObject, ScrollTestObject, SelectScrollGuiSubitemTestObject

public interface IScrollable

Defines the methods necessary for supporting scrolling, relative to a particular component. The most obvious implementation of this interface is a scrollbar control TestObject/proxy implementation. However, any control with scrollbars can implement this interface directly, rather than expose the scrollbars as child objects. Recognition properties for nested scrollbars are typically poor. Therefore, hiding nesting scrollbars is strongly suggested.

A sample implementation is the proxy for the java.awt.List component. In this example, the nested scrollbars are not visible as independent controls. They are hidden beneath the peer support for the List control. This leaves no scrollbar objects to expose. The only way to properly perform scroll actions is by having the List proxy directly implement this interface and perform the actions itself.

Since:
RFT1.0

Method Summary
 void hScrollTo(int position)
          Moves a horizontal scrollbar to a specified position.
 void scrollLineDown()
          Moves a vertical scrollbar one line (also called a unit) down in position.
 void scrollLineLeft()
          Moves a horizontal scrollbar one line (also called a unit) left in position.
 void scrollLineRight()
          Moves a horizontal scrollbar one line (also called a unit) right in position.
 void scrollLineUp()
          Moves a vertical scrollbar one line (also called a unit) up in position.
 void scrollPageDown()
          Moves a vertical scrollbar one page (also called a block) down in position.
 void scrollPageLeft()
          Moves a horizontal scrollbar one page (also called a block) left in position.
 void scrollPageRight()
          Moves a horizontal scrollbar one page (also called a block) right in position.
 void scrollPageUp()
          Moves a vertical scrollbar one page (also called a block) up in position.
 void vScrollTo(int position)
          Moves a vertical scrollbar to a specified position.
 

Method Detail

hScrollTo

public void hScrollTo(int position)
Moves a horizontal scrollbar to a specified position.

Parameters:
position - the position of the horizontal scrollbar after this action is completed
Since:
RFT1.0
See Also:
vScrollTo(int)

vScrollTo

public void vScrollTo(int position)
Moves a vertical scrollbar to a specified position.

Parameters:
position - the position of the vertical scrollbar after this action is completed
Since:
RFT1.0
See Also:
hScrollTo(int)

scrollPageUp

public void scrollPageUp()
Moves a vertical scrollbar one page (also called a block) up in position.

Since:
RFT1.0

scrollPageDown

public void scrollPageDown()
Moves a vertical scrollbar one page (also called a block) down in position.

Since:
RFT1.0

scrollPageLeft

public void scrollPageLeft()
Moves a horizontal scrollbar one page (also called a block) left in position.

Since:
RFT1.0

scrollPageRight

public void scrollPageRight()
Moves a horizontal scrollbar one page (also called a block) right in position.

Since:
RFT1.0

scrollLineUp

public void scrollLineUp()
Moves a vertical scrollbar one line (also called a unit) up in position.

Since:
RFT1.0

scrollLineDown

public void scrollLineDown()
Moves a vertical scrollbar one line (also called a unit) down in position.

Since:
RFT1.0

scrollLineLeft

public void scrollLineLeft()
Moves a horizontal scrollbar one line (also called a unit) left in position.

Since:
RFT1.0

scrollLineRight

public void scrollLineRight()
Moves a horizontal scrollbar one line (also called a unit) right in position.

Since:
RFT1.0