javierdotnet / gwt-ext

Automatically exported from code.google.com/p/gwt-ext
0 stars 2 forks source link

how to see all the times when some times are listed on timefield #521

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hello

I have a datefield and a timefield in a layout. When I click query
execute, first query is shown on the time field. For instance, when
the time is 09:00 PM and when I click combobox button to select times
i can only see 09:00 PM. When I remove "PM" and make timefield 09:00
and after that when I click combobox button I can see 09:00 PM and
09:00 AM. When I remove "00:PM" and make the timefield "09" and after
that when I click combo boxbutton, I can see 09:00 PM, 09:15 PM, 09:30
PM, 09:45 PM.But I want to see all the times such as "10:00, 12:15 etc
etc" when I click combobox button. But I can only see more time option
when I remove some from timefield. How I can see all the times when I
click timefield combox button? I tried all set methods if there is
some which makes me see all the timefields when some times are written
on the timefield combox. You can see the code that I use to see
timefield combobox. I will be so glad if you can help me. Thank you in
advance.

  LayoutContainer hp = new LayoutContainer();
       hp.setLayout(new RowLayout(Style.Orientation.HORIZONTAL));
       hp.setStyleAttribute("font-size", "small");
       hp.setSize(600, 30);

       Label StartDateLabel = new Label("Start Date", true);
       hp.add(StartDateLabel, new RowData(80, 40, new Margins(1, 1,
1, 0)));

       startDate = widgetFactory.createDateField("Start Time", true);
       startDate.setPropertyEditor(new DateTimePropertyEditor("dd-MM-
yyyy"));
       hp.add(startDate, new RowData(134, 25, new Margins(1, 1, 1,
0)));

      startTime = new TimeField();
       hp.add(startTime, new RowData(134, 25, new Margins(1, 1, 1,
0)));

Original issue reported on code.google.com by alperko...@gmail.com on 27 Feb 2010 at 9:03