|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.zul.impl.Utils
public class Utils
A collection of utilities.
| Constructor Summary | |
|---|---|
Utils()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
arrayToString(java.lang.Object[] ary)
Converts an array of objects to a string, by catenating them together and separated with comma. |
static java.lang.String |
getDynamicMediaURI(AbstractComponent comp,
int version,
java.lang.String name,
java.lang.String format)
Returns the encoded URL for the dynamic generated content, or empty the component doesn't belong to any desktop. |
static java.lang.String |
intsToString(int[] ary)
Converts an array of numbers to a string. |
static java.lang.String[] |
stringToArray(java.lang.String src,
java.lang.String defaultValue)
Parse a list of numbers. |
static int[] |
stringToInts(java.lang.String numbers,
int defaultValue)
Parse a list of numbers. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Utils()
| Method Detail |
|---|
public static final int[] stringToInts(java.lang.String numbers,
int defaultValue)
throws WrongValueException
defaultValue - the value if a number is omitted. For example, ",2"
means "1,2" if defafultValue is 1
WrongValueExceptionpublic static final java.lang.String intsToString(int[] ary)
public static final java.lang.String[] stringToArray(java.lang.String src,
java.lang.String defaultValue)
defaultValue - the value used if an empty string is fund.
For example, ",2" means "1,2" if defafultValue is "1"
public static final java.lang.String arrayToString(java.lang.Object[] ary)
public static java.lang.String getDynamicMediaURI(AbstractComponent comp,
int version,
java.lang.String name,
java.lang.String format)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||