com.ibm.portal.theme.plugin.impl
Class DefaultThemeTextItem
java.lang.Object
com.ibm.portal.theme.plugin.impl.DefaultThemeContent
com.ibm.portal.theme.plugin.impl.DefaultThemeTextItem
- All Implemented Interfaces:
- com.ibm.portal.ActiveFlag, Localized, ThemeContentDescriptorConstants, ThemeItemDescriptorConstants, ThemeContent, ThemeItem, ThemeTextItem, org.eclipse.core.runtime.IExecutableExtension
public class DefaultThemeTextItem
- extends DefaultThemeContent
- implements ThemeTextItem
Generates some text to contribute to a theme extension point. This extension will parse the plugin.xml
and generate some text.
This class may be sub-classed by developers.
Markup description:
Element name: item
Attributes:
- id
- class
- ordinal
- title
- description
- tooltip
- text
- Since:
- 6.0
- Note:
This interface is designed to be implemented by clients. |
Field Summary |
static java.lang.String |
TEXT_ATTRIBUTE
The TEXT_ATTRIBUTE should contain the
text to contribute to the theme. |
Method Summary |
java.lang.String |
getText(java.util.Locale locale)
Return the text for the specified locale. |
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 |
Methods inherited from interface com.ibm.portal.ActiveFlag |
isActive |
TEXT_ATTRIBUTE
public static final java.lang.String TEXT_ATTRIBUTE
- The
TEXT_ATTRIBUTE
should contain the
text to contribute to the theme.
- See Also:
- Constant Field Values
DefaultThemeTextItem
public DefaultThemeTextItem()
getText
public java.lang.String getText(java.util.Locale locale)
- Description copied from interface:
ThemeTextItem
- Return the text for the specified locale. If the
text doesn't exist for the locale, a
null
value is returned.
- Specified by:
getText
in interface ThemeTextItem
- Parameters:
locale
- the current locale
- Returns:
- the text or
null
setInitializationData
public void setInitializationData(org.eclipse.core.runtime.IConfigurationElement element,
java.lang.String arg1,
java.lang.Object arg2)
throws org.eclipse.core.runtime.CoreException
- Specified by:
setInitializationData
in interface org.eclipse.core.runtime.IExecutableExtension
- Overrides:
setInitializationData
in class DefaultThemeContent
- Throws:
org.eclipse.core.runtime.CoreException