}
catch (RequestParameterProcessingIncompleteException rppie) {
//OK, processing isn't complete yet so just assume it isn't targeted
}
PortletUrl portletUrl;
//Event targeting a portlet that isn't the targeted portlet, use an additional PortletUrl
if (targetedPortletWindowId == null || !portletWindowId.equals(targetedPortletWindowId)) {
portletUrl = this.portletRequestParameterManager.getPortletRequestInfo(httpServletRequest, portletWindowId);
if (portletUrl == null) {
portletUrl = new PortletUrl(portletWindowId);
}
portletUrl.setRequestType(RequestType.RENDER);
this.portletRequestParameterManager.setAdditionalPortletUrl(httpServletRequest, portletUrl);
}
//Event targeting the currently targeted portlet, use the existing PortletUrl
else {
portletUrl = this.portletRequestParameterManager.getPortletRequestInfo(httpServletRequest, targetedPortletWindowId);
}
switch (portalEvent.getEventNumber()) {
case PortalEvent.DETACH_BUTTON_EVENT: {
//Ignore, this will always be handled by the portlet URL parameter processor
}
break;
case PortalEvent.MINIMIZE_EVENT: {
portletUrl.setWindowState(WindowState.MINIMIZED);
}
break;
case PortalEvent.NORMAL_EVENT: {
portletUrl.setWindowState(WindowState.NORMAL);
}
break;
case PortalEvent.MAXIMIZE_EVENT: {
portletUrl.setWindowState(WindowState.MAXIMIZED);
}
break;
case PortalEvent.EDIT_BUTTON_EVENT: {
portletUrl.setPortletMode(PortletMode.EDIT);
}
break;
case PortalEvent.HELP_BUTTON_EVENT: {
portletUrl.setPortletMode(PortletMode.HELP);
}
break;
case PortalEvent.ABOUT_BUTTON_EVENT: {
portletUrl.setPortletMode(IPortletAdaptor.ABOUT);
}
break;
}
}
break;