简体   繁体   English

如何滚动到JFXtras议程中的selectedApointpointment

[英]How to scroll to a selectedAppointment in JFXtras Agenda

I have some kind of 'find' function, where I select an appointment by adding it to the selectedAppointments list. 我有某种“查找”功能,可以通过将约会添加到selectedAppointments列表中来选择约会。 Works, but Agenda does not scroll to the correct position automatically. 可以,但是议程不会自动滚动到正确的位置。 So in some cases, the user cannot see the selected appointment. 因此,在某些情况下,用户看不到所选约会。

How can I tell Agenda to scroll to the correct position? 如何告诉议程滚动到正确位置?

Thank you! 谢谢!

There is a displayedLocalDateTime property on Agenda (or displayedCalendar if you are still using the depricated property). 议程上有一个displayLocalDateTime属性(如果仍在使用depricated属性,则为displayCalendar)。 It will tell Agenda to show that specific moment in time, but depending on the active skin (week, day, or whatever the future will bring) that may be a different time frame. 它会告诉Agenda显示特定的时间点,但是取决于活动的皮肤(周,日,或将来会带来什么),可能是不同的时间范围。

After rereading, I noticed that you used the word "scroll" very specifically, so I checked and agenda correct shows the date based on displayedLocalDateTime, but it did not scroll to the correct time within that date. 重新阅读后,我注意到您非常特别地使用了“滚动”一词,因此我检查并按议程正确显示了基于displayLocalDateTime的日期,但没有滚动到该日期内的正确时间。 Fixed that just now. 刚刚修复。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM