- Timestamp:
- 07/26/06 03:46:12 (18 years ago)
- Location:
- trunk/hiptop/pester/net/sabi/pester
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hiptop/pester/net/sabi/pester/AlarmSetDialog.java
r288 r291 15 15 import danger.ui.Layout; 16 16 import danger.ui.MenuItem; 17 import danger.ui.NumberEditor;18 17 import danger.ui.Pen; 19 18 import danger.ui.PopupMenu; … … 31 30 private TypeAheadTextField mMessageField; 32 31 private RadioButton mInButton, mAtButton; 33 private NumberEditor mPeriodField;32 private EventfulNumberEditor mPeriodField; 34 33 private PopupMenu mPeriodUnitsPopup; 35 // XXX don't allow <5 second repeating alarms36 34 private CheckBox mRepeatCheckBox; 37 35 private DateTimeEditor mTimeEditor, mDateEditor; … … 59 57 mInButton = (RadioButton)getDescendantWithID(ID_IN_BUTTON); 60 58 mAtButton = (RadioButton)getDescendantWithID(ID_AT_BUTTON); 61 mPeriodField = (NumberEditor)getDescendantWithID(ID_PERIOD_FIELD); 59 mPeriodField = 60 (EventfulNumberEditor)getDescendantWithID(ID_PERIOD_FIELD); 62 61 mPeriodUnitsPopup = 63 62 (PopupMenu)getDescendantWithID(ID_PERIOD_UNITS_POPUP); … … 74 73 mMessageField.setNumCharsNeededForCompletion(0); 75 74 mInButton.setValue(1); 75 mPeriodField.mAlphaView = mPeriodUnitsPopup; 76 76 mDateEditor.limitToDangerEpoch(); 77 77 mAlertPicker.setGroupFilter(ToneClass.FOREGROUND | ToneClass.CUSTOM); -
trunk/hiptop/pester/net/sabi/pester/EventfulNumberEditor.java
r253 r291 3 3 import danger.app.Event; 4 4 import danger.ui.NumberEditor; 5 import danger.ui.View; 5 6 import danger.util.DEBUG; 6 7 7 8 public class EventfulNumberEditor extends NumberEditor { 9 public View mAlphaView; 10 11 public boolean eventKeyDown(char c, Event event) { 12 if (Character.isLetter(c)) 13 return mAlphaView.eventKeyDown(c, event); 14 return super.eventKeyDown(c, event); 15 } 8 16 9 17 // Note: because NumberEditor temporarily holds invalid values to
Note:
See TracChangeset
for help on using the changeset viewer.