nwixsom / gwt-cal

Automatically exported from code.google.com/p/gwt-cal
0 stars 0 forks source link

API. Calendar.getView() how to find type of view? #111

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Description of the new feature:

API. Calendar.getView() returned view may have type from enumeration 
CalendarViews (e.g. Calendar.getView().getType() or Calendar.getViewType()) 

Use Case:

To find out curent view type without using instanceOf.

Code / psuedo-code:

CalendarViews Calendar.getView().getType();
or
CalendarViews Calendar.getViewType();

Original issue reported on code.google.com by sspirido...@gmail.com on 25 Feb 2011 at 10:19

GoogleCodeExporter commented 9 years ago
Done in r420

Added a getCalendarView() method to the Calendar class.

Original comment by ctasada on 27 Jun 2012 at 10:44