public class CssStyles extends Object
| Constructor and Description |
|---|
CssStyles() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
get()
Returns an immutable map of existing styles.
|
String |
get(String style)
Returns the value associated with a style.
|
boolean |
isEmpty()
Returns true if no styles are present.
|
void |
parse(String value,
boolean clear)
Parse style settings.
|
String |
put(String style,
String value)
Adds a style and associated value.
|
String |
remove(String style)
Removes the specified style.
|
String |
toString()
Returns the registered styles in the same format as the style attribute in HTML.
|
public void parse(String value, boolean clear)
value - Style settings to parse. Follows same format as style attribute in HTML:
multiple settings are separated by ";" with style name and value separated by ":".clear - If true, first remove any existing styles.public Map<String,String> get()
public String get(String style)
style - Style whose value is sought.public String put(String style, String value)
style - The style name.value - The new value.public String remove(String style)
style - The style name.public boolean isEmpty()
Copyright © 2018 Regenstrief Center for Biomedical Informatics. All rights reserved.