source: trunk/java-client/org/nzdl/gsdl/SimpleGraphicalClient/QueryHistoryItem.java@ 2225

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

added QueryHistory, tooltips on collectionInfoButton. Altered
CSModel to retain CollectionInfo objects and longCollectionNames
for performance. Added files for a BerryBasket - to be turned on
soon. Added sorting of the QueryHistory via the TableMap and TableSorter
files - from the Java Swing tutorial - not sure about GPL status
of these 2.

  • Property svn:keywords set to Author Date Id Revision
File size: 1.7 KB
Line 
1
2/*
3 * QueryHistoryItem.java
4 * Copyright (C) 2001 New Zealand Digital Library Project
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19 */
20
21
22package org.nzdl.gsdl.SimpleGraphicalClient;
23
24import java.io.*;
25import java.util.*;
26
27public class QueryHistoryItem extends Object
28{
29
30 private Date date;
31 private String user; // should be a Person object
32 private Query query;
33 private String collectionName;
34
35 // time
36 // person
37 // etc
38
39 public QueryHistoryItem(Query newQuery, Date newDate, String newCollectionName, String newUser) {
40 query = newQuery;
41 date = newDate;
42 user = newUser;
43 collectionName = newCollectionName;
44 }
45
46 public String getCollectionName() {
47 return collectionName;
48 }
49
50 public String getUser() {
51 return user;
52 }
53
54 public Query getQuery() {
55 return query;
56 }
57
58 public Date getDate() {
59 return date;
60 }
61
62 public String toString () {
63 return( user + " " + date + " " + collectionName +" terms");
64 }
65
66
67} //end QueryHistoryItem class
Note: See TracBrowser for help on using the repository browser.