All Packages Class Hierarchy This Package Previous Next Index
Class com.ibm.jmf.MultiPlayer.JMFUtil
java.lang.Object
|
+----com.ibm.jmf.MultiPlayer.JMFUtil
- public class JMFUtil
- extends Object
This is a utility class that stores generic methods, i.e.
getString, getBIString for the resource bundles
-
JMFUtil()
-
-
convertString(String)
-
-
copyShortenStringArray(String[], String[], int, int)
-
-
copyStringArray(String[], String[])
-
-
doGridbagLayout2(Component[], int)
-
-
getBIString(String)
- getBIString():
returns the requested String from the BeanInfoResources
-
getLang()
- getLang():
returns the lang of this locale
-
getLocale(String)
-
getLocale():
returns the locale of the current system
-
getString(String)
- getString():
gets a string from the Resource bundle JMFConst
-
parseArrayIntoString(String[])
-
-
parseStringIntoArray(String)
-
-
setBIResourceBundle(Locale)
- setBIResourceBundle():
set the BeanInfoResources Bundle
-
setCenterLocation(Frame, Frame, int, int)
-
-
setResourceBundle(Locale)
- setResourceBundle():
rets the resource bundle for this bean
JMFUtil
public JMFUtil()
getString
public static String getString(String key)
- getString():
gets a string from the Resource bundle JMFConst
- Parameters:
- String - : key to the string needed
- Returns:
- String : the requested string
getLang
public static String getLang()
- getLang():
returns the lang of this locale
- Returns:
- String language of this locale
setResourceBundle
public static void setResourceBundle(Locale l)
- setResourceBundle():
rets the resource bundle for this bean
- Parameters:
- Locale - : locale that this bean is running on
getBIString
public static String getBIString(String key)
- getBIString():
returns the requested String from the BeanInfoResources
- Parameters:
- String - : key for the requested String
- Returns:
- String : requested String
setBIResourceBundle
public static void setBIResourceBundle(Locale l)
- setBIResourceBundle():
set the BeanInfoResources Bundle
- Parameters:
- Locale - : the locale that the bean info is running on
getLocale
public static Locale getLocale(String l)
- getLocale():
returns the locale of the current system
- Parameters:
- String - : the locale that should be
- Returns:
- String: the locale
doGridbagLayout2
public static Panel doGridbagLayout2(Component comp[],
int column)
setCenterLocation
public static void setCenterLocation(Frame self,
Frame parent,
int width,
int height)
copyStringArray
public static void copyStringArray(String oldArray[],
String newArray[])
copyShortenStringArray
public static void copyShortenStringArray(String oldArray[],
String newArray[],
int index,
int size)
parseArrayIntoString
public static String parseArrayIntoString(String value[])
parseStringIntoArray
public static String[] parseStringIntoArray(String value)
convertString
public static String convertString(String s)
All Packages Class Hierarchy This Package Previous Next Index