FileDocCategorySizeDatePackage
UserInterfaceFactory.javaAPI DocAzureus 3.0.3.41722Thu Feb 09 19:42:48 GMT 2006org.gudy.azureus2.ui.common

UserInterfaceFactory

public class UserInterfaceFactory extends Object
author
Tobias Minich

Fields Summary
Constructors Summary
Methods Summary
public static IUserInterfacegetUI(java.lang.String ui)
Creates a new instance of UserInterfaceFactory

    IUserInterface cui = null;
    String uiclass = "org.gudy.azureus2.ui."+ui+".UI";
    try {
      cui = (IUserInterface) Class.forName(uiclass).newInstance();
    } catch (ClassNotFoundException e) {
      throw new Error("Could not find class: "+uiclass);
    } catch (InstantiationException e) {
      throw new Error("Could not instantiate User Interface: "+ uiclass);
    } catch (IllegalAccessException e) {
      throw new Error("Could not access User Interface: "+ uiclass);
    }
    return cui;