也许有人一直在使用gwt-cal小部件来模拟Google Calendar和iCal for GWT。我最近刚开始,但当我在我的项目中尝试了一个简单的日历时,例如:
public class ManagerCalendarViewImpl extends Composite implements
ManagerCalendarView {
SimplePanel viewPanel = new SimplePanel();
public ManagerCalendarViewImpl() {
Calendar calendar = new Calendar();
calendar.setDate(new Date());
calendar.setDays(3);
calendar.setWidth("500px");
calendar.setHeight("400px");
viewPanel.add(calendar);
}
}
我在执行GWT编译时遇到以下错误:
Errors in
jar:file:/D:/Naukma/Programing/JavaEE/GWT_Projects/CalendarMVP/WebContent/WEB-INF/lib/gwt-cal-0.9.3.jar!/com/bradrydzewski/gwt/calendar/client/dayview/DayView.java
[ERROR] Line 58: Rebind result com.bradrydzewski.gwt.calendar.client.dayview.DayViewStyleManager' cannot be abstract
[ERROR] Errors in 'jar:file:/D:/Naukma/Programing/JavaEE/GWT_Projects/CalendarMVP/WebContent/WEB-INF/lib/gwt- cal-0.9.3.jar!/com/bradrydzewski/gwt/calendar/client/monthview/MonthView.java'
[ERROR] Line 154: Rebind result 'com.bradrydzewski.gwt.calendar.client.monthview.MonthViewStyleManager' cannot be abstract
[ERROR] Cannot proceed due to previous errors
我没有更改jar中的任何代码部分。根据他们的维基,这些设置不是必需的。首先,当我有DayView设置时,错误开始出现,但即使我修改了上面的代码,它们也没有消失。我清理了项目,试图编译并得到相同的结果。任何人都可以帮助我吗?