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
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getStyleValue(String style, String parameter)
Retrieves the value of a CSS property in the given HTML element style attributestatic String
getStyleValue(String style, String parameter, String defaultValue)
Retrieves the value of a CSS property in the given HTML element style attribute
-
-
-
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
-
-