The reason I want access to that method is for. 1. I want a person to select only future dates 2. I want a person to select with in a date range 3. I want a person to select before a date 4. I want a person to select between a choice of dates.
On Thursday, May 10, 2012 8:34:47 AM UTC-7, Patrick Tucker wrote: > > setTransientEnabledOnDates (boolean enabled, Date date) won't get you > what you need or do the dates need to be disabled upon reload? > > Just thinking a setEnabledOnDates (boolean enabled, Date date) should be > added if a more permanent disable is what you are looking for. > > On Thursday, May 10, 2012 11:24:44 AM UTC-4, Brandon Donnelson wrote: > >> Yes, I know, but it's protected. I figured you'd see that :) >> >> I have to override datepicker to get at its view to disable dates I don't >> want selected in the calendar. Maybe ideally it would be better to open up >> extending the view and model to the datepicker which are both protected >> too. I'd love to extend either the DefaultView and add some logic to it for >> our app. I think the original intention for the view was for >> its extension from the comments I've read but it's been some time it would >> seem its more mature. >> >> CalendarView.class - comments at the top: >> /** >> * Simple calendar view. Not extensible as we wish to evolve it freely >> over >> * time. >> */ >> >> Basically everything is protected for overriding functions. I can see why >> it's protected to improve the the methods before allowing for it to be >> extended and for use. >> >> Also do you see any harm in making the 'CalendarView getView()' a public >> method? because I don't :) >> >> Thanks for taking a look at this Patrick. >> >> Brandon >> http://c.gwt-examples.com >> >> >> On Thursday, May 10, 2012 8:09:02 AM UTC-7, Patrick Tucker wrote: >>> >>> DatePicker already has getView(). >>> >>> Do you mean in DateBox? Currently from DateBox you have to access the >>> CalendarView though getDatePicker(). I can add it, no guarantee it >>> will get approved though. >>> >>> On Thursday, May 10, 2012 11:01:08 AM UTC-4, Brandon Donnelson wrote: >>> >>>> I like it. :) >>>> >>>> While your in there could you add a method for getting the view? This >>>> way we could get access to disabling dates when the month is selected. >>>> >>>> public CalendarView getCalendarView() { >>>> return getView(); >>>> } >>>> >>>> http://c.gwt-examples.com/home/ui/datepicker >>>> >>>> Brandon Donnelson >>>> http://c.gwt-examples.com >>>> >>> -- 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/-/ip4OFswpQrUJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.