| java.lang.Object org.zkoss.zul.impl.Utils
Utils | public class Utils (Code) | | A collection of utilities.
author: tomyeh |
Method Summary | |
final public static String | arrayToString(Object[] ary) Converts an array of objects to a string, by catenating them
together and separated with comma. | public static String | getDynamicMediaURI(AbstractComponent comp, int version, String name, String format) Returns the encoded URL for the dynamic generated content, or empty
the component doesn't belong to any desktop. | final public static String | intsToString(int[] ary) Converts an array of numbers to a string. | final public static String[] | stringToArray(String src, String defaultValue) Parse a list of numbers. | final public static int[] | stringToInts(String numbers, int defaultValue) Parse a list of numbers.
Parameters: defaultValue - the value if a number is omitted. |
arrayToString | final public static String arrayToString(Object[] ary)(Code) | | Converts an array of objects to a string, by catenating them
together and separated with comma.
|
getDynamicMediaURI | public static String getDynamicMediaURI(AbstractComponent comp, int version, String name, String format)(Code) | | Returns the encoded URL for the dynamic generated content, or empty
the component doesn't belong to any desktop.
since: 3.0.2 |
intsToString | final public static String intsToString(int[] ary)(Code) | | Converts an array of numbers to a string.
|
stringToArray | final public static String[] stringToArray(String src, String defaultValue)(Code) | | Parse a list of numbers.
Parameters: defaultValue - the value used if an empty string is fund.For example, ",2" means "1,2" if defafultValue is "1" an array of string, or null if no data at all |
stringToInts | final public static int[] stringToInts(String numbers, int defaultValue) throws WrongValueException(Code) | | Parse a list of numbers.
Parameters: defaultValue - the value if a number is omitted. For example, ",2"means "1,2" if defafultValue is 1 an array of int, or null if no integer at all |
|
|