public final class InlineEditorHelper extends Object
Modifier | Constructor and Description |
---|---|
private |
InlineEditorHelper() |
Modifier and Type | Method and Description |
---|---|
static String |
getStyleValue(String style,
String parameter)
Retrieves the value of a CSS property in the given HTML element style attribute
|
static String |
getStyleValue(String style,
String parameter,
String defaultValue)
Retrieves the value of a CSS property in the given HTML element style attribute
|
private InlineEditorHelper()
public static String getStyleValue(String style, String parameter)
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", ...)public static String getStyleValue(String style, String parameter, String defaultValue)
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