/** * @see javax.portlet.PortletRequest#getWindowState() */ public WindowState getWindowState() { return request.getWindowState(); }
public WindowState getWindowState() { return request.getWindowState(); }
@Override public void processAction(ActionRequest request, ActionResponse response) throws PortletException, IOException { actionFoo = request.getParameterValues("foo"); actionPortletMode = request.getPortletMode(); actionWindowState = request.getWindowState(); }
@Override public void processAction(ActionRequest request, ActionResponse response) throws PortletException, IOException { actionFoo = request.getParameterValues("foo"); actionPortletMode = request.getPortletMode(); actionWindowState = request.getWindowState(); }
public void processAction(ActionRequest actionRequest, ActionResponse actionResponse) throws PortletException, IOException { WindowState windowState = actionRequest.getWindowState(); if (!windowState.equals(WindowState.MINIMIZED) && actionRequest.getPortletMode().equals(CONFIG_PORTLET_MODE)) { handleConfigForm(actionRequest, actionResponse); } else { XWikiContext context = null; try { // Initialize the XWiki Context which is the main object used to pass information across // classes/methods. It's also wrapping the request, response, and all container objects // in general. context = initializeXWikiContext(actionRequest, actionResponse); // From this line forward all information can be found in the XWiki Context. doView(context); } catch (XWikiException e) { throw new PortletException("Failed to initalize XWiki Context", e); } finally { if (context != null) { cleanupComponents(); } } } }
WindowState windowState = actionRequest.getWindowState();