|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.aduna.gee.publication.ui.WLabel
public class WLabel
| Field Summary | |
|---|---|
protected static String[] |
_htmlSpecialDsts
|
protected static String[] |
_htmlSpecialSrcs
|
protected static String[] |
_urlSpecialDsts
|
protected static String[] |
_urlSpecialSrcs
|
| Constructor Summary | |
|---|---|
WLabel()
|
|
| Method Summary | |
|---|---|
static String |
beautifyLabel(String label,
boolean upper,
boolean colon)
Beautify label. |
static String |
gsub(String olds,
String news,
String text)
Substitute String "old" by String "new" in String "text" everywhere. |
static String |
htmlProtect(int number)
|
static String |
htmlProtect(String text)
Turn a String in an HTML save string. |
static String |
jsArgument(int arg)
Make the text an integer argument for a JavaScript function, including single quotes. |
static String |
jsArgument(String text)
Make the text an argument for a JavaScript function, including single quotes. |
static String |
jsArgumentProtect(String text)
Encode special characters in an argument of a JavaScript function. |
static void |
sort(List l)
Sort a list of strings according to Spectacle's natural ordening. |
static void |
sortedInsert(Vector v,
String s)
Insert a string in a vector (of strings) and maintain the increasing sorting. |
static String |
specialCharProtect(String text)
Replace HTML special characters by their decimal references. |
static String |
urlDeprotect(String text)
Decode special characters in a URL. |
static String |
urlProtect(String text)
Encode special characters in a URL. |
static String |
zDecode(String text)
JavaScript functions (e.g. |
static String |
zEncode(String text)
The Java variant of the function applied by JavaScript too. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static String[] _urlSpecialSrcs
protected static String[] _urlSpecialDsts
protected static String[] _htmlSpecialSrcs
protected static String[] _htmlSpecialDsts
| Constructor Detail |
|---|
public WLabel()
| Method Detail |
|---|
public static void sort(List l)
public static void sortedInsert(Vector v,
String s)
public static String beautifyLabel(String label,
boolean upper,
boolean colon)
upper - If true, start with upperCase character.colon - If true, end with colon character.public static String urlProtect(String text)
public static String jsArgumentProtect(String text)
public static String jsArgument(String text)
public static String jsArgument(int arg)
public static String urlDeprotect(String text)
public static String zEncode(String text)
public static String zDecode(String text)
public static String specialCharProtect(String text)
public static String htmlProtect(String text)
public static String htmlProtect(int number)
public static String gsub(String olds,
String news,
String text)
olds - The String to be substituted.news - The String is the new content.text - The String in which the substitution is done.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||