|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PortletConfiguration
A representation of a configuration for a Portlet on a page. In addition to the ObjectConfigurable properties of the Portlet, the row and column are available as well as the id of the dashboard page. The interface is a bit bogus - partially a dashboard page position bean with some other stuff on it.
Only the main implementation,PortletConfigurationImpl
, properly uses
the full interface.
If we ever remove support for Legacy Portlets this should probably be converted into a
final class and no longer implement ObjectConfigurable. However with the current model where we still need
to support the older style portlets ti will remain as is.
Method Summary | |
---|---|
com.atlassian.gadgets.dashboard.Color |
getColor()
Returns the color to use when rendering the Chrome of this gadget. |
java.lang.Integer |
getColumn()
Represents the column that the configured portlet resides in. |
java.lang.Long |
getDashboardPageId()
Provides the dashboard page id. |
java.net.URI |
getGadgetURI()
Returns the URI pointing to the Gadget XML for this particular portlet. |
java.lang.Long |
getId()
Return the id of the PortletConfiguration. |
Portlet |
getPortlet()
Deprecated. This is only needed for legacy portlets now. Gadgets should no longer use this. |
java.lang.Integer |
getRow()
Represents the row that the configured portlet resides in. |
java.util.Map<java.lang.String,java.lang.String> |
getUserPrefs()
An unmodifiable map of user preferences stored for this gadget. |
boolean |
isResourcesProvided()
Declares whether the portlet should expect to have resources such as CSS and JavaScript files included in the page. |
void |
setColor(com.atlassian.gadgets.dashboard.Color color)
Set the color of the chrome for a gadget. |
void |
setColumn(java.lang.Integer column)
Sets the column for the Portlet, effectively moving the portlet left or right on the page. |
void |
setDashboardPageId(java.lang.Long portalPageId)
Sets the dashboard page id. |
void |
setRow(java.lang.Integer row)
Sets the row for the Portlet, effectively moving the portlet up or down on the page. |
void |
setUserPrefs(java.util.Map<java.lang.String,java.lang.String> userPrefs)
Sets the userPreferences for this portletconfig. |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Methods inherited from interface com.atlassian.configurable.ObjectConfigurable |
---|
getDefaultProperty, getKey, getLongProperty, getObjectConfiguration, getProperties, getProperty, getTextProperty, hasProperty |
Method Detail |
---|
java.lang.Long getId()
Portlet getPortlet()
java.lang.Integer getColumn()
void setColumn(java.lang.Integer column)
column
- the column number starting from 1.java.lang.Integer getRow()
void setRow(java.lang.Integer row)
row
- the row number starting from 1.java.lang.Long getDashboardPageId()
void setDashboardPageId(java.lang.Long portalPageId)
portalPageId
- the dashboard page id.boolean isResourcesProvided()
java.net.URI getGadgetURI()
http://code.google.com/apis/gadgets/docs/reference.html
com.atlassian.gadgets.dashboard.Color getColor()
void setColor(com.atlassian.gadgets.dashboard.Color color)
color
- the color of the chrome for a gadget.java.util.Map<java.lang.String,java.lang.String> getUserPrefs()
http://code.google.com/apis/gadgets/docs/reference.html#Userprefs_Ref
void setUserPrefs(java.util.Map<java.lang.String,java.lang.String> userPrefs)
userPrefs
- A map of key value pairs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |