com.appperfect.devcommon.script.javaelement
Interface AwtScrollPane

All Superinterfaces:
AwtComponent, AwtContainer, IScript, JavaComponent

public interface AwtScrollPane
extends AwtContainer

AwtScrollPane is created to represent java.awt.ScrollPane component

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

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


Method Summary
 boolean setScrollPosition(int x, int y)
 Scrolls to the specified position within the child component.
 
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

setScrollPosition

boolean setScrollPosition(int x,
                          int y)
Scrolls to the specified position within the child component. A call to this method is only valid if the scroll pane contains a child. Specifying a position outside of the legal scrolling bounds of the child will scroll to the closest legal position. Legal bounds are defined to be the rectangle: x = 0, y = 0, width = (child width - view port width), height = (child height - view port height). This is a convenience method which interfaces with the Adjustable objects which represent the state of the scrollbars.

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


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