2
* @(#)SearchView.java 1.10 06/10/30
4
* Copyright (c) 2006 Sun Microsystems, Inc. All Rights Reserved.
5
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
7
* This code is free software; you can redistribute it and/or modify it
8
* under the terms of the GNU General Public License version 2 only, as
9
* published by the Free Software Foundation. Sun designates this
10
* particular file as subject to the "Classpath" exception as provided
11
* by Sun in the LICENSE file that accompanied this code.
13
* This code is distributed in the hope that it will be useful, but WITHOUT
14
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
15
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16
* version 2 for more details (a copy is included in the LICENSE file that
17
* accompanied this code).
19
* You should have received a copy of the GNU General Public License version
20
* 2 along with this work; if not, write to the Free Software Foundation,
21
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
23
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
24
* CA 95054 USA or visit www.sun.com if you need additional information or
30
import java.util.Hashtable;
31
import java.awt.Component;
32
import java.util.Locale;
35
* Navigational View information for a Search
37
* @author Eduardo Pelegri-Llopart
38
* @version 1.5 01/29/99
41
public class SearchView extends NavigatorView {
43
* Constructs a SearchView with some given data. Locale of the View defaults
44
* to that of the HelpSet.
46
* @param hs The HelpSet that provides context information.
47
* @param name The name of the View.
48
* @param label The label (to show the user) of the View.
49
* @param locale The default locale to interpret the data in this TOC.
50
* @param params A hashtable that provides different key/values for this type.
52
public SearchView(HelpSet hs,
56
super(hs, name, label, hs.getLocale(), params);
60
* Constructs a SearchView with some given data.
62
* @param hs The HelpSet that provides context information.
63
* @param name The name of the View.
64
* @param label The label (to show the user) of the View.
65
* @param locale The default locale to interpret the data in this TOC.
66
* @param params A hashtable that provides different key/values for this type.
68
public SearchView(HelpSet hs,
73
super(hs, name, label, locale, params);
77
* Creates a navigator for a given model.
79
public Component createNavigator(HelpModel model) {
80
return new JHelpSearchNavigator(this, model);