com.ibm.xsp.util
Class CustomControlUtils

java.lang.Object
  extended by com.ibm.xsp.util.CustomControlUtils

public class CustomControlUtils
extends java.lang.Object

Some custom controls utilities.


Constructor Summary
CustomControlUtils()
           
 
Method Summary
static char getCharacter(java.lang.Object properties, java.lang.String name, char defaultValue)
          Get a property by name from an object/map, as a character.
static int getInt(java.lang.Object properties, java.lang.String name, int defaultValue)
          Get a property by name from an object/map, as an integer.
static java.lang.Object getProperty(java.lang.Object properties, java.lang.String name, java.lang.Object defaultValue)
          Get a property by name from an object/map.
static java.lang.String getString(java.lang.Object properties, java.lang.String name, java.lang.String defaultValue)
          Get a property by name from an object/map, as a string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomControlUtils

public CustomControlUtils()
Method Detail

getProperty

public static java.lang.Object getProperty(java.lang.Object properties,
                                           java.lang.String name,
                                           java.lang.Object defaultValue)
Get a property by name from an object/map. This handles different cases, whenever the object is a Java map or a JavaScript object.


getString

public static java.lang.String getString(java.lang.Object properties,
                                         java.lang.String name,
                                         java.lang.String defaultValue)
Get a property by name from an object/map, as a string. This handles different cases, whenever the object is a Java map or a JavaScript object.


getCharacter

public static char getCharacter(java.lang.Object properties,
                                java.lang.String name,
                                char defaultValue)
Get a property by name from an object/map, as a character. This handles different cases, whenever the object is a Java map or a JavaScript object.


getInt

public static int getInt(java.lang.Object properties,
                         java.lang.String name,
                         int defaultValue)
Get a property by name from an object/map, as an integer. This handles different cases, whenever the object is a Java map or a JavaScript object.