01: /*
02: * $RCSfile: PreferencesBaseNode.java,v $
03: * @modification $Date: 2001/09/28 19:41:42 $
04: * @version $Id: PreferencesBaseNode.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.PreferencesBasePanel;
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: PreferencesBaseNode.java,v 1.1 2001/09/28 19:41:42 hfalk Exp $
25: */
26: public class PreferencesBaseNode extends AbstractVAIBuilderNode {
27:
28: PreferencesBasePanel panel = null;
29:
30: private final static Border loweredBorder = new SoftBevelBorder(
31: BevelBorder.LOWERED);
32:
33: public PreferencesBaseNode() {
34: super ();
35: }
36:
37: public String getName() {
38: return VAGlobals.NAME;
39: }
40:
41: public JPanel getUI() {
42: if (panel == null) {
43: panel = new PreferencesBasePanel();
44: panel.setBorder(loweredBorder);
45: }
46:
47: return panel;
48: }
49:
50: public String getTitle() {
51: return VAGlobals.NAME
52: + VAGlobals.getResource(
53: "com.memoire.vainstall.builder.Language",
54: "PreferencesBaseNode_Version")
55: + VAGlobals.VERSION;
56: }
57:
58: public ImageIcon getIcon() {
59: return new javax.swing.ImageIcon(getClass().getResource(
60: "/com/memoire/vainstall/builder/images/New16.gif"));
61: }
62:
63: public void start() {
64: ((PreferencesBasePanel) getUI()).initialize(getModel());
65: }
66:
67: public void stop() {
68: ((PreferencesBasePanel) getUI()).stop();
69: }
70:
71: public void save() {
72: }
73:
74: }
|