简体   繁体   English

Java SWT DateTime-获取选择?

[英]Java SWT DateTime - Get Selection?

I've got a DateTime (SWT.TIME) and want to know if the hours or minutes or seconds are selected. 我有一个DateTime(SWT.TIME),想知道是否选择了小时,分钟或秒。 I would like to get this information because I want that the User can scroll the mouse wheel in order to change the selected values accordingly. 我想获取此信息,因为我希望用户可以滚动鼠标滚轮以相应地更改所选值。

Unfortunately I couldn't find any way to get the selected element of the DateTime Control. 不幸的是,我找不到任何方法来获取DateTime控件的选定元素。 Does anybody have an idea? 有人有主意吗?

DateTime provides many methods for getting the selected date. DateTime提供了许多获取所选日期的方法。 Like getHours , getMinutes , getDay , and so on. getHoursgetMinutesgetDay等等。 It's unclear to me what's your exact question, but appropiate setters are there as well. 我不清楚您的确切问题是什么,但也有适当的设置者。

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

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