| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.portal.theme.plugin.impl.DefaultThemeContent com.ibm.portal.theme.plugin.impl.DefaultThemeItem com.ibm.portal.theme.plugin.impl.DefaultThemeLinkItem
public class DefaultThemeLinkItem
Creates a link to a portal page. This extension will parse the plugin.xml and create a link to the specified content node.
This class may be sub-classed by developers.
Markup description:
Element name: item
Attributes:
This interface is designed to be implemented by clients. |
Field Summary | |
---|---|
static java.lang.String | CONTENT_NODE_ATTRIBUTE
The CONTENT_NODE_ATTRIBUTE indicates the content node
in the navigation model that we want to generate a URL to.
|
static java.lang.String | NEW_WINDOW_ATTRIBUTE
The NEW_WINDOW_ATTRIBUTE indicates whether the url
should be opened in a new window or not.
|
Fields inherited from class com.ibm.portal.theme.plugin.impl.DefaultThemeItem |
---|
ICON_NAME_ATTRIBUTE, iconName, state |
Fields inherited from class com.ibm.portal.theme.plugin.impl.DefaultThemeContent |
---|
context, description, ordinal, title |
Fields inherited from interface com.ibm.portal.theme.plugin.impl.ThemeItemDescriptorConstants |
---|
ELEMENT_NAME, TOOLTIP_ATTRIBUTE |
Fields inherited from interface com.ibm.portal.theme.plugin.impl.ThemeContentDescriptorConstants |
---|
CLASS_ATTRIBUTE, DESCR_ATTRIBUTE, ID_ATTRIBUTE, ORDINAL_ATTRIBUTE, TITLE_ATTRIBUTE |
Constructor Summary | |
---|---|
DefaultThemeLinkItem()
|
Method Summary | |
---|---|
java.lang.String | getDescription(java.util.Locale arg0)
Returns the description of this object in the given locale. |
ListModel | getLocales()
Returns a list model containing the locales that are supported by this object. |
int | getOrdinal()
Gets the ordinal value. |
java.lang.String | getTitle(java.util.Locale arg0)
Returns the title of this object in the given locale. |
java.lang.String | getTooltip(java.util.Locale locale)
Returns the tooltip text for the current locale. |
boolean | isActive()
Returns whether this resource is active or not. |
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. |
void | setInitializationData(IConfigurationElement element,
java.lang.String arg1,
java.lang.Object arg2)
|
Methods inherited from class com.ibm.portal.theme.plugin.impl.DefaultThemeItem |
---|
createIconFilename, getIconDirectoryPath, getIconFileName, getIconStateValue, getStateValue, newIconURL |
Methods inherited from class com.ibm.portal.theme.plugin.impl.DefaultThemeContent |
---|
getRequest, getResponse, init |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.ibm.portal.theme.plugin.ThemeItem |
---|
newIconURL |
Methods inherited from interface com.ibm.portal.theme.plugin.ThemeContent |
---|
init |
Field Detail |
---|
public static final java.lang.String CONTENT_NODE_ATTRIBUTE
CONTENT_NODE_ATTRIBUTE
indicates the content node
in the navigation model that we want to generate a URL to.
public static final java.lang.String NEW_WINDOW_ATTRIBUTE
NEW_WINDOW_ATTRIBUTE
indicates whether the url
should be opened in a new window or not.
Constructor Detail |
---|
public DefaultThemeLinkItem()
Method Detail |
---|
public void setInitializationData(IConfigurationElement element, java.lang.String arg1, java.lang.Object arg2) throws CoreException
public EngineURL newURL() throws StateException
null
value is
returned.
null
public java.lang.String getTitle(java.util.Locale arg0)
null
.
null
.
It is up to the invoker of the method to implement an appropriate
fallback mechanism.public java.lang.String getDescription(java.util.Locale arg0)
null
.
null
.
It is up to the invoker of the method to implement an appropriate
fallback mechanismpublic ListModel getLocales()
public java.lang.String getTooltip(java.util.Locale locale)
null
if the tooltip text doesn't
exist for the specified locale or if an error occurs.
null
public boolean requiresPOST()
true
if the URL is an actionpublic int getOrdinal()
public boolean isNewWindow()
true
if the URL should be opened in a new windowpublic boolean isActive() throws ModelException
true
if the resource is active, false
otherwise
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |