KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > openccm > explorer > CosTrading > gui > ItfGUI


1 /*===========================================================================
2
3 OpenCCM: The Open CORBA Component Model Platform
4 Copyright (C) 2000-2004 INRIA - USTL - LIFL - GOAL
5 Contact: openccm@objectweb.org
6
7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Lesser General Public
9 License as published by the Free Software Foundation; either
10 version 2.1 of the License, or any later version.
11
12 This library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Lesser General Public License for more details.
16
17 You should have received a copy of the GNU Lesser General Public
18 License along with this library; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
20 USA
21
22 Initial developer(s): Sylvain Leblanc.
23 Contributor(s): ______________________________________.
24
25 ===========================================================================*/

26
27 package org.objectweb.openccm.explorer.CosTrading.gui;
28
29 import javax.swing.JLabel JavaDoc;
30 import javax.swing.BoxLayout JavaDoc;
31 import java.awt.Dimension JavaDoc;
32 import java.awt.Color JavaDoc;
33 import javax.swing.Box JavaDoc;
34
35 /**
36  * A Box used to display an OMG IDL Interface.
37  *
38  * @author <a HREF="mailto:Sylvain.Leblanc@lifl.fr">Sylvain Leblanc</a>
39  * @version 0.1
40  *
41  */

42 public class ItfGUI
43      extends Box JavaDoc
44 {
45
46     // ==================================================================
47
//
48
// Internal state.
49
//
50
// ==================================================================
51

52     /** The OMG IDL interface name. */
53     protected String JavaDoc itf_;
54
55     // ==================================================================
56
//
57
// Constructors.
58
//
59
// ==================================================================
60

61     /**
62      * Default contructor.
63      *
64      * @param itf The OMG IDL interface name.
65      */

66     public ItfGUI(String JavaDoc itf) {
67         super(BoxLayout.X_AXIS);
68         setBackground(Color.white);
69
70         itf_ = itf;
71
72         add(Box.createHorizontalGlue());
73
74         JLabel JavaDoc label = new JLabel JavaDoc(itf_);
75         label.setPreferredSize(new Dimension JavaDoc(350, 20));
76         add(label);
77
78         add(Box.createHorizontalGlue());
79     }
80
81     // ==================================================================
82
//
83
// Internal methods.
84
//
85
// ==================================================================
86

87     // ==================================================================
88
//
89
// Public methods.
90
//
91
// ==================================================================
92

93 }
94
95
96
97
98
99
100
101
Popular Tags