Back to index

wims  3.65+svn20090927
Public Member Functions | Static Public Attributes | Package Attributes
rene.zirkel.help.Help Class Reference
Inheritance diagram for rene.zirkel.help.Help:
Inheritance graph
[legend]
Collaboration diagram for rene.zirkel.help.Help:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Help (String subject)
void actionPerformed (ActionEvent e)

Static Public Attributes

static String CodePage = ""

Package Attributes

Viewer V
Button Close

Detailed Description

Definition at line 11 of file Help.java.


Constructor & Destructor Documentation

rene.zirkel.help.Help.Help ( String  subject) [inline]

Definition at line 16 of file Help.java.

       {      super(Zirkel.name("help.title","Help"));
              V=new Viewer();
              if (Global.Background!=null) V.setBackground(Global.Background);
              V.setFont(Global.FixedFont);
              V.setTabWidth(4);
              String lang=Global.name("language","");
              while (true)
              {      try
                     {      BufferedReader in;
                            try
                            {      if (CodePage.equals(""))
                                          in=new BufferedReader(new InputStreamReader(
                                          getClass().getResourceAsStream("/rene/zirkel/docs/"+lang+subject),CodePage));
                                   else 
                                          in=new BufferedReader(new InputStreamReader(
                                          getClass().getResourceAsStream("/rene/zirkel/docs/"+lang+subject),CodePage));
                            }
                            catch (Exception e)
                            {      in=new BufferedReader(new InputStreamReader(
                                          getClass().getResourceAsStream("/rene/zirkel/docs/"+lang+subject)));
                            }
                            while (true)
                            {      String s=in.readLine();
                                   if (s==null) break;
                                   V.appendLine(s);
                            }
                            in.close();
                     }
                     catch (Exception e)
                     {      if (!lang.equals(""))
                            {      lang=""; continue;
                            }
                            else
                            {      V.setText(
                                          Zirkel.name("help.error","Could not find the help file!"));
                            }
                     }
                     break;
              }
              V.doUpdate(false);
              
              setLayout(new BorderLayout());
              setSize(600,600);
              setLocation(120,70);
              add("Center",V);
              Panel p=new MyPanel();
              p.add(Close=new Button(Zirkel.name("close","Close")));
              Close.addActionListener(this);
              add("South",p);
              setPosition("help");
              seticon("rene/zirkel/icon.png");
              setVisible(true);
       }

Here is the call graph for this function:


Member Function Documentation

void rene.zirkel.help.Help.actionPerformed ( ActionEvent  e) [inline]

Definition at line 70 of file Help.java.

       {      if (e.getSource()==Close)
              {      notePosition("help");
                     setVisible(false); dispose();
              }
       }

Member Data Documentation

Button rene.zirkel.help.Help.Close [package]

Definition at line 13 of file Help.java.

String rene.zirkel.help.Help.CodePage = "" [static]

Definition at line 14 of file Help.java.

Viewer rene.zirkel.help.Help.V [package]

Definition at line 12 of file Help.java.


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