Ignore:
Timestamp:
07/20/06 02:05:30 (18 years ago)
Author:
Nicholas Riley
Message:

Sortable alarm list.

File:
1 edited

Legend:

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

    r258 r259  
    3535
    3636    public static void addAlarm(Alarm alarm) {
    37         sAlarmList.addItem(alarm);
     37        sAlarmList.insertItemSorted(alarm, alarm);
    3838    }
    3939    public static void removeAlarm(Alarm alarm) {
     
    5858    }
    5959
    60     /*
    61     private static Alarm sAlarm0 = new Alarm();
    62     private static Alarm sAlarm1 = new Alarm();
    63     public int compare(Object arg0, Object arg1) {
    64        
    65         return Collator.getInstance().compare(
    66     }
    67     */
    68 
    6960    static class Listener extends danger.app.Listener
    7061        implements danger.util.ActiveList.ForEach {
Note: See TracChangeset for help on using the changeset viewer.