- Timestamp:
- 07/28/07 19:48:14 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
bbtracker/trunk/src/org/bbtracker/mobile/gui/OptionsForm.java
r24 r36 34 34 private final ChoiceGroup exportFormatGroup; 35 35 36 private final ChoiceGroup unitsGroup; 37 36 38 public OptionsForm(final TrackManager trackManager) { 37 39 super("Options"); … … 43 45 sampleField = new TextField("Sample Interval in seconds: ", String.valueOf(pref.getSampleInterval()), 5, 44 46 TextField.NUMERIC); 45 startTypeGroup = new ChoiceGroup("Startup action: ", Choice.EXCLUSIVE, Preferences.START_ACTIONS, null); 47 48 unitsGroup = new ChoiceGroup("Units: ", Choice.POPUP, Preferences.UNITS, null); 49 unitsGroup.setSelectedIndex(pref.getUnits(), true); 50 51 startTypeGroup = new ChoiceGroup("Startup action: ", Choice.POPUP, Preferences.START_ACTIONS, null); 46 52 startTypeGroup.setSelectedIndex(pref.getStartAction(), true); 53 47 54 directoryField = new TextField("Export directory: ", pref.getExportDirectory(), 100, TextField.URL); 48 55 browseCommand = new Command("Browse", Command.ITEM, 1); … … 56 63 57 64 append(sampleField); 65 append(unitsGroup); 58 66 append(startTypeGroup); 59 67 append(directoryField); … … 80 88 pref.setExportFormat(i, exportFormatGroup.isSelected(i)); 81 89 } 90 91 pref.setUnits(unitsGroup.getSelectedIndex()); 82 92 83 93 pref.store();
Note: See TracChangeset
for help on using the changeset viewer.