source: trunk/java-client/org/nzdl/gsdl/SimpleGraphicalClient/Constants.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:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 2.6 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
21import java.awt.*;
22
23/**
24 * Class
25 *
26 * A class to
27 *
28 * @author Dave Nichols ([email protected])
29 * @author stuart yeates ([email protected])
30 * @version $Revision: 2225 $
31 * @see org.nzdl.gsdl.service.SimpleGraphicalClient.SimpleGraphicalClient
32 */
33
34
35public interface Constants
36
37{
38
39/* Menu Item IDs */
40
41/* File Menu */
42
43 final static int QUIT_ID = 104;
44 final static int POLL_ID = 105;
45 final static int GARBAGE_ID = 106;
46
47/* Edit Menu */
48
49 final static int PREF_ID = 201;
50
51
52 /* Preference Strings */
53
54 String DISPLAY_FIRST_DOC = "Automatically display the first document";
55 String RAW_TEXT = "Always display raw text (don't interpret HTML)";
56 String MULTIPLE_SERVERS = "Connect to multiple servers";
57 String LOG_SERVICE = "Log at the NzdlService level";
58 String CACHE_CORBA = "Cache corba requests";
59 String SAVE_DOCS = "Save documents";
60
61 /* Cursors */
62
63 Cursor NORMAL_CURSOR = Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR);
64 Cursor WAIT_CURSOR = Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR);
65
66 /* Query History Table Column Titles */
67
68 String[] QUERY_HISTORY_COLUMN_TITLES = {"Collection", "Terms"};
69
70
71/*Fonts */
72
73/* font for display of document contents */
74Font docFont = new Font("SansSerif", Font.PLAIN , 10);
75
76/* font for display of results */
77
78Font resultsFont = new Font("SansSerif", Font.PLAIN , 10);
79
80/* font for display of berrybasket contents */
81
82Font berryFont = new Font("SansSerif", Font.PLAIN , 10);
83
84/* font for display of queryHistory */
85
86Font queryHistoryFont = new Font("SansSerif", Font.PLAIN , 10);
87
88/* font for query input TextField */
89
90Font searchTextFieldFont = new Font("SansSerif", Font.BOLD , 11);
91
92
93
94}
Note: See TracBrowser for help on using the repository browser.