|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.workplace.wcm.api.plugin.rendering.ValueOptionAdapter com.ibm.workplace.wcm.api.plugin.rendering.ValueOptionImpl
public class ValueOptionImpl
Simple concrete implementation of ValueOptionAdapter
.
Example usage:
RenderingPluginParameter myRenderingPluginParameter = new RenderingPluginParameterImpl("MyRenderingParameter").allowedValues(new ValueOptionImpl("MyValueOption1"),
new ValueOptionImpl("MyValueOption2"));
Constructor Summary | |
---|---|
ValueOptionImpl(java.lang.String p_name)
Constructor |
Method Summary | |
---|---|
java.lang.String |
getDescription(java.util.Locale p_locale)
Get the translated description of the value option. |
ListModel<java.util.Locale> |
getLocales()
Returns a list model containing the locales that are supported by this object. |
java.lang.String |
getTitle(java.util.Locale p_locale)
Get the translated title of the value option. |
Methods inherited from class com.ibm.workplace.wcm.api.plugin.rendering.ValueOptionAdapter |
---|
getName, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ValueOptionImpl(java.lang.String p_name)
p_name
- allowed value nameMethod Detail |
---|
public java.lang.String getTitle(java.util.Locale p_locale)
ValueOption
p_locale
- 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.ValueOption.getTitle(java.util.Locale)
public java.lang.String getDescription(java.util.Locale p_locale)
ValueOption
p_locale
- 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 mechanismValueOption.getDescription(java.util.Locale)
public ListModel<java.util.Locale> getLocales()
Localized
ListModel
if no locales are supported.Localized.getLocales()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |