PDA

View Full Version : [FIXED] comboBox and datefield with read only state



yopiyop
18 Jun 2008, 2:10 AM
we can update value with a click on the calendar icon (idem on comboBox):


FormPanel panel = new FormPanel();
panel.setSize(340, 180);
panel.setFrame(false);
panel.setHeaderVisible(false);
panel.setBodyBorder(false);
panel.setButtonAlign(HorizontalAlignment.CENTER);
panel.setLayout(new FitLayout());

TabPanel tabs = new TabPanel();

TabItem personal = new TabItem();
personal.setText("Personal Details");
personal.setLayout(new FormLayout());

DateField d = new DateField();
d.setFieldLabel("d");
d.setReadOnly(true);
personal.add(d);

tabs.add(personal);
panel.add(tabs);

Viewport v = new Viewport();
v.add(panel);
RootPanel.get().add(v);

darrellmeyer
18 Jun 2008, 8:51 AM
Fix is in SVN.