org.apache.jetspeed.portlet
Interface PortletWindow


Deprecated. since 6.0. Support of the IBM portlet API may be removed in a future release of WebSphere Portal. Use of the Java Portlet API (javax.portlet) is recommended instead.

public interface PortletWindow

The PortletWindow represents the window that encloses a portlet. The portlet window can send events on manipulation of its various window controls, like the "minimize" or "close" buttons. But a portlet can also interrogate the portlet window about its current visibility state. For example, a portlet may render its content differently depending on whether its window is maximized or not.

Since:
4.1

Nested Class Summary
static class PortletWindow.State
          Deprecated. The State class is a finite enumeration of the possible states that a window can assume.
 
Method Summary
 PortletWindow.State getWindowState()
          Deprecated. Returns the current window state of this portlet
 boolean isDetached()
          Deprecated. use getWindowState() since version 1.1
 boolean isMaximized()
          Deprecated. use getWindowState() since version 1.1
 boolean isMinimized()
          Deprecated. use getWindowState() since version 1.1
 void setWindowState(PortletWindow.State state)
          Deprecated. Defines which portlet window state is shown next.
 

Method Detail

isDetached

boolean isDetached()
Deprecated. use getWindowState() since version 1.1

Returns whether this portlet window is currently detached.

Returns:
true if this window is detached,
false otherwise

isMaximized

boolean isMaximized()
Deprecated. use getWindowState() since version 1.1

Returns whether this portlet window is currently maximized.

Returns:
true if this window is maximized,
false otherwise

isMinimized

boolean isMinimized()
Deprecated. use getWindowState() since version 1.1

Returns whether this portlet window is currently minimized.

Returns:
true if this window is minimized,
false otherwise

getWindowState

PortletWindow.State getWindowState()
Deprecated. 
Returns the current window state of this portlet

Returns:
the window state

setWindowState

void setWindowState(PortletWindow.State state)
                    throws AccessDeniedException
Deprecated. 
Defines which portlet window state is shown next.

This function may only be used during event processing, in any other case the call has no effect.

Parameters:
state - the portlet window state to be shown next
Throws:
AccessDeniedException - if the portlet tries to access this function outside of the event processing