KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > j2ee > sun > share > config > ui > ComponentPanel


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * When distributing Covered Code, include this CDDL Header Notice in each file
10  * and include the License file at http://www.netbeans.org/cddl.txt.
11  * If applicable, add the following below the CDDL Header, with the fields
12  * enclosed by brackets [] replaced by your own identifying information:
13  * "Portions Copyrighted [year] [name of copyright owner]"
14  *
15  * The Original Software is NetBeans. The Initial Developer of the Original
16  * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19 package org.netbeans.modules.j2ee.sun.share.config.ui;
20
21 import java.io.*;
22 import java.util.*;
23 import java.awt.*;
24 import java.beans.*;
25 import java.text.MessageFormat JavaDoc;
26 import javax.swing.border.LineBorder JavaDoc;
27 import javax.swing.event.ChangeListener JavaDoc;
28 import javax.swing.event.ListSelectionEvent JavaDoc;
29 import javax.swing.event.ListSelectionListener JavaDoc;
30 import javax.swing.*;
31 import javax.swing.table.TableColumn JavaDoc;
32 import javax.swing.undo.CannotRedoException JavaDoc;
33 import javax.swing.undo.CannotUndoException JavaDoc;
34
35 import org.openide.*;
36 import org.openide.nodes.*;
37 import org.openide.explorer.*;
38 import org.openide.explorer.propertysheet.*;
39 import org.openide.explorer.view.BeanTreeView;
40 import org.openide.windows.*;
41 import org.openide.util.HelpCtx;
42 import org.openide.util.SharedClassObject;
43 import org.openide.util.Utilities;
44
45
46 /**
47  * The ComponentPanel three pane editor. This is basically a container that implements the ExplorerManager
48  * interface. It coordinates the selection of a node in the structure pane and the display of a panel by the a PanelView
49  * in the content pane and the nodes properties in the properties pane. It will populate the tree view in the structure pane
50  * from the root node of the supplied PanelView.
51  *
52  **/

53
54 public class ComponentPanel extends PaneledDesignEditor {
55     protected ComponentPanel(){
56     }
57     /**
58      * Creates a new instance of ComponentPanel
59      * @param panel The PanelView which will provide the node tree for the structure view
60      * and the set of panels the nodes map to.
61      */

62     public ComponentPanel(PanelView panel){
63         super(panel);
64     }
65     
66     /**
67      * Creates a new instance of ComponentPanel
68      * @param panel The PanelView which will provide the node tree for the structure view
69      * and the set of panels the nodes map to.
70      * @param orientation Determines if the content pane is on the left or the right.
71      */

72     public ComponentPanel(PanelView panel, int orientation){
73         super(panel,orientation);
74  
75     }
76     /**
77      * Creates a new instance of ComponentPanel
78      * @param panel The PanelView which will provide the node tree for the structure view
79      * and the set of panels the nodes map to.
80      * @param structure The JComponent that will be used in the structure pane. Should follow the
81      * ExplorerManager protocol. Will usually be some subclass of BeanTreeView.
82      */

83     
84     public ComponentPanel(PanelView panel, JComponent structure){
85         super(panel,structure);
86     }
87     /**
88      * Creates a new instance of ComponentPanel
89      * @param panel The PanelView which will provide the node tree for the structure view
90      * and the set of panels the nodes map to.
91      * @param structure The JComponent that will be used in the structure pane. Should follow the
92      * ExplorerManager protocol. Will usually be some subclass of BeanTreeView.
93      * @param orientation Determines if the content pane is on the left or the right.
94      */

95     
96     public ComponentPanel(PanelView panel, JComponent structure, int orientation){
97         super(panel,structure,orientation);
98  
99     }
100         
101 }
102
Popular Tags