View Javadoc

1   package org.xrn.gui;
2   
3   import java.awt.Color;
4   import java.awt.FlowLayout;
5   import java.awt.Font;
6   import java.awt.event.ActionEvent;
7   import java.awt.event.ActionListener;
8   
9   import javax.swing.JComponent;
10  import javax.swing.JPanel;
11  import javax.swing.border.TitledBorder;
12  
13  /***
14   * 
15   * Panel to keep the help message panel
16   * @author Carsten Maneg
17   * Date Nov 16, 2004
18   * Time 10:32:36 PM
19   */
20  public class HelpWindow extends JPanel implements ActionListener{
21      private int x0 = 40;
22      private int y0 = 40;
23      private int breite = 900;
24      private int hoehe  = 550;
25      private Font schriftTyp;
26    
27      private HelpPanel helpPanel;
28      private XRNMainWindow spsToolF;
29    
30      private String db_name;
31      private String dbms_name;
32  
33      /***
34       * 
35       * @param mainWindow
36       * @param helptopic
37       */
38      public HelpWindow( XRNMainWindow mainWindow, String helptopic ){
39          super( new FlowLayout( FlowLayout.LEFT ) );
40          setBorder( new TitledBorder( " XMLReleaseNotes Help " ) );
41          schriftTyp =  new Font( "Dialog", Font.BOLD, 14 );
42          setFont( schriftTyp );
43          setLayout( null );
44      
45          helpPanel = new HelpPanel( this, helptopic );
46          dlgObjHinzufuegen( helpPanel, 25, 25, 700, 525 );
47      }
48      
49      /***
50       * 
51       * @return
52       */
53      public XRNMainWindow getDBToolF(){
54          return spsToolF;
55      }
56      
57      /***
58       * Add the component to the panel
59       * @param c
60       * @param x0
61       * @param y0
62       * @param breite
63       * @param hoehe
64       */
65      public void dlgObjHinzufuegen( JComponent c, int x0, int y0, int breite, int hoehe ){
66          c.setBounds( x0, y0, breite, hoehe );
67          c.setForeground( Color.black );
68          //getContentPane( ).add( c );		// für JDialog
69          add( c );		// für JPanel
70      }
71      
72      public void actionPerformed( ActionEvent e ){
73      }
74      
75      public void resetInputFields( ){
76          helpPanel.resetInputFields();
77      }  
78  }