Back to index

wims  3.65+svn20090927
Public Member Functions | Public Attributes | Package Attributes
WIMSchem.LaunchApplet Class Reference
Inheritance diagram for WIMSchem.LaunchApplet:
Inheritance graph
[legend]
Collaboration diagram for WIMSchem.LaunchApplet:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void init ()
Properties loadProperties (String l)
void actionPerformed (ActionEvent e)
String getAppletInfo ()

Public Attributes

Properties translation

Package Attributes

JButton openbutton

Detailed Description

Definition at line 20 of file LaunchApplet.java.


Member Function Documentation

void WIMSchem.LaunchApplet.actionPerformed ( ActionEvent  e) [inline]

Definition at line 48 of file LaunchApplet.java.

    {
       if (e.getSource()==openbutton)
       {
           MainWindow mw=new MainWindow(null,false,translation);
           mw.setVisible(true);
           System.out.println("foo");
       }
    }

Definition at line 58 of file LaunchApplet.java.

    {
       return translation.getProperty("WIMSchem_Applet_Description");
    }
void WIMSchem.LaunchApplet.init ( ) [inline]

Definition at line 25 of file LaunchApplet.java.

    {
        System.getProperty("java.version");
       String language = getParameter("language");
       if(language != null){language=language.toLowerCase();}else{language="en";}
       translation=loadProperties(language);
       openbutton=new JButton(translation.getProperty("Open_WIMSchem"));
       add(openbutton);
       openbutton.addActionListener(this);
    }

Here is the call graph for this function:

Properties WIMSchem.LaunchApplet.loadProperties ( String  l) [inline]

Definition at line 36 of file LaunchApplet.java.

                                               {
       Properties P=new Properties();
       try{
           InputStream in = getClass().getResourceAsStream("/lang/WIMSchemProperties_"+l+".properties");
           P.load(in);in.close();
           return P;
       } 
       catch (Exception e){ System.out.println("error reading /lang/WIMSchemProperties_"+l+".properties\n"+e);}         
        return null;                                                                                                               
    }  

Here is the caller graph for this function:


Member Data Documentation

Definition at line 22 of file LaunchApplet.java.

Definition at line 23 of file LaunchApplet.java.


The documentation for this class was generated from the following file: