com.silverpeas.wysiwyg.dynamicvalue.control
Class DynamicValueReplacement
java.lang.Object
com.silverpeas.wysiwyg.dynamicvalue.control.DynamicValueReplacement
public class DynamicValueReplacement
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DynamicValueReplacement
public DynamicValueReplacement()
- default constructor
buildHTMLSelect
public static String buildHTMLSelect(String language,
String fieldName,
String editorName)
- gets the list of valid DynamicValue object and build the HTML code to display the HTML select
- Parameters:
language
- used to display information in correct languagefieldName
- name of the html field to allow using the generating code html with page
contained many HTML editoreditorName
- name of the wysiwyg editor
- Returns:
- String which contains HTML code
replaceKeyByValue
public String replaceKeyByValue(String wysiwygText)
isActivate
public static boolean isActivate()
- checks whether the dynamic value functionality is active. This activation is realized by
writing "ON" in an properties file. if the property isn't found or if it's at OFF, the
functionality will be considered as inactive.
- Returns:
- true whether the functionality is activated
Copyright © 2016 Silverpeas. All Rights Reserved.