001: /*
002: * $RCSfile: ProductStepEndPanel.java,v $
003: * @modification $Date: 2001/09/28 19:35:30 $
004: * @version $Id: ProductStepEndPanel.java,v 1.1 2001/09/28 19:35:30 hfalk Exp $
005: *
006: */
007:
008: package com.memoire.vainstall.builder.gui;
009:
010: import com.memoire.vainstall.VAGlobals;
011: import com.memoire.vainstall.builder.*;
012:
013: import java.awt.*;
014: import java.awt.event.*;
015:
016: import javax.swing.*;
017: import javax.swing.border.*;
018:
019: /**
020: * This panel is shown in the product dialog
021: *
022: * This is not just a view panel because it has a reference to the
023: * VAIProductModel.
024: *
025: *
026: * @see com.memoire.vainstall.builder.gui.VAIProductInternalFrame
027: * @see javax.swing.JPanel
028: *
029: * @author Henrik Falk
030: * @version $Id: ProductStepEndPanel.java,v 1.1 2001/09/28 19:35:30 hfalk Exp $
031: */
032: public class ProductStepEndPanel extends JPanel {
033:
034: private VAIProductModel model;
035:
036: private final static Border loweredBorder = new SoftBevelBorder(
037: BevelBorder.LOWERED);
038:
039: public ProductStepEndPanel() {
040:
041: setBorder(loweredBorder);
042:
043: GridBagLayout layout = new GridBagLayout();
044: setLayout(layout);
045:
046: GridBagConstraints contraint = new GridBagConstraints();
047:
048: // Description
049: JLabel decriptionLabel = new JLabel();
050: decriptionLabel.setBorder(BorderFactory
051: .createTitledBorder("Description"));
052: decriptionLabel.setText("This is the End panel.");
053: contraint.fill = GridBagConstraints.BOTH;
054: contraint.insets = new Insets(16, 16, 0, 16);
055: contraint.anchor = GridBagConstraints.WEST;
056: contraint.gridx = 0;
057: contraint.gridy = 0;
058: contraint.gridwidth = 2;
059: contraint.gridheight = 1;
060: contraint.weightx = 1;
061: contraint.weighty = 0;
062: layout.setConstraints(decriptionLabel, contraint);
063: add(decriptionLabel);
064:
065: JPanel fillPanel = new JPanel();
066: contraint.fill = GridBagConstraints.BOTH;
067: contraint.insets = new Insets(4, 4, 4, 4);
068: contraint.anchor = GridBagConstraints.CENTER;
069: contraint.gridx = 0;
070: contraint.gridy = 2;
071: contraint.gridwidth = 1;
072: contraint.gridheight = 1;
073: contraint.weightx = 0;
074: contraint.weighty = 1;
075: layout.setConstraints(fillPanel, contraint);
076: add(fillPanel);
077:
078: }
079:
080: /**
081: * save
082: */
083: public void save() {
084: }
085:
086: /**
087: * initialize the panel
088: */
089: public void initialize(VAIProductModel model) {
090: this .model = model;
091:
092: }
093:
094: /**
095: * stop
096: */
097: public void stop() {
098: }
099:
100: }
|