Tuesday, January 10, 2012

Re: DatePicker : clear all styles

So I got around the not being able to extend the class by copying:
CalendarModel.java
CalendarUtil.java
CalendarView.java
CellGridImpl.java
DateBox.java
DateChangeEvent.java
DatePicker.java
DatePickerComponent.java
DefaultCalendarView.java
DefaultMonthSelector.java
MonthSelector.java

from the gwt-user.jar and putting them in my project. Changing all private to protected. I also had to delete the CSS line call to dayIsWeekend() because it would overwrite any style I added. So all weekdays looked perfect, but weekends were un-affected. 

Not the prettiest of solutions, but it works.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/s-k9CVOzdioJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment