View Javadoc

1   // %3876182235:hoplugins.teamAnalyzer.ui%
2   package hoplugins.teamAnalyzer.ui;
3   
4   import hoplugins.Commons;
5   
6   import hoplugins.commons.utils.PluginProperty;
7   
8   import hoplugins.teamAnalyzer.vo.TeamLineup;
9   
10  import java.awt.BorderLayout;
11  
12  import javax.swing.JPanel;
13  import javax.swing.JTabbedPane;
14  
15  
16  /***
17   * TODO Missing Class Documentation
18   *
19   * @author TODO Author Name
20   */
21  public class MainPanel extends JPanel {
22      //~ Instance fields ----------------------------------------------------------------------------
23  
24      private RosterPanel rosterPanel = new RosterPanel();
25      private TeamPanel teamPanel = new TeamPanel();
26  
27      //~ Constructors -------------------------------------------------------------------------------
28  
29      /***
30       * Creates a new TeamPanel object.
31       */
32      public MainPanel() {
33          jbInit();
34      }
35  
36      //~ Methods ------------------------------------------------------------------------------------
37  
38      /***
39       * TODO Missing Method Documentation
40       *
41       * @return TODO Missing Return Method Documentation
42       */
43      public TeamLineupData getMyTeamLineupPanel() {
44          return teamPanel.getMyTeamLineupPanel();
45      }
46  
47      /***
48       * TODO Missing Method Documentation
49       *
50       * @return TODO Missing Return Method Documentation
51       */
52      public TeamLineupData getOpponentTeamLineupPanel() {
53          return teamPanel.getOpponentTeamLineupPanel();
54      }
55  
56      /***
57       * TODO Missing Method Documentation
58       *
59       * @return TODO Missing Return Method Documentation
60       */
61      public RosterPanel getRosterPanel() {
62          return rosterPanel;
63      }
64  
65      /***
66       * TODO Missing Method Documentation
67       */
68      public void jbInit() {
69          JTabbedPane pane = new JTabbedPane();
70  
71          pane.setOpaque(false);
72          setOpaque(false);
73          setLayout(new BorderLayout());
74          pane.add(Commons.getModel().getResource().getProperty("Aufstellung"), teamPanel);
75          pane.add(PluginProperty.getString("Players"), rosterPanel);
76          add(pane, BorderLayout.CENTER);
77      }
78  
79      /***
80       * TODO Missing Method Documentation
81       *
82       * @param lineup TODO Missing Method Parameter Documentation
83       * @param week TODO Missing Constructuor Parameter Documentation
84       * @param season TODO Missing Constructuor Parameter Documentation
85       */
86      public void reload(TeamLineup lineup, int week, int season) {
87          rosterPanel.reload();
88          teamPanel.reload(lineup, week, season);
89      }
90  }