|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.coderight.jazz.util.JazzUtil
public final class JazzUtil
Provides various helper methods.
Nested Class Summary | |
---|---|
static class |
JazzUtil.FocusBorder
|
static class |
JazzUtil.Mnemonic
Class that represents a mnemonic. |
static class |
JazzUtil.OperatingSystem
Enumeration of possible operating systems. |
Constructor Summary | |
---|---|
JazzUtil()
|
Method Summary | |
---|---|
static KeyStroke |
createAccelerator(String shortcut)
Returns a KeyStroke from the given shortcut. |
static JazzUtil.Mnemonic |
createMnemonic(String text)
Used by the framework to create a mnemonic from text. |
static Proxy |
detectProxyServer()
Automatically detect proxy server. |
static JazzUtil.OperatingSystem |
getOperatingSystem()
Returns the operating system currently running on. |
static Proxy |
getProxyServer()
Returns the current proxy server. |
static Object |
getResource(String name)
Returns a resource as Object . |
static Icon |
getResourceAsIcon(String name)
Returns a resource as Icon . |
static Image |
getResourceAsImage(String name)
Returns a resource as Image . |
static Dimension |
getScreenSize()
Returns the size of the screen. |
static String |
getSystemInfo()
Returns system info: Jazz version, license, Java version, OS, processor(s), memory. |
static String |
MD5Hash(String string)
Returns a MD5 hash. |
static void |
playSound(String name)
Play a sound. |
static void |
setProxyServer(String host,
String port)
Manually sets a proxy server. |
static void |
setProxyServer(String host,
String port,
String userName,
char[] password)
Manually sets a proxy server. |
static String |
translate(String key)
Translates an i18n key. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JazzUtil()
Method Detail |
---|
public static JazzUtil.OperatingSystem getOperatingSystem()
public static String getSystemInfo()
public static Proxy detectProxyServer()
public static Proxy getProxyServer()
public static void setProxyServer(String host, String port)
public static void setProxyServer(String host, String port, String userName, char[] password)
public static String translate(String key)
key
- i18n key
ResourceManager.translate(String)
public static Object getResource(String name)
Object
.
ResourceManager.getResource(String)
public static Icon getResourceAsIcon(String name)
Icon
.
ResourceManager.getResourceAsIcon(String)
public static Image getResourceAsImage(String name)
Image
.
ResourceManager.getResourceAsImage(String)
public static Dimension getScreenSize()
Toolkit.getScreenSize()
public static void playSound(String name)
AudioSystem
public static String MD5Hash(String string)
public static KeyStroke createAccelerator(String shortcut)
KeyStroke
from the given shortcut.
public static JazzUtil.Mnemonic createMnemonic(String text)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |