source: trunk/java-client/org/nzdl/gsdl/SimpleGraphicalClient/Result.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: 2.3 KB
Line 
1/*
2 * SimpleGraphicalClient.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/**
22 * Class
23 *
24 * A class to
25 *
26 * @author Dave Nichols ([email protected])
27 * @author stuart yeates ([email protected])
28 * @version $Revision: 2281 $
29 * @see org.nzdl.gsdl.service.SimpleGraphicalClient.SimpleGraphicalClient
30 */
31
32public class Result extends Object
33{
34 private String resultTitle;
35 private String docID;
36 private String collectionName;
37 private QueryHistoryItem queryHistoryItem;
38
39
40 public final static Result FAKE_RESULT = new Result("No results returned", "", "", new QueryHistoryItem() );
41 public final static Result INITIAL_FAKE_RESULT = new Result("Search results will appear here", "", "", new QueryHistoryItem());
42 // related query
43 // time, person, collection etc
44
45 public Result( String newResultTitle) {
46 resultTitle = newResultTitle;
47 }
48
49 public Result( String newResultTitle, String newResultDocID, String newResultCollectionName, QueryHistoryItem newQueryHistoryItem)
50 {
51 resultTitle = newResultTitle;
52 docID = newResultDocID;
53 collectionName = newResultCollectionName;
54 queryHistoryItem = newQueryHistoryItem;
55 }
56
57 public String toString () {
58 return resultTitle;
59 }
60 public String getDocID() {
61 return docID;
62 }
63 public String getCollectionName() {
64 return collectionName;
65 }
66 public QueryHistoryItem getQueryHistoryItem() {
67 return queryHistoryItem;
68 }
69
70
71
72} //end Result class
Note: See TracBrowser for help on using the repository browser.