01: /*
02: * $RCSfile: ProductStepUpgradeNode.java,v $
03: * @modification $Date: 2001/09/28 19:41:42 $
04: * @version $Id: ProductStepUpgradeNode.java,v 1.1 2001/09/28 19:41:42 hfalk Exp $
05: *
06: */
07:
08: package com.memoire.vainstall.builder.util;
09:
10: import com.memoire.vainstall.VAGlobals;
11: import com.memoire.vainstall.builder.gui.ProductStepUpgradePanel;
12:
13: import java.awt.*;
14: import javax.swing.*;
15: import javax.swing.border.*;
16: import javax.swing.tree.*;
17:
18: /**
19: * This is
20: *
21: * @see
22: *
23: * @author Henrik Falk
24: * @version $Id: ProductStepUpgradeNode.java,v 1.1 2001/09/28 19:41:42 hfalk Exp $
25: */
26: public class ProductStepUpgradeNode extends AbstractVAIProductNode {
27:
28: ProductStepUpgradePanel panel = null;
29:
30: private final static Border loweredBorder = new SoftBevelBorder(
31: BevelBorder.LOWERED);
32:
33: public ProductStepUpgradeNode() {
34: super ();
35: }
36:
37: public String getName() {
38: return "Upgrade";
39: }
40:
41: public JPanel getUI() {
42: if (panel == null) {
43: panel = new ProductStepUpgradePanel();
44: panel.setBorder(loweredBorder);
45: }
46:
47: return panel;
48: }
49:
50: public String getTitle() {
51: return "Upgrade Step";
52: }
53:
54: public ImageIcon getIcon() {
55: return new javax.swing.ImageIcon(getClass().getResource(
56: "/com/memoire/vainstall/builder/images/New16.gif"));
57: }
58:
59: public void start() {
60: ((ProductStepUpgradePanel) getUI()).initialize(getModel());
61: }
62:
63: public void stop() {
64: ((ProductStepUpgradePanel) getUI()).stop();
65: }
66:
67: public void save() {
68: }
69:
70: public JPopupMenu getPopupMenu() {
71: return null;
72: }
73:
74: }
|