Sorted techs in calendar

This commit is contained in:
Dobie Wollert
2012-12-05 00:22:02 -08:00
parent a0da681497
commit a371015dfd
2 changed files with 9 additions and 3 deletions

View File

@ -1,5 +1,7 @@
package com.biomed.client.ui.schedule;
import java.util.Collections;
import java.util.Comparator;
import java.util.Date;
import java.util.List;
import java.util.Map;
@ -124,6 +126,13 @@ public class SchedulePanel extends Composite implements Schedule.View {
appointments.clear();
calendar.suspendLayout();
Collections.sort(workorders, new Comparator<Workorder>() {
@Override
public int compare(Workorder o1, Workorder o2) {
return o1.techName.compareTo(o2.techName);
}
});
for (Marker m : markers) {
m.setMap((GoogleMap) null);
}

View File

@ -186,9 +186,6 @@ public class DayViewHeader extends Composite implements HasWeekSelectionHandlers
header.setText(0, 0, String.valueOf(year));
}
public void setFuckingDayOfYear(Date date) {
}
private void addDayClickHandler(final Label dayLabel, final Date day) {
dayLabel.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {