|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Parameter value wrapper used by the OpenCms workplace widgets.
| Method Summary | |
String |
getDefault(CmsObject cms)
Returns the default value of this parameter. |
String |
getId()
Returns the form id of this parameter. |
int |
getIndex()
Returns the index of this widget parameter, starting with 0. |
String |
getKey()
Returns the localized key identificator of this parameter. |
int |
getMaxOccurs()
Returns the maximum occurences of this parameter. |
int |
getMinOccurs()
Returns the minimum occurences of this parameter. |
String |
getName()
Returns the name of this parameter. |
String |
getStringValue(CmsObject cms)
Returns the value of this parameter. |
boolean |
hasError()
Returns true if this widgets value contains an error. |
void |
setKeyPrefix(String prefix)
Sets an optional localized key prefix identificator of this parameter. |
void |
setStringValue(CmsObject cms,
String value)
Sets the value of this parameter. |
| Method Detail |
public String getDefault(CmsObject cms)
If no default value has been provided, null is returned.
cms - an initialized instance of an OpenCms user context
public String getId()
public int getIndex()
This is usefull in case there are more then one parameters with the same name, for example when creating a list of parameters of the same type.
public String getKey()
public int getMaxOccurs()
public int getMinOccurs()
public String getName()
public String getStringValue(CmsObject cms)
cms - an initialized instance of an OpenCms user context
public boolean hasError()
true if this widgets value contains an error.
true if this widgets value contains an errorpublic void setKeyPrefix(String prefix)
prefix - the optional localized key prefix identificator of this parameter
public void setStringValue(CmsObject cms,
String value)
This method does provide processing of the content based on the users current OpenCms context. This can be used e.g. for link extraction and replacement in the content.
cms - an initialized instance of an OpenCms user contextvalue - the value to set
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||