Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] getBounds method in Scrollbar class is missing


How is getBounds() going to help? You still need to be able to find the various pieces of the scrollbar, and even then you couldn't really predict what clicking on them would do. There are too many variables, like the control's size, the size of the contents (which could be dependent on system font, display DPI, etc), and the increments set for each type of click.

Sorry, I'm not trying to start a big discussion on automated testing. But making getBounds() API would lead to additional API requests.



Thomas L Roche/Raleigh/IBM@IBMUS
Sent by: platform-swt-dev-bounces@xxxxxxxxxxx

12/15/2005 11:41 PM

Please respond to
"Eclipse Platform SWT component developers list."

To
platform-swt-dev@xxxxxxxxxxx
cc
Subject
Re: [platform-swt-dev] getBounds method in Scrollbar class is missing





Sudhakar Pasupunuri 12/13/2005 01:00 AM
>>>>> I am using "getBounds" method present in "ScrollBar" class. This
>>>>> class is present in package "org.eclipse.swt.widgets". I am not
>>>>> able to find this method in the latest IES.

Steve Northover Wed, 14 Dec 2005 11:30:33 -0500
>>>> ScrollBar.getBounds() is neither public nor protected and is
>>>> therefore not API.

>>>>> Is there any alternative method that I can use ?

Tom Roche 12/14/2005 02:18 PM
>>>
http://cvs.sourceforge.net/viewcvs.py/*checkout*/abbot/abbot.swt/src/org/eclipse/swt/widgets/SWTWorkarounds.java
>>> > public static Rectangle getBounds (ScrollBar scrollBar) {

>>> There may be other alternatives by now; try asking on
>>> java-gui-testing@xxxxxxxxxxxxxxx

Steve Northover Wed, 14 Dec 2005 14:21:17 -0500
>> What do you need the bounds of a scroll bar for?

Dunno what Pasupunuri wants it for, but typically folks seeking
lightweight, non-platform-dependent programmatic test automation
need bounds of things in order to interact with them.

>> Will computeTrim() and computeSize() work for you instead?

Veronika Irvine Wed, 14 Dec 2005 16:19:02 -0500
> Or getBounds() and getClientArea() on the widget that has the
> scrollbars?

I'm wondering: if the calls you recommend are equivalent, why not
just make ScrollBar.getBounds() call (one set of) them, and support
ScrollBar.getBounds() as API? Because all abbot.swt is trying to do
(at this point) is make API available to folks who are trying to
programmatically test SWT-based apps, so they can scratch their
itches and hopefully contribute fixes as needed/available. It's
strictly a volunteer/community effort.

_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev


Back to the top