com.silverpeas.wysiwyg.dynamicvalue.control
Class DynamicValueReplacement

java.lang.Object
  extended by com.silverpeas.wysiwyg.dynamicvalue.control.DynamicValueReplacement

public class DynamicValueReplacement
extends Object


Constructor Summary
DynamicValueReplacement()
          default constructor
 
Method Summary
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
static boolean isActivate()
          checks whether the dynamic value functionality is active.
 String replaceKeyByValue(String wysiwygText)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynamicValueReplacement

public DynamicValueReplacement()
default constructor

Method Detail

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 language
fieldName - name of the html field to allow using the generating code html with page contained many HTML editor
editorName - 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.