01: /*
02: * CONFIDENTIAL AND PROPRIETARY SOURCE CODE OF
03: * NETSCAPE COMMUNICATIONS CORPORATION
04: *
05: * Copyright (c) 1996 Netscape Communications Corporation.
06: * All Rights Reserved.
07: * Use of this Source Code is subject to the terms of the applicable
08: * license agreement from Netscape Communications Corporation.
09: */
10:
11: package components;
12:
13: import graphical.TreeWindow;
14: import soif.CSID;
15: import soif.Schema;
16:
17: import netscape.application.ExternalWindow;
18: import netscape.application.View;
19:
20: /* SGP: later provide methods for graphics swapping */
21: // SGP: should TTV be public?
22: public class SchemaTreeWindow extends TreeWindow {
23: public SchemaTreeView schemaTreeView; // SGP - needed?
24:
25: public SchemaTreeWindow(int x, int y, int width, int height,
26: Schema schema, boolean editable, boolean showInternal,
27: boolean showUnIndexed) {
28: super (x, y, width, height, null, Messages.TITLE_SCHEMA);
29:
30: schemaTreeView = new SchemaTreeView(schema, editable, 0, 0,
31: width, height, graphical.DragPolicy.DRAGFROMDISALLOWED,
32: graphical.DragPolicy.DRAGTODISALLOWED, true,
33: graphical.Header.spacePixels, Header.pieceselected,
34: Header.piece, graphical.Header.folderSelPixels,
35: graphical.Header.folderPixels,
36: graphical.Header.branchOpenSelPixels,
37: graphical.Header.branchOpenPixels,
38: graphical.Header.branchClosedSelPixels,
39: graphical.Header.branchClosedPixels,
40: graphical.Header.imageSize,
41: graphical.Header.pixelCount, showInternal,
42: showUnIndexed);
43:
44: setTreeView(schemaTreeView);
45: }
46:
47: public SchemaTreeWindow(int x, int y, int width, int height,
48: String CGILocation, String CGITarget, String CGIRead,
49: String CGIWrite, CSID csid, boolean editable,
50: boolean showInternal, boolean showUnIndexed) {
51: super (x, y, width, height, null, Messages.TITLE_SCHEMA);
52:
53: schemaTreeView = new SchemaTreeView(CGILocation, CGITarget,
54: CGIRead, CGIWrite, csid, editable, 0, 0, width, height,
55: graphical.DragPolicy.DRAGFROMDISALLOWED,
56: graphical.DragPolicy.DRAGTODISALLOWED, true,
57: graphical.Header.spacePixels, Header.pieceselected,
58: Header.piece, graphical.Header.folderSelPixels,
59: graphical.Header.folderPixels,
60: graphical.Header.branchOpenSelPixels,
61: graphical.Header.branchOpenPixels,
62: graphical.Header.branchClosedSelPixels,
63: graphical.Header.branchClosedPixels,
64: graphical.Header.imageSize,
65: graphical.Header.pixelCount, showInternal,
66: showUnIndexed);
67:
68: setTreeView(schemaTreeView);
69: }
70: }
|