de.agilecoders.wicket.jquery.util
Class Strings2

java.lang.Object
  extended by de.agilecoders.wicket.jquery.util.Strings2

public final class Strings2
extends Object

helper class to handle string interaction

Author:
miha

Method Summary
static CharSequence escapeMarkupId(CharSequence markupId)
          Returns a markup id that is JQuery-safe and could be used as a selector.
static CharSequence getMarkupId(org.apache.wicket.Component component)
          Returns a markup id that is JQuery-safe and could be used as a selector.
static String nullToEmpty(String value)
          ensures a non null value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

nullToEmpty

public static String nullToEmpty(String value)
ensures a non null value.

Parameters:
value - string value to transform to an empty string if it's null
Returns:
non null value

getMarkupId

public static CharSequence getMarkupId(org.apache.wicket.Component component)
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

public static CharSequence escapeMarkupId(CharSequence markupId)
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


Copyright © 2017. All Rights Reserved.