|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.wsrp4j.util.StateChangedServiceImpl
org.apache.wsrp4j.consumer.app.driver.PageImpl
A simple page with portlets on it.
| Field Summary | |
private HandleGenerator |
handleGenerator
|
private java.lang.String |
maximizedPortletInstanceKey
|
private java.lang.String |
pageID
|
private java.util.Hashtable |
portlets
|
private java.lang.String |
title
|
| Fields inherited from class org.apache.wsrp4j.util.StateChangedServiceImpl |
|
| Constructor Summary | |
PageImpl()
Default constructor, for CASTOR persistence use only |
|
PageImpl(java.lang.String pageID,
java.util.Map portlets)
This constructor should be use to create a new page. |
|
| Method Summary | |
void |
addPortlet(PortletKey portletKey)
Add an portlet to the page |
void |
addPortlet(PortletKey portletKey,
java.lang.String instanceKey)
Add an portlet to the page and set the ID of this portlet on the page to the given value. |
java.lang.String |
getMaximizedPortletInstanceKey()
Get the instance key of the portlet on this page which is in maximized window state or null if no portlet is in that state. |
java.lang.String |
getPageID()
Get the ID of this page |
java.util.Iterator |
getPortletInstanceKeys()
Get the keys of all portlet instances on the page. |
PortletKey |
getPortletKey(java.lang.String portletInstanceKey)
Get the portlet key to the given portlet instance key. |
java.util.Map |
getPortlets()
Get map with portlet instance id's map to portlet keys with all portlet instances on this page. |
java.lang.String |
getTitle()
Get the title of the page |
void |
removePortlet(java.lang.String portletInstanceKey)
Remove an portlet instance from the page |
void |
setMaximizedPortletInstanceKey(java.lang.String portletInstanceKey)
Set the portlet which is currently in maximized window state |
void |
setPageID(java.lang.String pageID)
Set the page ID |
void |
setPortlets(java.util.Map map)
Set the portlets which should appear on the page. |
void |
setTitle(java.lang.String title)
Set the title of the page |
| Methods inherited from class org.apache.wsrp4j.util.StateChangedServiceImpl |
addListener, stateChanged |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private java.lang.String pageID
private java.lang.String title
private java.util.Hashtable portlets
private HandleGenerator handleGenerator
private java.lang.String maximizedPortletInstanceKey
| Constructor Detail |
public PageImpl()
public PageImpl(java.lang.String pageID,
java.util.Map portlets)
pageID - The ID of the pageportlets - A map with portlet instance id's and portlet keys| Method Detail |
public java.util.Iterator getPortletInstanceKeys()
getPortletInstanceKeys in interface Pagepublic void addPortlet(PortletKey portletKey)
addPortlet in interface PageportletKey - The portlet key
public void addPortlet(PortletKey portletKey,
java.lang.String instanceKey)
addPortlet in interface PageportletKey - The portlet keyinstanceKey - ID of the portlet on the pagepublic void removePortlet(java.lang.String portletInstanceKey)
removePortlet in interface PageportletInstanceKey - The instance key of the portlet instance to be removedpublic PortletKey getPortletKey(java.lang.String portletInstanceKey)
getPortletKey in interface PageportletInstanceKey - Key of a portlet instance on the page
public java.lang.String getPageID()
getPageID in interface Pagepublic void setPageID(java.lang.String pageID)
setPageID in interface PagepageID - ID of this pagepublic java.lang.String getTitle()
getTitle in interface Pagepublic void setTitle(java.lang.String title)
setTitle in interface Pagetitle - Page titlepublic java.lang.String getMaximizedPortletInstanceKey()
getMaximizedPortletInstanceKey in interface Pagepublic void setMaximizedPortletInstanceKey(java.lang.String portletInstanceKey)
setMaximizedPortletInstanceKey in interface PageportletInstanceKey - instance IDpublic void setPortlets(java.util.Map map)
setPortlets in interface Pagepublic java.util.Map getPortlets()
getPortlets in interface Page
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||