Coverage details for base.jdbs.ui.JDBSMainPanel

LineHitsSource
1 /**
2  *
3  */
4 package base.jdbs.ui;
5  
6 import java.awt.BorderLayout;
7  
8 import javax.swing.JPanel;
9 import javax.swing.JSplitPane;
10  
11 import base.jdbs.ui.panel.JDBSTabbedPanel;
12 import base.jdbs.ui.panel.PeerPanel;
13  
14 /**
15  * @author skunk
16  *
17  */
18 @SuppressWarnings("serial")
19 public class JDBSMainPanel extends JPanel{
20  
21     private JSplitPane splitPanel;
22     private JPanel westContentPanel;
23     private JPanel eastContentPanel;
24     
250    public JDBSMainPanel(){
260        initialize();
270    }
28     
29     protected void initialize(){
300        this.setLayout(new BorderLayout());
310        this.add(this.getSplitPanel(),BorderLayout.CENTER);
320    }
33     
34     /**
35      * @return the westContentPanel
36      */
37     protected JPanel getWestContentPanel() {
380        if(this.westContentPanel == null){
390            this.westContentPanel = new JPanel();
40             //this.westContentPanel.setBorder(new TitledBorder("West Panel"));
410            this.westContentPanel.setLayout(new BorderLayout());
420            this.westContentPanel.add(new PeerPanel(),BorderLayout.CENTER);
43         }
440        return westContentPanel;
45     }
46  
47     /**
48      * @return the eastContentPanel
49      */
50     protected JPanel getEastContentPanel() {
510        if(this.eastContentPanel == null){
520            this.eastContentPanel = new JPanel();
53             //this.eastContentPanel.setBorder(new TitledBorder("East Panel"));
540            this.eastContentPanel.setLayout(new BorderLayout());
550            this.eastContentPanel.add(new JDBSTabbedPanel(),BorderLayout.CENTER);
56             
57         }
580        return eastContentPanel;
59     }
60  
61     /**
62      * @return the splitPanel
63      */
64     protected JSplitPane getSplitPanel() {
650        if(this.splitPanel == null){
660            this.splitPanel = new JSplitPane();
670            this.splitPanel.setDividerLocation(300);
680            this.splitPanel.setLeftComponent(this.getWestContentPanel());
690            this.splitPanel.setRightComponent(this.getEastContentPanel());
70         }
710        return splitPanel;
72     }
73 }

this report was generated by version 1.0.5 of jcoverage.
visit www.jcoverage.com for updates.

copyright © 2003, jcoverage ltd. all rights reserved.
Java is a trademark of Sun Microsystems, Inc. in the United States and other countries.