com.ibm.portal.theme.plugin
Interface ThemeLinkItem

All Superinterfaces:
ActiveFlag, Localized, ThemeContent, ThemeItem
All Known Implementing Classes:
DefaultThemeLinkItem

public interface ThemeLinkItem
extends ThemeItem

A theme contribution that creates a URL.

Since:
6.0
Note:
This interface is designed to be implemented by clients.

Method Summary
 boolean isNewWindow()
          Indicates if the URL should be opened in a new browser window or not.
 EngineURL newURL()
          Returns the generated URL.
 boolean requiresPOST()
          If the URL is an action, it should be rendered as a FORM POST instead of the usual GET.
 
Methods inherited from interface com.ibm.portal.theme.plugin.ThemeItem
getTooltip, newIconURL
 
Methods inherited from interface com.ibm.portal.theme.plugin.ThemeContent
getOrdinal, init
 
Methods inherited from interface com.ibm.portal.ActiveFlag
isActive
 
Methods inherited from interface com.ibm.portal.Localized
getDescription, getLocales, getTitle
 

Method Detail

newURL

EngineURL newURL()
                 throws StateException
Returns the generated URL. If the user is not allowed access to the resource provided by the URL, a null value is returned.

Returns:
the URL or null
Throws:
StateException - if an error occurs creating the URL

requiresPOST

boolean requiresPOST()
If the URL is an action, it should be rendered as a FORM POST instead of the usual GET.

Returns:
true if the URL is an action

isNewWindow

boolean isNewWindow()
Indicates if the URL should be opened in a new browser window or not.

Returns:
true if the URL should be opened in a new window