@Override public org.gatein.pc.api.WindowState unmarshal(String name) throws Exception { return org.gatein.pc.api.WindowState.create(name); }
public String getWindowStateName() { return windowState.toString(); } }
public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } ContainerWindowStateInfo that = (ContainerWindowStateInfo)o; return windowState.equals(that.windowState); }
if (windowState != null && !WindowState.NORMAL.equals(windowState)) parameters.put("javax.portlet.window_state", new String[]{windowState.toString()}); if (windowState != null && !WindowState.NORMAL.equals(windowState)) parameters.put("javax.portlet.window_state", new String[]{windowState.toString()});
public int hashCode() { return windowState.hashCode(); }
private static WindowState getTemplateWindowState() { return WindowState.create(REWRITE_PARAMETER_OPEN + WINDOW_STATE + REWRITE_PARAMETER_CLOSE, true); }
public Enumeration getSupportedWindowStates() { if (supportedWindowStates == null) { Set tmp = portal.getWindowStates(); supportedWindowStates = new HashSet(tmp.size()); for (Iterator i = tmp.iterator(); i.hasNext();) { WindowState windowState = (WindowState)i.next(); supportedWindowStates.add(PortletUtils.decodeWindowState(windowState.toString())); } } return Tools.toEnumeration(supportedWindowStates.iterator()); } }
public WindowStateInfo getWindowState(WindowState value) { for (WindowStateInfo windowState : getAllWindowStates()) { if (windowState.getWindowState().equals(value)) { return windowState; } } // return null; }
public static WindowState getJSR168WindowStateFromWSRPName(String wsrpWindowStateName) { ParameterValidation.throwIllegalArgExceptionIfNullOrEmpty(wsrpWindowStateName, WSRP_WINDOW_STATE_NAME, null); WindowState windowState = WSRP_JSR168_WINDOW_STATES.get(wsrpWindowStateName); return (windowState == null) ? WindowState.create(wsrpWindowStateName) : windowState; }
public WindowState getWindowState() { String s = invocation.getWindowState().toString(); return PortletUtils.decodeWindowState(s); }
public String getMaximizedWindowId() { if (pageNavigationalState != null) { for (String windowId : pageNavigationalState.getPortletWindowIds()) { PortletWindowNavigationalState windowNS = pageNavigationalState.getPortletWindowNavigationalState(windowId); if (org.gatein.pc.api.WindowState.MAXIMIZED.equals(windowNS.getWindowState())) { return windowId; } } } // return null; } }
public org.gatein.pc.api.WindowState getWindowState() { if (windowState != null) { return org.gatein.pc.api.WindowState.create(windowState.toString()); } return null; }
public static String getWSRPNameFromJSR168WindowState(WindowState windowState) { ParameterValidation.throwIllegalArgExceptionIfNull(windowState, WINDOW_STATE); return convertJSR168WindowStateNameToWSRPName(windowState.toString()); }
if (windowNS == null || !windowNS.getWindowState().equals(org.gatein.pc.api.WindowState.MINIMIZED))
public boolean isWindowStateAllowed(WindowState windowState) { return supportedWindowStates.contains(org.gatein.pc.api.WindowState.create(windowState.toString())); }
data.writeUTF(windowNS.getWindowState().toString());
useEntry &= windowState.equals(cachedEntry.windowState);
org.gatein.pc.api.WindowState windowState = WindowState.create(supportedWindowStateValue.trim()); supportedWindowStates.add(windowState);
break; case 4: windowState = org.gatein.pc.api.WindowState.create(data.readUTF()); break; default: