com.appperfect.devcommon.script.javaelement
Interface SwingScrollBar

All Superinterfaces:
AwtComponent, AwtContainer, IScript, JavaComponent, SwingComponent

public interface SwingScrollBar
extends SwingComponent

SwingScrollBar is created to represent javax.swing.JScrollBar component

The following code fragment illustrates how to create an SwingScrollBar element.

 var element = engine.createSwingScrollBar(1, 5);
 
where engine is object of IScriptEngine


Method Summary
 boolean nextLine(int count)
 Moves the scroll bar downward, or to the right by the specified number of lines
 boolean nextPage(int count)
 Moves the scroll bar downward, or to the right by the specified number of pages
 boolean prevLine(int count)
 Moves the scroll bar upward, or to the left, by the specified number of lines,
 boolean prevPage(int count)
 Moves the scroll bar upward, or to the left, by the specified number of Pages
 boolean setPosition(int position)
 Sets the scroll bar position
 
Methods inherited from interface com.appperfect.devcommon.script.javaelement.AwtContainer
getComponentCount
 
Methods inherited from interface com.appperfect.devcommon.script.javaelement.JavaComponent
activate, addAttribute, captureImage, click, close, dblClick, drag, drop, getName, getText, getToolTipText, maximize, minimize, mouseMove, restore, rightClick, set, setBreakPoint, setIgnored, setImagePath, setName, setThinkTime, setTitle, type
 
Methods inherited from interface com.appperfect.devcommon.script.IScript
getReasonForFailure, isIgnored, isTaskSuccessful, isTaskTimedOut, setReasonForFailure, setTaskSuccessful, setTaskTimedout, setTimeout
 

Method Detail

nextLine

boolean nextLine(int count)
Moves the scroll bar downward, or to the right by the specified number of lines

Parameters:
count - is number of lines to move
Returns:
true if event was executed successfully, returns false if there is any failure during execution

nextPage

boolean nextPage(int count)
Moves the scroll bar downward, or to the right by the specified number of pages

Parameters:
count - is number of Pages to move
Returns:
true if event was executed successfully, returns false if there is any failure during execution

prevLine

boolean prevLine(int count)
Moves the scroll bar upward, or to the left, by the specified number of lines,

Parameters:
count - is number of lines to move
Returns:
true if event was executed successfully, returns false if there is any failure during execution

prevPage

boolean prevPage(int count)
Moves the scroll bar upward, or to the left, by the specified number of Pages

Parameters:
count - is number of Pages to move
Returns:
true if event was executed successfully, returns false if there is any failure during execution

setPosition

boolean setPosition(int position)
Sets the scroll bar position

Parameters:
position - is scroll bar position to set
Returns:
true if event was executed successfully, returns false if there is any failure during execution


Copyright © 2003-2011 AppPerfect Corporation. All Rights Reserved.