站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.6 API 英文版文档

WindowContext - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.theme.page
Class WindowContext

java.lang.Object
  extended byorg.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

Field Summary
private  int order
           
private  java.lang.String regionName
           
private static long serialVersionUID
          The serialVersionUID
private  boolean visible
           
private  java.lang.String windowID
           
private  java.lang.String windowName
           
 
Constructor Summary
WindowContext(java.lang.String windowName, java.lang.String windowID, java.lang.String regionName, int order)
           
 
Method Summary
 int compareTo(java.lang.Object o)
           
static WindowContext copy(WindowContext template)
           
 boolean equals(java.lang.Object o)
           
 java.lang.String getId()
           
 int getOrder()
           
 java.lang.String getRegionName()
           
 java.lang.String getWindowName()
           
 int hashCode()
           
 boolean isVisible()
           
 void setOrder(int order)
           
 void setRegionName(java.lang.String regionName)
           
 void setVisible(boolean visible)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

WindowContext

public WindowContext(java.lang.String windowName,
                     java.lang.String windowID,
                     java.lang.String regionName,
                     int order)
Method Detail

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()