|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The PortletControl acts both as a decoration around a Portlet or PortletSet and also as the window manager for the enclosed Portlet(Set). As such it controls the operation that may be performed on this portlet and whether the portlet content should be displayed or not. PortletControl also delegates all Portlet and PortletSet methods to its inner object and can thus be transparently cascaded or substituted to a simple portlet wherever in a PSML object tree.
Nested Class Summary |
Nested classes inherited from class org.apache.jetspeed.portal.PortletSet |
PortletSet.Constraints |
Field Summary | |
static java.lang.String |
BACKGROUND_COLOR
|
static java.lang.String |
COLOR
|
static java.lang.String |
TITLE_COLOR
|
static java.lang.String |
WIDTH
|
Fields inherited from interface org.apache.jetspeed.portal.Portlet |
PORTLET_MAXIMIZED, PORTLET_MINIMIZED, PORTLET_NORMAL |
Method Summary | |
java.lang.String |
getBackgroundColor()
Deprecated. |
java.lang.String |
getColor()
Deprecated. |
PortletControlConfig |
getConfig()
|
Portlet |
getPortlet()
Retrieves the portlet managed by this control |
java.lang.String |
getTitleColor()
Deprecated. |
java.lang.String |
getWidth()
Deprecated. |
void |
init(Portlet portlet)
Initializes the control and associates it with a portlet |
void |
setBackgroundColor(java.lang.String backgroundColor)
Deprecated. |
void |
setColor(java.lang.String color)
Deprecated. |
void |
setConfig(PortletControlConfig conf)
Sets the PortletControl specific configuration |
void |
setPortlet(Portlet portlet)
Sets the portlet to be managed by this control |
void |
setTitleColor(java.lang.String titleColor)
Deprecated. |
void |
setWidth(int width)
Deprecated. |
void |
setWidth(java.lang.String width)
Deprecated. |
Methods inherited from interface org.apache.jetspeed.portal.Portlet |
getAllowEdit, getAllowMaximize, getAllowView, getAttribute, getContent, getCreationTime, getDescription, getDescription, getID, getImage, getInstance, getName, getPortletConfig, getTitle, getTitle, init, isShowTitleBar, providesCustomization, setAttribute, setCreationTime, setDescription, setID, setImage, setName, setPortletConfig, setTitle, setTitle, supportsType |
Methods inherited from interface org.apache.jetspeed.portal.PortletSet |
addPortlet, addPortlet, addPortlet, addPortlet, getController, getPortletAt, getPortletByID, getPortletByName, getPortlets, setController, size, toArray |
Field Detail |
public static final java.lang.String COLOR
public static final java.lang.String BACKGROUND_COLOR
public static final java.lang.String TITLE_COLOR
public static final java.lang.String WIDTH
Method Detail |
public PortletControlConfig getConfig()
public void setConfig(PortletControlConfig conf)
conf
- the new PortletControl configurationpublic void setPortlet(Portlet portlet)
portlet
- the new portlet to be managed by the controlpublic Portlet getPortlet()
public void init(Portlet portlet)
portlet
- the portlet to be managed by this controlpublic java.lang.String getColor()
public void setColor(java.lang.String color)
color
- the text color value in HTML format (#RRGGBB)public java.lang.String getBackgroundColor()
public void setBackgroundColor(java.lang.String backgroundColor)
backgroundColor
- the background color value in HTML format (#RRGGBB)public java.lang.String getTitleColor()
public void setTitleColor(java.lang.String titleColor)
titleColor
- the title color value in HTML format (#RRGGBB)public java.lang.String getWidth()
public void setWidth(int width)
width
- the width of portlet. Must be a positive, non nul integerpublic void setWidth(java.lang.String width)
width
- the width of portlet. Must be parseable as a positive, non
nul integer or a percentage
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |