source: trunk/java-client/org/nzdl/gsdl/SimpleGraphicalClient/Berry.java@ 2281

Last change on this file since 2281 was 2281, checked in by daven, 23 years ago

turned on the BerryBasket. Try right-clicking on a result in the results List
to add one - no delete yet. Re-sizing maybe improved as well - no
guarantees yet though.

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 1.7 KB
Line 
1/*
2 * Berry.java
3 * Copyright (C) 2001 New Zealand Digital Library Project
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 */
19package org.nzdl.gsdl.SimpleGraphicalClient;
20
21
22import java.util.*;
23
24public class Berry extends Object {
25
26 private String berryTitle;
27 // private Person person;
28 private QueryHistoryItem queryHistoryItem;
29 private Date dateAdded;
30 private String collectionName; //unique collection ID across world?!?
31 private String documentID;
32
33
34 public Berry(QueryHistoryItem newQueryHistoryItem, String newDocumentID, String newCollectionName, String newBerryTitle) {
35 // need to add Person to argument list
36 queryHistoryItem = newQueryHistoryItem;
37 documentID = newDocumentID;
38 collectionName = newCollectionName;
39 berryTitle = newBerryTitle; // for the moment!
40 dateAdded = new Date();
41 }
42
43
44 public Date getDateAdded() {
45 return dateAdded;
46 }
47
48
49 public String toString () {
50 return( berryTitle);
51 }
52
53
54} // Berry class
Note: See TracBrowser for help on using the repository browser.