Wednesday, 17 February 2010

How to add a Date and Time popup to smartGWT

There are a lot of queries about how to add a popup for selecting time and date in smartGWT. The bottom line is that smartGWT is lacking a single widget to do this, so you have to use a DateItem and TimeItem together.

Here is some sample code that adds these items to a VLayout call leftPanel:

 final DynamicForm scheduleForm = new DynamicForm();
 DateItem sendDate  = new DateItem();
 TimeItem sendTime = new TimeItem();
       
 scheduleForm.setFields(sendDate,sendTime);
 leftPanel.addMember(scheduleForm);

2 comments:

  1. Try This,
    Seems nice.
    http://code.google.com/p/sgwidgets/

    ReplyDelete
  2. The roulette wheels used within the casinos of Paris within the late 1790s had red for the one zero and black for the double zero. 메리트카지노 To avoid confusion, the color green was selected for the zeros in roulette wheels starting within the 1800s. If you have been trying to find information about European Roulette Wheels, you’ve come to the proper place.

    ReplyDelete