Ignore:
Timestamp:
07/22/06 08:45:34 (18 years ago)
Author:
Nicholas Riley
Message:

First pass at alarm persistence.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/hiptop/pester/net/sabi/pester/AlarmListView.java

    r275 r276  
    2222    public void onDecoded() {
    2323        sAlarmListWindow = (AlarmListWindow)getWindow();
     24        mToolTipAlarm = new danger.app.Alarm(0, this);
    2425        setAutoResize(true);
    25         setHasBorder(false); // this doesn't work in the rsrc file
    2626        setList(Alarms.getList());
    27         if (alarmsSet() > 0)
    28             setHasBorder(true);
    29         mToolTipAlarm = new danger.app.Alarm(0, this);
     27        if (alarmsSet() == 0)
     28            setHasBorder(false); // this doesn't work in the rsrc file
    3029        Application.registerForEvent(this, Event.EVENT_TIME_CHANGED);
    3130        super.onDecoded();
     
    6564            Alarms.removeAlarm((Alarm)getFocusedItem());
    6665            return true;
    67         case Event.EVENT_TIME_CHANGED:
     66        case Event.EVENT_TIME_CHANGED: // XXX EVENT_TIME_FORMAT_CHANGED too
    6867            if (mToolTipWindow == null || !mToolTipWindow.isVisible())
    6968                return true;
Note: See TracChangeset for help on using the changeset viewer.