01: /*
02: * $RCSfile: PreferencesProjectNode.java,v $
03: * @modification $Date: 2001/09/28 19:41:42 $
04: * @version $Id: PreferencesProjectNode.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.PreferencesProjectPanel;
12:
13: import java.awt.*;
14: import javax.swing.*;
15: import javax.swing.tree.*;
16:
17: /**
18: * This is
19: *
20: * @see
21: *
22: * @author Henrik Falk
23: * @version $Id: PreferencesProjectNode.java,v 1.1 2001/09/28 19:41:42 hfalk Exp $
24: */
25: public class PreferencesProjectNode extends AbstractVAIBuilderNode {
26:
27: PreferencesProjectPanel panel;
28:
29: public PreferencesProjectNode() {
30: super ();
31: }
32:
33: public String getName() {
34: return VAGlobals.getResource(
35: "com.memoire.vainstall.builder.Language",
36: "PreferencesProjectNode_Name");
37: }
38:
39: public JPanel getUI() {
40: if (panel == null) {
41: panel = new PreferencesProjectPanel();
42: }
43: return panel;
44: }
45:
46: public String getTitle() {
47: return VAGlobals.getResource(
48: "com.memoire.vainstall.builder.Language",
49: "PreferencesProjectNode_Title");
50: }
51:
52: public ImageIcon getIcon() {
53: return new javax.swing.ImageIcon(getClass().getResource(
54: "/com/memoire/vainstall/builder/images/New16.gif"));
55: }
56:
57: public void start() {
58: if (model != null) {
59: ((PreferencesProjectPanel) getUI()).initialize(getModel());
60: }
61: }
62:
63: public void stop() {
64: ((PreferencesProjectPanel) getUI()).stop();
65: }
66:
67: public void save() {
68: ((PreferencesProjectPanel) getUI()).save();
69: }
70:
71: }
|