GWT Time Picker?

后端 未结 8 1752
青春惊慌失措
青春惊慌失措 2020-12-13 07:19

Does anyone know if in GWT we have a good TimePicker ? In fact I want a widget in order to select hour and minute for GWT.

Thanks

相关标签:
8条回答
  • 2020-12-13 07:57

    The gwt incubator has an alright time picker

    The code would be something like the example given:

    // A TimePicker with no "AM/PM" and no "seconds" field and using 24H formatting for "hours" field
    TimePicker timePicker = new TimePicker(new Date(), null, DateTimeFormat.getFormat("HH"), DateTimeFormat.getFormat("mm"), null);
    
    0 讨论(0)
  • 2020-12-13 08:00

    I created gwt-timepicker which is using the concept of jquery timepicker. It does exactly what you need (hour/minute). Take a look: http://code.google.com/p/gwt-timepicker/

    check this post: http://www.summa-tech.com/blog/2011/03/21/gwt-timepicker/

    0 讨论(0)
  • 2020-12-13 08:01

    GXT has a TimeField widget Example Good or not it's your choice :)

    Maybe you can give an eye to DateTimePicker alt texthttps://github.com/ghuntley/Ext.ux.touch.DateTimePicker

    0 讨论(0)
  • 2020-12-13 08:02

    DatePicker and DateBox

     DatePicker datePicker = new DatePicker(); 
    
     DateBox dateBox = new DateBox();
    

    Here is GWT DatePicker example

    and you can format the datetime to your needs with DateTimeFormat and here is example

    0 讨论(0)
  • 2020-12-13 08:06

    I know this question was asked a while ago, but I came across it during my search for a GWT time picker and I decided to write my own.

    Picture of UTCTimeBox

    It supports many different input formats (4p => 4:00pm, 745 => 7:45am, etc) and has a drop-down menu with times at fixed intervals.

    On iOS, it automatically uses an HTML5 input type="time"

    enter image description here

    Blog article describing the implementation

    Demo of the UTCTimeBox

    Demo of the UTCDateBox and UTCTimeBox being used together

    Download at Google Code

    0 讨论(0)
  • 2020-12-13 08:06

    GWT Bootstrap GWT widget library has a nice date+time widget, along with many other solid widgets.

    http://gwtbootstrap.github.com/#component:datetimepicker

    Edit: Looks like there is newer version available for bootstrap 3.

    0 讨论(0)
提交回复
热议问题