svn-gvsig-desktop / tags / v1_0_2_Build_900 / libraries / libCorePlugin / src / com / iver / core / mdiManager / ComplexDesktopPane.java @ 10562
History | View | Annotate | Download (2.77 KB)
1 | 1701 | fernando | /*
|
---|---|---|---|
2 | * Created on 10-mar-2005
|
||
3 | *
|
||
4 | * gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
|
||
5 | *
|
||
6 | * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
|
||
7 | *
|
||
8 | * This program is free software; you can redistribute it and/or
|
||
9 | * modify it under the terms of the GNU General Public License
|
||
10 | * as published by the Free Software Foundation; either version 2
|
||
11 | * of the License, or (at your option) any later version.
|
||
12 | *
|
||
13 | * This program is distributed in the hope that it will be useful,
|
||
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
16 | * GNU General Public License for more details.
|
||
17 | *
|
||
18 | * You should have received a copy of the GNU General Public License
|
||
19 | * along with this program; if not, write to the Free Software
|
||
20 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
|
||
21 | USA.
|
||
22 | *
|
||
23 | * For more information, contact:
|
||
24 | *
|
||
25 | * Generalitat Valenciana
|
||
26 | * Conselleria d'Infraestructures i Transport
|
||
27 | * Av. Blasco Ib??ez, 50
|
||
28 | * 46010 VALENCIA
|
||
29 | * SPAIN
|
||
30 | *
|
||
31 | * +34 963862235
|
||
32 | * gvsig@gva.es
|
||
33 | * www.gvsig.gva.es
|
||
34 | *
|
||
35 | * or
|
||
36 | *
|
||
37 | * IVER T.I. S.A
|
||
38 | * Salamanca 50
|
||
39 | * 46005 Valencia
|
||
40 | * Spain
|
||
41 | *
|
||
42 | * +34 963163400
|
||
43 | * dac@iver.es
|
||
44 | */
|
||
45 | package com.iver.core.mdiManager; |
||
46 | |||
47 | import javax.swing.JPanel; |
||
48 | |||
49 | |||
50 | import javax.swing.JSplitPane; |
||
51 | import java.awt.BorderLayout; |
||
52 | import javax.swing.JDesktopPane; |
||
53 | import com.iver.utiles.console.JConsole; |
||
54 | public class ComplexDesktopPane extends JPanel { |
||
55 | |||
56 | private JSplitPane jSplitPane = null; |
||
57 | private JDesktopPane jDesktopPane = null; |
||
58 | private JConsole jConsole = null; |
||
59 | /**
|
||
60 | * This is the default constructor
|
||
61 | */
|
||
62 | public ComplexDesktopPane() {
|
||
63 | super();
|
||
64 | initialize(); |
||
65 | } |
||
66 | /**
|
||
67 | * This method initializes this
|
||
68 | *
|
||
69 | * @return void
|
||
70 | */
|
||
71 | private void initialize() { |
||
72 | this.setLayout(new BorderLayout()); |
||
73 | this.setSize(300,200); |
||
74 | this.add(getJSplitPane(), java.awt.BorderLayout.CENTER);
|
||
75 | } |
||
76 | /**
|
||
77 | * This method initializes jSplitPane
|
||
78 | *
|
||
79 | * @return javax.swing.JSplitPane
|
||
80 | */
|
||
81 | private JSplitPane getJSplitPane() { |
||
82 | if (jSplitPane == null) { |
||
83 | jSplitPane = new JSplitPane(); |
||
84 | jSplitPane.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT); |
||
85 | jSplitPane.setResizeWeight(0.8);
|
||
86 | jSplitPane.setTopComponent(getDesktopPane()); |
||
87 | jSplitPane.setBottomComponent(getJConsole()); |
||
88 | } |
||
89 | return jSplitPane;
|
||
90 | } |
||
91 | /**
|
||
92 | * This method initializes jDesktopPane
|
||
93 | *
|
||
94 | * @return javax.swing.JDesktopPane
|
||
95 | */
|
||
96 | public JDesktopPane getDesktopPane() { |
||
97 | if (jDesktopPane == null) { |
||
98 | jDesktopPane = new JDesktopPane(); |
||
99 | } |
||
100 | return jDesktopPane;
|
||
101 | } |
||
102 | /**
|
||
103 | * This method initializes jConsole
|
||
104 | *
|
||
105 | * @return com.iver.utiles.console.JConsole
|
||
106 | */
|
||
107 | private JConsole getJConsole() {
|
||
108 | if (jConsole == null) { |
||
109 | jConsole = new JConsole();
|
||
110 | } |
||
111 | return jConsole;
|
||
112 | } |
||
113 | } |