01: package com.sun.portal.netfile.applet.java2.model;
02:
03: /**
04: * LocalHostNode:
05: * This is the root node for all the share/folder nodes representing the
06: * drives and folders on the local machine
07: */
08: public class LocalHostNode extends SystemNode {
09:
10: private static LocalHostNode instance;
11:
12: private static String NAME = "Local Host";
13:
14: public static void setName(String name) {
15: NAME = name;
16: }
17:
18: private LocalHostNode(String userName) {
19: super (NAME, "Local host", "", userName, "", "", "");
20: }
21:
22: public static LocalHostNode getInstance(String userName) {
23: if (instance == null) {
24: instance = new LocalHostNode(userName);
25: }
26: return instance;
27: }
28:
29: public String getFQName() {
30: return "";
31: }
32:
33: public String getName() {
34: return "";
35: }
36:
37: public String getLocalPath() {
38: return "";
39: }
40: }
|