java.lang.Object
de.agilecoders.wicket.jquery.util.Strings2
helper class to handle string interaction
- Author:
- miha
-
Method Summary
Modifier and TypeMethodDescriptionstatic CharSequenceescapeMarkupId(CharSequence markupId) Returns a markup id that is JQuery-safe and could be used as a selector.static CharSequencegetMarkupId(Component component) Returns a markup id that is JQuery-safe and could be used as a selector.static StringnullToEmpty(String value) ensures a non null value.
-
Method Details
-
nullToEmpty
ensures a non null value.- Parameters:
value- string value to transform to an empty string if it's null- Returns:
- non null value
-
getMarkupId
Returns a markup id that is JQuery-safe and could be used as a selector.- Parameters:
component- the component which markup id should be return- Returns:
- the component's markup id that is escaped so that it could be used as JQuery selector
-
escapeMarkupId
Returns a markup id that is JQuery-safe and could be used as a selector.- Parameters:
markupId- the markup id to escape- Returns:
- the component's markup id that is escaped so that it could be used as JQuery selector
-