| |||||||||
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
public class DefaultThemeContent
The default implementation of ThemeContent. This class provides access to the default properties.
This class may be sub-classed by developers.
This interface is designed to be implemented by clients. |
Field Summary | |
---|---|
protected ThemeContext | context
context the ThemeContext
|
protected java.lang.String | description
description the description of the extension; usually specified in the plugin.xml
|
protected int | ordinal
ordinal used to determine rendering order
|
protected java.lang.String | title
title the title of the extension; usually specified in the plugin.xml
|
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 | |
---|---|
DefaultThemeContent()
|
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. |
HttpServletRequest | getRequest()
|
HttpServletResponse | getResponse()
|
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. |
void | init(ThemeContext aContext)
Initializes the ThemeContent object with the current context. |
boolean | isActive()
Returns whether this resource is active or not. |
DisposableURL | newIconURL(PortalResources.State state)
Returns the URL for the associated icon. |
void | setInitializationData(IConfigurationElement element,
java.lang.String arg1,
java.lang.Object arg2)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int ordinal
ordinal
used to determine rendering order
protected java.lang.String title
title
the title of the extension; usually specified in the plugin.xml
protected java.lang.String description
description
the description of the extension; usually specified in the plugin.xml
protected ThemeContext context
context
the ThemeContext
Constructor Detail |
---|
public DefaultThemeContent()
Method Detail |
---|
public int getOrdinal()
public void init(ThemeContext aContext)
public HttpServletRequest getRequest()
public HttpServletResponse getResponse()
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 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 getTooltip(java.util.Locale locale)
null
if the tooltip text doesn't
exist for the specified locale or if an error occurs.
null
public DisposableURL newIconURL(PortalResources.State state)
null
value is returned.
null
if the URL cannot be createdpublic boolean isActive() throws ModelException
true
if the resource is active, false
otherwise
public void setInitializationData(IConfigurationElement element, java.lang.String arg1, java.lang.Object arg2) throws CoreException
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |