|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.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()
|
DisposableURL |
newIconURL(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()
ThemeContent
getOrdinal in interface ThemeContentpublic void init(ThemeContext aContext)
ThemeContentThemeContent object with the current
context.
init in interface ThemeContentaContext - the initialized current contextpublic HttpServletRequest getRequest()
public HttpServletResponse getResponse()
public java.lang.String getDescription(java.util.Locale arg0)
Localized
getDescription in interface Localizedarg0 - 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 LocalizedListModel if no locales are supported.public java.lang.String getTitle(java.util.Locale arg0)
Localized
getTitle in interface Localizedarg0 - 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)
ThemeItemnull if the tooltip text doesn't
exist for the specified locale or if an error occurs.
getTooltip in interface ThemeItemlocale - the current locale
nullpublic DisposableURL newIconURL(State state)
ThemeItemnull
value is returned.
newIconURL in interface ThemeItemstate - the icon state
null if the URL cannot be created
public boolean isActive()
throws ModelException
ModelException
public void setInitializationData(IConfigurationElement element,
java.lang.String arg1,
java.lang.Object arg2)
throws CoreException
CoreException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||