[Review] RT-27467 - Add and improve scrollTo API

Tom Schindl tom.schindl at bestsolution.at
Fri Jan 18 03:13:23 PST 2013


Hi,

See http://javafx-jira.kenai.com/browse/RT-27467 for more information.

I'd like to request review to add the following API:

- ScrollToEvent<T>

- ScrollPane:
* scrollTo(Node): void
* setOnScrollTo(EventHandler<ScrollToEvent<Node>>): void
* getOnScrollTo(): EventHandler<ScrollToEvent<Node>>
*  onScrollToProperty(): ObjectProperty<EventHandler<ScrollToEvent<Node>>>



And retrofit ListView, TableView, TreeTableView, TreeView with to this
API by adding:
* setOnScrollTo(EventHandler<ScrollToEvent<Integer>> value):void
* getOnScrollTo(): EventHandler<ScrollToEvent<Integer>>
* onScrollToProperty(): ObjectProperty<EventHandler<ScrollToEvent<Integer>>>

For the view classes this means one can observe manually scrollTo(int) now.

I'm still unable to attach patches to JIRA so you can see a diff against
master in my bitbucket clone at
https://bitbucket.org/tschindl/jfx-rt/compare/RT-27467..local-compile#diff

Tom

-- 
B e s t S o l u t i o n . a t                        EDV Systemhaus GmbH
------------------------------------------------------------------------
tom schindl                 geschäftsführer/CEO
------------------------------------------------------------------------
eduard-bodem-gasse 5-7/1   A-6020 innsbruck     fax      ++43 512 935833
http://www.BestSolution.at                      phone    ++43 512 935834


More information about the openjfx-dev mailing list