B4J Question JFX Controls

Harris

Expert
Licensed User
Longtime User
I see it is (was) available in Scene Builder - which is deprecated in B4J....
 
Upvote 0

EnriqueGonzalez

Expert
Licensed User
Longtime User
Not completly correct.

Right now, you can add pagination to your javafx project, with a bit of inline java and JavaObject. Actually you could do it like a customView without adding any special library because Pagination is in the core javafx library.
 
Upvote 0

Harris

Expert
Licensed User
Longtime User
Not completly correct.

Right now, you can add pagination to your javafx project, with a bit of inline java and JavaObject. Actually you could do it like a customView without adding any special library because Pagination is in the core javafx library.

Thanks,
Do you have example of how?
I am at total loss here.

I have built page from code - and not designer - (however I could build it in designer - no big deal).
Most Appreciated.
 
Upvote 0

EnriqueGonzalez

Expert
Licensed User
Longtime User
I believe that it is not that hard, but it is pretty late here and i cannot do it right now, as soon as i can i will upload an example project (if someone else does not upload it first)
 
Upvote 0

Harris

Expert
Licensed User
Longtime User
I believe that it is not that hard, but it is pretty late here and i cannot do it right now, as soon as i can i will upload an example project (if someone else does not upload it first)

Late here too. (11:15 pm)
No hurry, appreciate your effort.

Thanks
 
Upvote 0

EnriqueGonzalez

Expert
Licensed User
Longtime User
Hello!

First of all, i must say that my Java skills are almost non existent, Attached you will find an example on how to work with pagination.

After initialization, you have to load everytime the layout and set anchors to the requiered nodes. Why? because it uses a callback function with a pageFactory, what that means? i am not so sure.
 

Attachments

  • pagination.zip
    2.8 KB · Views: 326
Upvote 0

Harris

Expert
Licensed User
Longtime User
Hello!

First of all, i must say that my Java skills are almost non existent, Attached you will find an example on how to work with pagination.

After initialization, you have to load everytime the layout and set anchors to the requiered nodes. Why? because it uses a callback function with a pageFactory, what that means? i am not so sure.

Based on your fine example, here is my output. Looks and works GREAT! Now the user can select any hour (since that is what the value represents in the paginator), instead of having to increment each with the arrow buttons. Also, user can zoom in, down to one second, if desired.

Thanks for your help. The inline Java ability is fantastic to get jobs done (add components or features) that do not exist otherwise.

legend1.jpg
 
Upvote 0

alienhunter

Active Member
Licensed User
Longtime User
Based on your fine example, here is my output. Looks and works GREAT! Now the user can select any hour (since that is what the value represents in the paginator), instead of having to increment each with the arrow buttons. Also, user can zoom in, down to one second, if desired.

Thanks for your help. The inline Java ability is fantastic to get jobs done (add components or features) that do not exist otherwise.

Hi ,
is there a method for this pagination so you will be able to "loop" thru the pages by code , say with a timer every 10 sec change the page ?

thanks AH
 
Upvote 0

EnriqueGonzalez

Expert
Licensed User
Longtime User
Hello!

Attached is an example of how you can iterate thru every page, i modified a bit the pagination class.
 

Attachments

  • pagination.zip
    3 KB · Views: 333
Upvote 0
Top