|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.adventnet.utils.SnmpUtils
Class for the internationalization implementation. The internationalization can be done by writing the .properties file with the equivalent local string. The locale and the bundle name should be set using the method setLocale(Locale) and setBundleName(String). The search path can also be specified using the method setSearchPath(String ). The search path can be either relative or absolute to the properties file but should be upto the directory of the properties file. The properties will be searched as per the locale set.In case of applet, the applet instance should be set first setApplet(Applet) method followed by the other parameter. The search path should be relative to the the document base.
Field Summary | |
static boolean |
INTERNATIONALIZE
the boolean to set whether to internationlize or not. |
static java.util.Locale |
locale
The Locale object which will passed to the Resource Bundle. |
Method Summary | |
static javax.swing.JCheckBoxMenuItem |
createJCheckBoxMenuItem(java.lang.String name,
char mnemonic,
char defaultMnemonicChar)
|
static javax.swing.JMenu |
createJMenu(java.lang.String name,
char mnemonic,
char defaultMnemonicChar)
Create a JMenu after internationalizing the name and the mnemonic by looking up the mnemonic character from the resourcebundle. |
static javax.swing.JMenuItem |
createJMenuItem(java.lang.String name,
char mnemonic,
char defaultMnemonicChar)
Creates a JMenuItem after internationalizing the name and the mnemonic by looking up the mneumonic character from the resource bundle. |
static javax.swing.JRadioButtonMenuItem |
createJRadioButtonMenuItem(java.lang.String name,
char mnemonic,
char defaultMnemonicChar)
|
static java.lang.String |
getString(java.lang.String key)
Returns the equivalent string from the Resource Bundle. |
static boolean |
isBroadCastAddress(java.net.InetAddress broadCastAddress,
java.net.InetAddress netMask)
|
static boolean |
isNetMaskAddress(byte[] adr)
|
static void |
setApplet(java.applet.Applet app)
The applet instance. |
static void |
setBundleName(java.lang.String bundleName)
The bundle name of the resource bundle properties file. |
static void |
setLocale(java.util.Locale loc)
The locale based on which the properties file will be searcded. |
static void |
setSearchPath(java.lang.String path)
The search path for the properties file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static java.util.Locale locale
public static boolean INTERNATIONALIZE
Method Detail |
public static void setApplet(java.applet.Applet app)
public static void setBundleName(java.lang.String bundleName)
public static void setLocale(java.util.Locale loc)
public static void setSearchPath(java.lang.String path)
public static java.lang.String getString(java.lang.String key)
public static boolean isNetMaskAddress(byte[] adr)
public static boolean isBroadCastAddress(java.net.InetAddress broadCastAddress, java.net.InetAddress netMask) throws java.lang.IllegalArgumentException
public static javax.swing.JMenu createJMenu(java.lang.String name, char mnemonic, char defaultMnemonicChar)
name
- name of the JMenumnemonic
- Mnemonic string. This is for internationlizing the mnemonic character.defaultMnemonicChar
- the default character which will be set as the mnemonic if the
internationalized mnemonic character is not present the name.public static javax.swing.JMenuItem createJMenuItem(java.lang.String name, char mnemonic, char defaultMnemonicChar)
name
- name of the JMenuItem.mnemonic
- Mnemonic string. This is for internationalizing the mnemonic character.defaultMnemonicChar
- the default character which will be set as the mnemonic if the
internationalized mnemonic character is not present the name.public static javax.swing.JCheckBoxMenuItem createJCheckBoxMenuItem(java.lang.String name, char mnemonic, char defaultMnemonicChar)
public static javax.swing.JRadioButtonMenuItem createJRadioButtonMenuItem(java.lang.String name, char mnemonic, char defaultMnemonicChar)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |