source: trunk/gli/src/org/greenstone/gatherer/collection/CollectionTreeNode.java@ 8783

Last change on this file since 8783 was 8783, checked in by mdewsnip, 19 years ago

Big tidy up of the workspace and collection trees (Gather/Enrich panes). Still a few more changes and bug fixes to come.

  • Property svn:keywords set to Author Date Id Revision
File size: 1.6 KB
Line 
1/**
2 *############################################################################
3 * A component of the Greenstone Librarian Interface, part of the Greenstone
4 * digital library suite from the New Zealand Digital Library Project at the
5 * University of Waikato, New Zealand.
6 *
7 * Author: Michael Dewsnip, NZDL Project, University of Waikato, NZ
8 *
9 * Copyright (C) 2004 New Zealand Digital Library Project
10 *
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
15 *
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24 *############################################################################
25 */
26
27package org.greenstone.gatherer.collection;
28
29
30import java.io.*;
31import org.greenstone.gatherer.file.FileNode;
32
33
34/** This class represents one node in the collection tree. */
35public class CollectionTreeNode
36 extends FileNode
37{
38 public CollectionTreeNode(File file)
39 {
40 super(file);
41 }
42
43
44 public FileNode addChildNode(File file)
45 {
46 CollectionTreeNode child_node = new CollectionTreeNode(file);
47 child_node.setModel(model);
48 child_node.setParent(this);
49 return child_node;
50 }
51}
Note: See TracBrowser for help on using the repository browser.