@Override public Enumeration<WindowState> getSupportedWindowStates() { return wrapped.getSupportedWindowStates(); }
@Override public Enumeration<WindowState> getSupportedWindowStates() { return wrappedPortalContext.getSupportedWindowStates(); } }
@Override public Enumeration<WindowState> getSupportedWindowStates() { return wrappedPortalContext.getSupportedWindowStates(); } }
@Override public Enumeration<WindowState> getSupportedWindowStates() { return wrappedPortalContext.getSupportedWindowStates(); }
protected Set<WindowState> portalSupportedStates() { final Set<WindowState> upSupportedModes = new HashSet<WindowState>(); final Enumeration upSupportedModesEnum = this.portalContext.getSupportedWindowStates(); CollectionUtils.addAll(upSupportedModes, upSupportedModesEnum); return upSupportedModes; }
protected Set<WindowState> portalSupportedStates() { final Set<WindowState> upSupportedModes = new HashSet<WindowState>(); final Enumeration upSupportedModesEnum = this.portalContext.getSupportedWindowStates(); CollectionUtils.addAll(upSupportedModes, upSupportedModesEnum); return upSupportedModes; }
private boolean isWindowStateAllowed(WindowState state) { Enumeration supportedStates = portalContext.getSupportedWindowStates(); while (supportedStates.hasMoreElements()) { if (supportedStates.nextElement().toString().toUpperCase().equals( (state.toString().toUpperCase()))) { return true; } } return false; } // --------------------------------------------------------------------------------------------
private boolean isWindowStateAllowed(WindowState state) { Enumeration<WindowState> supportedStates = portalContext .getSupportedWindowStates(); while (supportedStates.hasMoreElements()) { if (supportedStates.nextElement().equals(state)) { return true; } } return false; }
@Override public boolean isWindowStateAllowed(WindowState windowState) { return CollectionUtils.contains(this.portalContext.getSupportedWindowStates(), windowState); }
protected boolean isWindowStateAllowed(WindowState state) { Enumeration<WindowState> supportedStates = getPortalContext() .getSupportedWindowStates(); while (supportedStates.hasMoreElements()) { if (supportedStates.nextElement().equals(state)) { return true; } } return false; }
/** * Determine whether or not the specified WindowState is allowed for this portlet. * * @param state * the state in question * @return true if the state is allowed. */ @Override public boolean isWindowStateAllowed(WindowState state) { for (Enumeration<WindowState> en = portalContext.getSupportedWindowStates(); en.hasMoreElements();) { if (en.nextElement().toString().equalsIgnoreCase(state.toString())) { return true; } } return false; }
@Override public void setWindowState(WindowState windowState) throws WindowStateException { if (!CollectionUtils.contains(this.portalContext.getSupportedWindowStates(), windowState)) { throw new WindowStateException("WindowState not supported", windowState); } this.windowState = windowState; }
@Override public void setWindowState(WindowState windowState) throws WindowStateException { if (!CollectionUtils.contains(getPortalContext().getSupportedWindowStates(), windowState)) { throw new WindowStateException("WindowState not supported", windowState); } this.windowState = windowState; }
for (Enumeration<WindowState> e = req.getPortalContext().getSupportedWindowStates();e.hasMoreElements();) { WindowState next = e.nextElement(); if (next.equals(windowState)) {
for (Enumeration<WindowState> e = req.getPortalContext().getSupportedWindowStates();e.hasMoreElements();) { WindowState next = e.nextElement(); if (next.equals(windowState)) {