View Javadoc
1   package net.sourceforge.jsh3modtool.gui.mod;
2   
3   import javax.swing.JSplitPane;
4   
5   import net.sourceforge.jsh3modtool.mod.GameMod;
6   
7   /***
8    * @author redsolo
9    */
10  public class GameModPanel extends JSplitPane
11  {
12      private ModTabPanel modTabPanel = null;
13  
14      private ModSummaryPanel modSummary = null;
15  
16      private GameMod gameMod;
17  
18      /***
19       * This is the default constructor
20       */
21      public GameModPanel(GameMod gamemod)
22      {
23          super();
24          gameMod = gamemod;
25          initialize();
26      }
27  
28      /***
29       * This method initializes this
30       * 
31       * @return void
32       */
33      private void initialize()
34      {
35          this.setTopComponent(getModSummary());
36          this.setBottomComponent(getModTabPanel());
37          this.setResizeWeight(0.5D);
38          this.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT);
39      }
40  
41      /***
42       * This method initializes modInformationPanel
43       * 
44       * @return ModInformationPanel
45       */
46      private ModTabPanel getModTabPanel()
47      {
48          if (modTabPanel == null)
49          {
50              modTabPanel = new ModTabPanel(gameMod);
51          }
52          return modTabPanel;
53      }
54  
55      /***
56       * This method initializes modSummary
57       * 
58       * @return test.ModSummary
59       */
60      private ModSummaryPanel getModSummary()
61      {
62          if (modSummary == null)
63          {
64              modSummary = new ModSummaryPanel(gameMod);
65          }
66          return modSummary;
67      }
68  } //  @jve:decl-index=0:visual-constraint="0,0"