Open GoogleCodeExporter opened 9 years ago
You forgot the attachment. Its a relatively old property which we haven't
maintained and I frankly forgot about it until now.
Original comment by shai.almog
on 9 May 2013 at 4:12
Sorry. Screen shot attached
Original comment by jason.la...@gmail.com
on 10 May 2013 at 2:28
Attachments:
Looking at the code, I'm not sure if this is something we want to fix. This
predated the "new" spinner classes and GenericSpinner. Adapting it to use that
code would be problematic in many regards, currently I'm inclined to deprecate
the method entirely.
Original comment by shai.almog
on 10 May 2013 at 6:07
OK is there a better way to get the iPhone native effect of clicking on a
button or combo and getting a spinner pop up so that an item can be selected?
The current standard combo box behaviour doesn't really seem too native?
Original comment by jason.la...@gmail.com
on 10 May 2013 at 11:45
Just place a button and show a dialog (or popup if isTablet() is true)
containing a GenericSpinner instance.
GenericSpinner types = new GenericSpinner();
types.setModel(new DefaultListModel(new String[] {
...
}));
types.getModel().setSelectedIndex(...);
Dialog dlg = new Dialog();
dlg.setScrollable(false);
dlg.setLayout(new BorderLayout());
dlg.addComponent(BorderLayout.CENTER, types);
dlg.addComponent(BorderLayout.SOUTH, new Button(new Command("OK")));
if(Display.getInstance().isTablet()) {
dlg.showPopupDialog(c);
} else {
dlg.show();
}
Original comment by shai.almog
on 12 May 2013 at 4:42
Original issue reported on code.google.com by
jason.la...@gmail.com
on 9 May 2013 at 10:46