Class InlineEditorHelper
java.lang.Object
org.ametys.cms.transformation.xslt.InlineEditorHelper
This class provides a helper for the in-line editor
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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 Details
-
getStyleValue
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
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
-