Class InlineEditorHelper
- java.lang.Object
 - 
- org.ametys.cms.transformation.xslt.InlineEditorHelper
 
 
- 
public final class InlineEditorHelper extends Object
This class provides a helper for the in-line editor 
- 
- 
Constructor Summary
Constructors Modifier Constructor Description privateInlineEditorHelper() 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetStyleValue(String style, String parameter)Retrieves the value of a CSS property in the given HTML element style attributestatic StringgetStyleValue(String style, String parameter, String defaultValue)Retrieves the value of a CSS property in the given HTML element style attribute 
 - 
 
- 
- 
Constructor Detail
- 
InlineEditorHelper
private InlineEditorHelper()
 
 - 
 
- 
Method Detail
- 
getStyleValue
public static String getStyleValue(String style, String parameter)
Retrieves the value of a CSS property in the given HTML element style attribute- Parameters:
 style- The value of the HTML element style attribute (for example : "text-align:center; float:left; color: #000;")parameter- The CSS property ("text-align", "float", "color", ...)- Returns:
 - the value of the given CSS property or empty String if not found
 
 
- 
getStyleValue
public static String getStyleValue(String style, String parameter, String defaultValue)
Retrieves the value of a CSS property in the given HTML element style attribute- Parameters:
 style- The value of the HTML element style attribute (for example : "text-align:center; float:left; color: #000;")parameter- The CSS property ("text-align", "float", "color", ...)defaultValue- The default value return if style is empty- Returns:
 - the value of the given CSS property or empty String if not found
 
 
 - 
 
 -