com.atlassian.jira.portal
Interface PortletConfiguration

All Superinterfaces:
Comparable<PortletConfiguration>
All Known Implementing Classes:
PortletConfigurationImpl

public interface PortletConfiguration
extends Comparable<PortletConfiguration>

A representation of a configuration for a Google Gadget.

Only the main implementation (PortletConfigurationImpl), properly uses the full interface.


Method Summary
 com.atlassian.gadgets.dashboard.Color getColor()
          Returns the color to use when rendering the Chrome of this gadget.
 Integer getColumn()
          Represents the column that the configured portlet resides in.
 Long getDashboardPageId()
          Provides the dashboard page id.
 URI getGadgetURI()
          Returns the URI pointing to the Gadget XML for this particular portlet.
 Long getId()
          Return the id of the PortletConfiguration.
 Integer getRow()
          Represents the row that the configured portlet resides in.
 Map<String,String> getUserPrefs()
          An unmodifiable map of user preferences stored for this gadget.
 void setColor(com.atlassian.gadgets.dashboard.Color color)
          Set the color of the chrome for a gadget.
 void setColumn(Integer column)
          Sets the column for the Portlet, effectively moving the portlet left or right on the page.
 void setDashboardPageId(Long portalPageId)
          Sets the dashboard page id.
 void setRow(Integer row)
          Sets the row for the Portlet, effectively moving the portlet up or down on the page.
 void setUserPrefs(Map<String,String> userPrefs)
          Sets the userPreferences for this portletconfig.
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

getId

Long getId()
Return the id of the PortletConfiguration.

Returns:
the id of the PortletConfiguration.

getColumn

Integer getColumn()
Represents the column that the configured portlet resides in.

Returns:
the column number starting from 1.

setColumn

void setColumn(Integer column)
Sets the column for the Portlet, effectively moving the portlet left or right on the page.

Parameters:
column - the column number starting from 1.

getRow

Integer getRow()
Represents the row that the configured portlet resides in.

Returns:
the row number starting from 1.

setRow

void setRow(Integer row)
Sets the row for the Portlet, effectively moving the portlet up or down on the page.

Parameters:
row - the row number starting from 1.

getDashboardPageId

Long getDashboardPageId()
Provides the dashboard page id.

Returns:
the dashboard page id.

setDashboardPageId

void setDashboardPageId(Long portalPageId)
Sets the dashboard page id.

Parameters:
portalPageId - the dashboard page id.

getGadgetURI

URI getGadgetURI()
Returns the URI pointing to the Gadget XML for this particular portlet. May return null for legacy portlets (that don't implement the Gadget spec).

Returns:
URI pointing to the Gadget XML or null
See Also:
http://code.google.com/apis/gadgets/docs/reference.html

getColor

com.atlassian.gadgets.dashboard.Color getColor()
Returns the color to use when rendering the Chrome of this gadget.

Returns:
color to use when rendering the Chrome of this gadget

setColor

void setColor(com.atlassian.gadgets.dashboard.Color color)
Set the color of the chrome for a gadget.

Parameters:
color - the color of the chrome for a gadget.

getUserPrefs

Map<String,String> getUserPrefs()
An unmodifiable map of user preferences stored for this gadget. Will return an empty map in the case of a legacy gadget.

Returns:
map of user preferences stored for this gadget.
See Also:
http://code.google.com/apis/gadgets/docs/reference.html#Userprefs_Ref

setUserPrefs

void setUserPrefs(Map<String,String> userPrefs)
Sets the userPreferences for this portletconfig.

Parameters:
userPrefs - A map of key value pairs


Copyright © 2002-2013 Atlassian. All Rights Reserved.