01: /*
02: * $RCSfile: ProductStepInstallPanel.java,v $
03: * @modification $Date: 2001/09/28 19:35:30 $
04: * @version $Id: ProductStepInstallPanel.java,v 1.1 2001/09/28 19:35:30 hfalk Exp $
05: *
06: */
07:
08: package com.memoire.vainstall.builder.gui;
09:
10: import com.memoire.vainstall.VAGlobals;
11: import com.memoire.vainstall.builder.*;
12:
13: import java.awt.*;
14: import java.awt.event.*;
15:
16: import javax.swing.*;
17: import javax.swing.border.*;
18:
19: /**
20: * This panel is shown in the product dialog
21: *
22: * This is not just a view panel because it has a reference to the
23: * VAIProductModel.
24: *
25: *
26: * @see com.memoire.vainstall.builder.gui.VAIProductInternalFrame
27: * @see javax.swing.JPanel
28: *
29: * @author Henrik Falk
30: * @version $Id: ProductStepInstallPanel.java,v 1.1 2001/09/28 19:35:30 hfalk Exp $
31: */
32: public class ProductStepInstallPanel extends JPanel {
33:
34: private VAIProductModel model;
35:
36: private final static Border loweredBorder = new SoftBevelBorder(
37: BevelBorder.LOWERED);
38:
39: public ProductStepInstallPanel() {
40:
41: setBorder(loweredBorder);
42:
43: GridBagLayout layout = new GridBagLayout();
44: setLayout(layout);
45:
46: GridBagConstraints contraint = new GridBagConstraints();
47:
48: // Description
49: JLabel decriptionLabel = new JLabel();
50: decriptionLabel.setBorder(BorderFactory
51: .createTitledBorder("Description"));
52: decriptionLabel.setText("This step installs the product.");
53: contraint.fill = GridBagConstraints.BOTH;
54: contraint.insets = new Insets(16, 16, 0, 16);
55: contraint.anchor = GridBagConstraints.WEST;
56: contraint.gridx = 0;
57: contraint.gridy = 0;
58: contraint.gridwidth = 2;
59: contraint.gridheight = 1;
60: contraint.weightx = 1;
61: contraint.weighty = 0;
62: layout.setConstraints(decriptionLabel, contraint);
63: add(decriptionLabel);
64:
65: JPanel fillPanel = new JPanel();
66: contraint.fill = GridBagConstraints.BOTH;
67: contraint.insets = new Insets(4, 4, 4, 4);
68: contraint.anchor = GridBagConstraints.CENTER;
69: contraint.gridx = 0;
70: contraint.gridy = 2;
71: contraint.gridwidth = 1;
72: contraint.gridheight = 1;
73: contraint.weightx = 0;
74: contraint.weighty = 1;
75: layout.setConstraints(fillPanel, contraint);
76: add(fillPanel);
77:
78: }
79:
80: /**
81: * save
82: */
83: public void save() {
84: }
85:
86: /**
87: * initialize the panel
88: */
89: public void initialize(VAIProductModel model) {
90: this .model = model;
91: }
92:
93: /**
94: * stop
95: */
96: public void stop() {
97: }
98:
99: }
|