当前页面:
在线文档首页 >
JBOSS Portal 2.6 API 英文版文档
WindowContext - JBOSS Portal 2.6 API 英文版文档
org.jboss.portal.theme.page
Class WindowContext
java.lang.Object
org.jboss.portal.theme.page.WindowContext
- All Implemented Interfaces:
- java.lang.Comparable, java.io.Serializable
- public final class WindowContext
- extends java.lang.Object
- implements java.lang.Comparable, java.io.Serializable
A WindowContext represents a portlet window on a page in the scope of one request.
It allows the layout strategy
for instance, to change the position of the window on the page (region, order) without persising the change. The
change will only be valid for the term of the current request.
This context implements the
Comparable
interface to allow natural sorting of the windows in one region, based on their order.
- Version:
- $Revision: 5448 $
- Author:
- Martin Holzner
- See Also:
- Serialized Form
Constructor Summary |
WindowContext(java.lang.String windowName,
java.lang.String windowID,
java.lang.String regionName,
int order)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
serialVersionUID
private static final long serialVersionUID
- The serialVersionUID
- See Also:
- Constant Field Values
windowID
private final java.lang.String windowID
windowName
private final java.lang.String windowName
regionName
private java.lang.String regionName
order
private int order
visible
private boolean visible
WindowContext
public WindowContext(java.lang.String windowName,
java.lang.String windowID,
java.lang.String regionName,
int order)
copy
public static WindowContext copy(WindowContext template)
getWindowName
public java.lang.String getWindowName()
getId
public java.lang.String getId()
getRegionName
public java.lang.String getRegionName()
setRegionName
public void setRegionName(java.lang.String regionName)
getOrder
public int getOrder()
setOrder
public void setOrder(int order)
isVisible
public boolean isVisible()
setVisible
public void setVisible(boolean visible)
compareTo
public int compareTo(java.lang.Object o)
- Specified by:
compareTo
in interface java.lang.Comparable
equals
public boolean equals(java.lang.Object o)
hashCode
public int hashCode()
toString
public java.lang.String toString()