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


Constructor Index

 o JMFUtil()

Method Index

 o convertString(String)
 o copyShortenStringArray(String[], String[], int, int)
 o copyStringArray(String[], String[])
 o doGridbagLayout2(Component[], int)
 o getBIString(String)
getBIString(): returns the requested String from the BeanInfoResources
 o getLang()
getLang(): returns the lang of this locale
 o getLocale(String)
getLocale(): returns the locale of the current system
 o getString(String)
getString(): gets a string from the Resource bundle JMFConst
 o parseArrayIntoString(String[])
 o parseStringIntoArray(String)
 o setBIResourceBundle(Locale)
setBIResourceBundle(): set the BeanInfoResources Bundle
 o setCenterLocation(Frame, Frame, int, int)
 o setResourceBundle(Locale)
setResourceBundle(): rets the resource bundle for this bean

Constructors

 o JMFUtil
 public JMFUtil()

Methods

 o 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
 o getLang
 public static String getLang()
getLang(): returns the lang of this locale

Returns:
String language of this locale
 o setResourceBundle
 public static void setResourceBundle(Locale l)
setResourceBundle(): rets the resource bundle for this bean

Parameters:
Locale - : locale that this bean is running on
 o 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
 o setBIResourceBundle
 public static void setBIResourceBundle(Locale l)
setBIResourceBundle(): set the BeanInfoResources Bundle

Parameters:
Locale - : the locale that the bean info is running on
 o 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
 o doGridbagLayout2
 public static Panel doGridbagLayout2(Component comp[],
                                      int column)
 o setCenterLocation
 public static void setCenterLocation(Frame self,
                                      Frame parent,
                                      int width,
                                      int height)
 o copyStringArray
 public static void copyStringArray(String oldArray[],
                                    String newArray[])
 o copyShortenStringArray
 public static void copyShortenStringArray(String oldArray[],
                                           String newArray[],
                                           int index,
                                           int size)
 o parseArrayIntoString
 public static String parseArrayIntoString(String value[])
 o parseStringIntoArray
 public static String[] parseStringIntoArray(String value)
 o convertString
 public static String convertString(String s)

All Packages  Class Hierarchy  This Package  Previous  Next  Index