|
||||||||||
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. |
javax.servlet.http.HttpServletRequest |
getRequest()
|
javax.servlet.http.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()
|
com.ibm.portal.state.DisposableURL |
newIconURL(com.ibm.portal.state.accessors.url.PortalResources.State state)
Returns the URL for the associated icon. |
void |
setInitializationData(org.eclipse.core.runtime.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()
ThemeContent
getOrdinal
in interface ThemeContent
public void init(ThemeContext aContext)
ThemeContent
ThemeContent
object with the current
context.
init
in interface ThemeContent
aContext
- the initialized current contextpublic javax.servlet.http.HttpServletRequest getRequest()
public javax.servlet.http.HttpServletResponse getResponse()
public java.lang.String getDescription(java.util.Locale arg0)
Localized
getDescription
in interface Localized
arg0
- the locale for which to retrieve the description, must not
be null
.
null
.
It is up to the invoker of the method to implement an appropriate
fallback mechanismpublic ListModel getLocales()
Localized
getLocales
in interface Localized
ListModel
if no locales are supported.public java.lang.String getTitle(java.util.Locale arg0)
Localized
getTitle
in interface Localized
arg0
- the locale for which to retrieve the title, must not
be 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)
ThemeItem
null
if the tooltip text doesn't
exist for the specified locale or if an error occurs.
getTooltip
in interface ThemeItem
locale
- the current locale
null
public com.ibm.portal.state.DisposableURL newIconURL(com.ibm.portal.state.accessors.url.PortalResources.State state)
ThemeItem
null
value is returned.
newIconURL
in interface ThemeItem
state
- the icon state
null
if the URL cannot be createdpublic boolean isActive() throws ModelException
isActive
in interface com.ibm.portal.ActiveFlag
ModelException
public void setInitializationData(org.eclipse.core.runtime.IConfigurationElement element, java.lang.String arg1, java.lang.Object arg2) throws org.eclipse.core.runtime.CoreException
setInitializationData
in interface org.eclipse.core.runtime.IExecutableExtension
org.eclipse.core.runtime.CoreException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |