| java.lang.Object org.netbeans.modules.visualweb.propertyeditors.util.Bundle
Constructor Summary | |
protected | Bundle() |
Method Summary | |
public static Bundle | getBundle(Class c) | public static Bundle | getBundle(Class c, String suffix) Return the component bundle found in class c's package.
The name of the bundle file is Bundle.properties. | public String | getMessage(String key) | public String | getMessage(String key, Object arg1) | public String | getMessage(String key, Object arg1, Object arg2) | public String | getMessage(String key, Object arg1, Object arg2, Object arg3) | public String | getMessage(String key, Object[] args) | public String | getMessage(String key, Object[] args, boolean escapeSingleQuotes) | public void | init(String baseName, ClassLoader classLoader) If a class loader is not passed in, I will only be able to fetch ResourceBundles that
are reachable from MY class loader. |
Bundle | protected Bundle()(Code) | | |
getBundle | public static Bundle getBundle(Class c, String suffix)(Code) | | Return the component bundle found in class c's package.
The name of the bundle file is Bundle.properties. If suffix
is not null and not empty, then the bundle file will be
Bundle-<suffix>.properties.
Parameters: c - caller's class Parameters: suffix - the resoruce bundle |
init | public void init(String baseName, ClassLoader classLoader)(Code) | | If a class loader is not passed in, I will only be able to fetch ResourceBundles that
are reachable from MY class loader. This is due to a bug in ResourceBundle that
goes up the stack only 2 levels in order to find the appropriate class loader.
Since I provide a level of indirection, I will ALWAYS be the callee, and therefore
at the 2nd level.
See source for ResourceBundle.getBundle() ResourceBundle.getLoader().
Parameters: baseName - |
|
|