|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.portlet.calendar.mvc.ViewSelectorDefaultImpl
public class ViewSelectorDefaultImpl
ViewSelectorDefaultImpl provides a default implementation of IViewSelector that returns JSP view names based on a combination of the browser user agent string and the portlet window state. Requests which indicate that the user is interacting with the portlet via a mobile device, or that the portlet is currently not in maximized mode will result in a "narrow" view of the calendar. Non-mobile devices using the portlet in the maximized window state will be shown the "wide" view of the portlet.
| Constructor Summary | |
|---|---|
ViewSelectorDefaultImpl()
|
|
| Method Summary | |
|---|---|
String |
getCalendarViewName(javax.portlet.PortletRequest request)
Return the JSP view name of the main calendar view for this request. |
String |
getEditViewName(javax.portlet.PortletRequest request)
|
String |
getEventListViewName(javax.portlet.PortletRequest request)
Return the JSP view name of the AJAX event list for this request. |
protected boolean |
isMobile(javax.portlet.PortletRequest request)
|
void |
setMobileDeviceRegexes(List<String> patterns)
Set a list of regex patterns for user agents which should be considered to be mobile devices. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ViewSelectorDefaultImpl()
| Method Detail |
|---|
public void setMobileDeviceRegexes(List<String> patterns)
patterns - public String getCalendarViewName(javax.portlet.PortletRequest request)
IViewSelector
getCalendarViewName in interface IViewSelectorpublic String getEditViewName(javax.portlet.PortletRequest request)
getEditViewName in interface IViewSelectorpublic String getEventListViewName(javax.portlet.PortletRequest request)
IViewSelector
getEventListViewName in interface IViewSelectorprotected boolean isMobile(javax.portlet.PortletRequest request)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||