public class Utils extends Object
| Modifier and Type | Field | Description |
|---|---|---|
protected static Utils |
instance |
Singleton.
|
protected Map<String,String> |
lafMap |
Maps the LAF names.
|
static String[] |
UI_IDS |
IDs of all UI delegates.
|
| Modifier and Type | Method | Description |
|---|---|---|
static String |
getMethodDesc(Method method) |
Returns JNI-compliant description of the specified method.
|
static String |
getTypeDesc(Class<?> clazz) |
Returns JNI-compliant description of the specified class (type).
|
String |
getUIDelegate(String uiKey,
Class<?> origLafClazz) |
Returns fully-qualified class name for the UI delegate based on the
specified parameters.
|
String |
getUIDelegate(String uiKey,
String lafClassName) |
Returns fully-qualified class name for the UI delegate based on the
specified parameters.
|
static Utils |
getUtils() |
Returns instance.
|
static void |
main(String[] args) |
Test app.
|
protected static Utils instance
public static final String[] UI_IDS
public static Utils getUtils()
public String getUIDelegate(String uiKey, String lafClassName)
uiKey - UI key.lafClassName - Class name of the LAF.MetalLookAndFeel, the metal delegate classname is
returned if exists; otherwise the basic delegate classname is
returned.public String getUIDelegate(String uiKey, Class<?> origLafClazz)
uiKey - UI key.origLafClazz - LAF class.MetalLookAndFeel, the metal delegate classname is
returned if exists; otherwise the basic delegate classname is
returned.public static String getTypeDesc(Class<?> clazz)
JButton[] this function will return
[Ljavax/swing/JButton;.clazz - Class.public static String getMethodDesc(Method method)
void installUI(JButton button) this function will
return (Ljavax/swing/JButton;)V.method - Method.public static void main(String[] args)
args -